[Asterisk-Users] Polycom IP 600 status setting in Asterisk

Kristian Kielhofner kris at krisk.org
Tue Dec 7 12:32:55 MST 2004


Kevin P. Fleming wrote:

> I have looked into this as well, especially ACD login/logout. 
> Unfortunately, the way these are implemented in the phone is via sending 
> SIP NOTIFY messages to the server, and that never gets into the 
> dialplan, so there's no point at which SipGetHeader could help. If there 
> was a way to have incoming NOTIFY messages generate a channel and go 
> into a specified context, then it would be possible to react to the 
> message.
> 
> The other issue is, Polycom phones don't actually send the information 
> in the headers, they send it in XML format in the body of the SIP 
> NOTIFY. That's going to be hard to extract in dialplan logic (or 
> anywhere else in Asterisk, for that matter).


Kevin,

	I posted a message earlier regarding this, here is the SIP debug output 
(forgive the wrapping) of using the "Park" softkey:

Sip read:
REFER sip:128 at 192.168.25.1 SIP/2.0
Via: SIP/2.0/UDP 192.168.25.119:5060;branch=z9hG4bKae271046B272902B
From: "pam" <sip:pam at pbx.kcdemo.com>;tag=5D8A8216-68EA6BE5
To: <sip:128 at pbx.kcdemo.com;user=phone>;tag=as45347aaa
CSeq: 4 REFER
Call-ID: 87286f2a-2110cc58-539b8d5f at 192.168.25.119
Contact: <sip:pam at 192.168.25.119:5060>
User-Agent: PolycomSoundPointIP-SPIP_600-UA/1.3.1
Refer-To: sip:callpark at pbx.kcdemo.com;orbit=401 <--- Bingo!
Referred-By: "pam" <sip:pam at pbx.kcdemo.com>
Proxy-Authorization: Digest username="pam", realm="asterisk", 
nonce="53ace547", uri="sip:128 at pbx.kcdemo.com:5060;user=phone", 
response="6ff3dcsdfgsdfgsfdgsdfgsdfg", algorithm=MD5 <--- changed
Max-Forwards: 70
Content-Length: 0


13 headers, 0 lines
Looking for callpark in friends
Looking for pam in friends
Reliably Transmitting (NAT):
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 
192.168.25.119:5060;branch=z9hG4bKae271046B272902B;received=192.168.25.119;rport=5060
From: "pam" <sip:pam at pbx.kcdemo.com>;tag=5D8A8216-68EA6BE5
To: <sip:128 at pbx.kcdemo.com;user=phone>;tag=as45347aaa
Call-ID: 87286f2a-2110cc58-539b8d5f at 192.168.25.119
CSeq: 4 REFER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:128 at 192.168.25.1>
Accept: application/sdp
Content-Length: 0


The header I was looking for is:

Refer-To: sip:callpark at pbx.kcdemo.com;orbit=401

How is that XML?  It looks fairly easy to parse.  It may not be a 
NOTIFY, but SipGetHeader appears to be in the right direction...

Granted the ACD stuff may be XML, but I am SO not there yet...  I 
haven't even looked at it.

--
Kristian Kielhofner



More information about the asterisk-users mailing list