XML API for Tiptel.com SIP Phones 31xx
5.3 HOW TO trigger remote action URL via HTTP
Phone IP: 192.168.1.30
HTTP Server IP: 192.168.1.1
Note
: Although the URL Variable {ip} use brace notation wget will convert it to proper hex codes before send to
device.
5.4 HOW TO trigger remote action URL on Asterisk via SIP NOTIFY
Add to the Asterisk configuration file
/etc/asterisk/sip_notify.cfg
the XML event.
To trigger the XML service on device 5566 enter on CLI
Page 44 / 50
#!/bin/sh
response
="./result.htm"
aurl
="http://192.168.1.1/tiptel3020xml/TestAction.php?devip={ip}"
phoneurl
="http://192.168.1.30/cgi-bin/remote/devctl?minibrowserurl="$
aurl
usr
=admin
pw
=admin
wget
-–user $
usr
–-password $
pw
-O ${
response
} $
phoneurl
[tiptel-xmlremote]
Event=>
tiptel-actionurl
Content-type=>
text/plain
Content=>http://192.168.1.1/tiptel3020xml/TestAction.php?dev={mac}&addr={ip}
Content=>
*CLI> sip notify tiptel-xmlremote 5566