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:[EMAIL PROTECTED] SIP/2.0
Via: SIP/2.0/UDP 192.168.25.119:5060;branch=z9hG4bKae271046B272902B
From: "pam" <sip:[EMAIL PROTECTED]>;tag=5D8A8216-68EA6BE5
To: <sip:[EMAIL PROTECTED];user=phone>;tag=as45347aaa
CSeq: 4 REFER
Call-ID: [EMAIL PROTECTED]
Contact: <sip:[EMAIL PROTECTED]:5060>
User-Agent: PolycomSoundPointIP-SPIP_600-UA/1.3.1
Refer-To: sip:[EMAIL PROTECTED];orbit=401 <--- Bingo!
Referred-By: "pam" <sip:[EMAIL PROTECTED]>
Proxy-Authorization: Digest username="pam", realm="asterisk", nonce="53ace547", uri="sip:[EMAIL PROTECTED]: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:[EMAIL PROTECTED]>;tag=5D8A8216-68EA6BE5
To: <sip:[EMAIL PROTECTED];user=phone>;tag=as45347aaa
Call-ID: [EMAIL PROTECTED]
CSeq: 4 REFER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:[EMAIL PROTECTED]>
Accept: application/sdp
Content-Length: 0



The header I was looking for is:

Refer-To: sip:[EMAIL PROTECTED];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
_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to