07-20-2013, 06:31 AM
I'm attempting to post XML to the Yealink T38g without first using a DSS key. I'd like to kick off a series of actions that would be used for automated testing. Is this possible?
The user guide for XML development for T38 is linked below and it is quite good, but there's no hint on how to post XML to the phone without first using a DSS key.
I've configured the XML Push Server address in the T38 web UI.
The xml that I'm using works fine when called from a DSS key:
<?xml version="1.0" encoding="ISO-8859-1"?>
<YealinkIPPhoneExecute>
<ExecuteItem URI="Dial:4007" interrupetCall="no"/>
</YealinkIPPhoneExecute>
I'm using linux curl from the XML Push Server to send the XML. I'm getting an empty response from the phone:
curl -X POST -d @dial.xml --verbose http://admin:admin@x.x.x.x
Response:
* About to connect() to 10.x.x.x port 80
* Trying 10.x.x.x... connected
* Connected to 10.x.x.x port 80
* Server auth using Basic with user 'admin'
> POST / HTTP/1.1
> Authorization: Basic
> User-Agent: curl/7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
> Host: 10.x.x.x
> Accept: */*
> Content-Length: 140
> Content-Type: application/x-www-form-urlencoded
>
> <?xml version="1.0" encoding="ISO-8859-1"?><YealinkIPPhoneExecute><ExecuteItem URI="Dial:4007" interrupetCall="no"/></YealinkIPPhoneExecute>Empty reply from server
* Connection #0 to host 10.x.x.x left intact
curl: (52) Empty reply from server
Anyone have any experience or advice about this?
---------
This is the developer's guide that I'm using:
http://www.yealink.com/Upload/document/X...635570.pdf
The user guide for XML development for T38 is linked below and it is quite good, but there's no hint on how to post XML to the phone without first using a DSS key.
I've configured the XML Push Server address in the T38 web UI.
The xml that I'm using works fine when called from a DSS key:
<?xml version="1.0" encoding="ISO-8859-1"?>
<YealinkIPPhoneExecute>
<ExecuteItem URI="Dial:4007" interrupetCall="no"/>
</YealinkIPPhoneExecute>
I'm using linux curl from the XML Push Server to send the XML. I'm getting an empty response from the phone:
curl -X POST -d @dial.xml --verbose http://admin:admin@x.x.x.x
Response:
* About to connect() to 10.x.x.x port 80
* Trying 10.x.x.x... connected
* Connected to 10.x.x.x port 80
* Server auth using Basic with user 'admin'
> POST / HTTP/1.1
> Authorization: Basic
> User-Agent: curl/7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
> Host: 10.x.x.x
> Accept: */*
> Content-Length: 140
> Content-Type: application/x-www-form-urlencoded
>
> <?xml version="1.0" encoding="ISO-8859-1"?><YealinkIPPhoneExecute><ExecuteItem URI="Dial:4007" interrupetCall="no"/></YealinkIPPhoneExecute>Empty reply from server
* Connection #0 to host 10.x.x.x left intact
curl: (52) Empty reply from server
Anyone have any experience or advice about this?
---------
This is the developer's guide that I'm using:
http://www.yealink.com/Upload/document/X...635570.pdf