![TIPTEL 31xx series Скачать руководство пользователя страница 44](http://html1.mh-extra.com/html/tiptel/31xx-series/31xx-series_manual_1118777044.webp)
XML API for Tiptel.com SIP Phones 31xx
5 HOW TO
5.1 HOW TO push XML file via HTTP
Phone IP: 192.168.1.30
XML file to push: ./push.xml"
5.2 HOW TO push XML file on Asterisk via SIP NOTIFY
Add to the Asterisk configuration file
/etc/asterisk/sip_notify.cfg
the XML event.
To send the XML data to phone address 2011 enter on CLI
Note
: You must reload the configuration file for the changes to take effect if Asterisk is already running
*CLI> config reload /etc/asterisk/sip_notify.conf
Page 43 / 50
#!/bin/sh
postfile
="./push.xml"
response
="./result.htm"
pushurl
="http://192.168.1.30/xmlservice"
addhdr
="Content-Type: text/xml"
usr
=admin
pw
=admin
wget
-–user $
usr
–-password $
pw
-O ${
response
} --header "${
addhdr
}"
--post-file ${
postfile
} $
pushurl
[tiptel-xmlexec-reboot]
Event=>
tiptel-xml
Content-type=>
application/xml
Content=><?xml version="1.0" encoding="UTF-8"?>
Content=><TiptelIPPhoneExecute Beep="yes">
Content=><ExecuteItem URI="Command:Reboot"/>
Content=></TiptelIPPhoneExecute>
Content=>
*CLI> sip notify tiptel-xmlexec-reboot 2011