[Asterisk-Users] Polycom-Asterisk hints/presence

Damon Estep damon at suburbanbroadband.net
Thu Jun 1 18:50:16 MST 2006


Changing the subject back to the original topic;

Is there bug in the asterisk hint/presence implementation, or an
intentional omission, or a lack of understanding on my part?

A SIP debug of a subscribed extension shows that asterisk only sends the
SIP presence notification to the subscriber when a call starts ringing,
and then when it is hung up.

A "show hints" reveals that asterisk changes the hint state twice, once
from idle to ringing, and again from ringing to inuse, but it does not
notify the subscriber on the change from ringing to inuse. 

Here are the relevant packets for a hint extension subscriber during the
time where the state changed both times, note that the first change goes
right to "on the phone", but the notify was sent when the ringing
started, not when the call was answered.

Ringing started here>>>

Reliably Transmitting (no NAT) to 207.138.248.85:5060:
NOTIFY sip:3035551200 at 207.138.248.85 SIP/2.0
Via: SIP/2.0/UDP 255.255.255.79:5060;branch=z9hG4bK491df6fc;rport
From: <sip:3035551201 at 255.255.255.79>;tag=as34e8536c
To: "SBB Test" <sip:3035551200 at 255.255.255.79>;tag=7AB691E6-26D89B2D
Contact: <sip:3035551201 at 255.255.255.79>
Call-ID: bf85d2d2-26d31aec-a6dc96e3 at 207.138.248.85
CSeq: 135 NOTIFY
User-Agent: Asterisk PBX
Max-Forwards: 70
Event: presence
Content-Type: application/xpidf+xml
Subscription-State: active
Content-Length: 371

<?xml version="1.0"?>
<!DOCTYPE presence PUBLIC "-//IETF//DTD RFCxxxx XPIDF 1.0//EN"
"xpidf.dtd">
<presence>
<presentity uri="sip:3035551200 at 255.255.255.79;method=SUBSCRIBE" />
<atom id="3035551201">
<address uri="sip:3035551201 at 255.255.255.79;user=ip"
priority="0.800000">
<status status="inuse" />
<msnsubstatus substatus="onthephone" />
</address>
</atom>
</presence>

Call hung up here >>>>>>>>

Reliably Transmitting (no NAT) to 207.138.248.85:5060:
NOTIFY sip:3035551200 at 207.138.248.85 SIP/2.0
Via: SIP/2.0/UDP 255.255.255.79:5060;branch=z9hG4bK6793e1a6;rport
From: <sip:3035551201 at 255.255.255.79>;tag=as34e8536c
To: "SBB Test" <sip:3035551200 at 255.255.255.79>;tag=7AB691E6-26D89B2D
Contact: <sip:3035551201 at 255.255.255.79>
Call-ID: bf85d2d2-26d31aec-a6dc96e3 at 207.138.248.85
CSeq: 136 NOTIFY
User-Agent: Asterisk PBX
Max-Forwards: 70
Event: presence
Content-Type: application/xpidf+xml
Subscription-State: active
Content-Length: 366

<?xml version="1.0"?>
<!DOCTYPE presence PUBLIC "-//IETF//DTD RFCxxxx XPIDF 1.0//EN"
"xpidf.dtd">
<presence>
<presentity uri="sip:3035551200 at 255.255.255.79;method=SUBSCRIBE" />
<atom id="3035551201">
<address uri="sip:3035551201 at 255.255.255.79;user=ip"
priority="0.800000">
<status status="open" />
<msnsubstatus substatus="online" />
</address>
</atom>
</presence>



More information about the asterisk-users mailing list