Several fixes are needed in Spark to work better with Asterisk-IM:
- Incoming call notifications are duplicated when the SIP plugin is working. For each incoming call, we need to make sure that the SIP plugin gets the notification first. If it does, it should supress the Asterisk-IM notification. If there is no SIP notification, the Asterisk-IM plugin should proceed normally. This is necessary for the case where you have a hard phone on your desk that is different than your soft phone.
- Presence is updated for users in the roster when they are on the phone, but your own presence doesn't change when on the phone.