Specifications
Aastra July 2014 PA-001011-03-04
214
Max-Forwards: 70
Event: aastra-xml
Content-Type: application/xml
Content-Length: 115
<AastraIPPhoneExecute><ExecuteItem
URI="http://10.30.100.39/XMLtests/SampleTextScreen.xml"/></AastraIPPhoneExecute>
When the phone receives the SIP NOTIFY, the XML content is processed as any XML object; in
this example, the phone will call http://10.30.100.39/XMLtests/SampleTextScreen.xml after
reception of the SIP NOTIFY.
Note: The phone supports all the current XML objects with all the existing limitations. For
example if an AastraIPPhoneExecute is used, the embedded uri(s) cannot be HTTPS based.
Example of a SIP NOTIFY without XML content
NOTIFY sip:200@10.30.100.103:5060 SIP/2.0
Via: SIP/2.0/UDP 10.30.100.103:5060;branch=z9hG4bK7bbc1fac;rport
From: <sip:201@10.30.100.103:5060>;tag=81be2861f3
To: Jacky200 <sip:200@10.30.100.103:5060>
Contact: <sip:201@10.30.100.103>
Call-ID: 59638f5d95c9d301
CSeq: 4 NOTIFY
Max-Forwards: 70
Event: aastra-xml
Content-Type: application/xml
Content-Length: 0
When the phone receives the SIP NOTIFY, it will trigger the action uri xml sip notify if it has been
previously configured using the configuration files or the phone Web UI. If the action uri xml sip
notify is not enabled, the phone does not do anything.
Note: To ensure that the SIP NOTIFY is coming from a trusted source, it is recommended
that you enable the Whitelist feature (Whitelist Proxy parameter) on the IP phone. If enabled,
and the phone receives a SIP NOTIFY from a server that is NOT on the whitelist, the phone
will reject the message.
Asterisk implementation
Asterisk custom SIP Notify messages are configured in ‘sip_notify.conf’ file in the asterisk root
directory, usually ‘/etc/asterisk/’.
Asterisk does not support custom SIP Notify with XML content. The only way to use the SIP Notify
event with Asterisk is to use the Aastra-xml event triggerint the action uri xml sip notify.
To do so, the following lines must be added in /etc/asterisk/sip_notify.conf’
; Aastra XML event
[aastra-xml]
Event=>aastra-xml
Content-Length=>0
Then you must restart Asterisk to have the new SIP Notify parsed by Asterisk.
To use it, just send a SIP Notify aastra-xml event to an Aastra SIP phone registered to the platform
using either the asterisk CLI or the AGI.