XML API for Tiptel.com SIP Phones 31xx
This example will trigger the phone with IP-Addr. 192.168.1.103 and MAC-Addr. 000CC4300086 download the
XML file from http://192.168.1.1/myfiles/mymenu_000CC4300086.xml
2.2.3
HTTP Push XML
XML data can be send to the phone using HTTP POST method. The Content-Type Header must be set to
"text/xml".
Require user 'admin'
Example:
This example will turn the display back light on, See
IPPhoneExecute
object and
URI Led
for more details.
2.2.4
SIP NOTIFY Push XML
XML data can be send directly to the phone using proprietary SIP NOTIFY event "
tiptel-xml
" with XML content.
Example:
Page 5 / 50
POST /xmlservice HTTP/1.0
User-Agent: Wget/1.11.4
Accept: */*
Host: 192.168.1.20
Connection: Keep-Alive
Content-Type:
text/xml
Content-Length: 140
<?
xml
version="1.0" encoding="UTF-8"?>
<
TiptelIPPhoneExecute
Beep
="yes">
<
ExecuteItem
URI
="Led:BACKLIGHT=on"/>
<
/TiptelIPPhoneExecute
>
NOTIFY sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.101:5060;branch=ad5jh4ut9dsnf3jtf;rport
From: <sip:[email protected]:5060>;tag=54dg7853c4
To: 3030 <sip:[email protected]:5060>
Contact: <sip:[email protected]>
Call-ID: 65835h8s46f2x429
CSeq: 20 NOTIFY
Max-Forwards: 1
Event:
tiptel-actionurl
Content-Type:
text/plain
Content-Length: 37
http://192.168.1.1/myfiles/mymenu_{mac}.xml