[YMCS/YDMP Free Trial Program]Yealink would like to offer Free Trial Program of Yealink device management service for our current eligible customers. You can see the details below.
https://www.yealink.com/ydmp-freetrial-2020


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
T22P - Push XML Error: ip don't match or xml content is wrong
Author Message
janeuner Offline
Junior Member
**

Posts: 4
Joined: Oct 2014
Reputation: 0
Post: #1
T22P - Push XML Error: ip don't match or xml content is wrong
I am encountering difficulties when trying to make use of the Push XML features described in the XML Browser Development guide (V73). My evaluation device is a Yealink T22P running firmware version 7.73.0.50.

The phone configuration includes this parameter:
Quote:push_xml.server = 192.168.22.162

The following HTTP request is sent from 192.168.22.162 to the phone:
Quote:POST / HTTP/1.1
Referer: http://192.168.22.162/
Content-Type: text/xml
Host: 192.168.22.35
Content-Length: 116
Connection: Keep-Alive

<YealinkIPPhoneTextScreen Beep="yes" Timeout="15"><Title>Heading</Title><Text>Text</Text></YealinkIPPhoneTextScreen>

The phone sends with a 200 OK response to complete the HTTP transaction. No TextMessage appears on the phone's screen. This message appears in the logs:
Quote: WEB <4+warnin> ip:192.168.22.162 Push XML Error: ip don't match or xml content is wrong

Please advise. See attached pcap, config, and syslog.


.tar  syslog.tar (Size: 55 KB / Downloads: 0)
.bin  config.bin (Size: 149.52 KB / Downloads: 0)
.pcap  7.73.0.50_19_10_5.pcap (Size: 1.12 KB / Downloads: 2)
03-24-2015 03:06 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
James_Yealink Offline
Administrator
*******

Posts: 1,159
Joined: Aug 2014
Reputation: 8
Post: #2
RE: T22P - Push XML Error: ip don't match or xml content is wrong
Hi Janeuner,

I find this parameter "Referer: http://192.168.22.162/" in your pcap trace. Can you change it to 192.168.22.162 and check again?

Attached is a working pcap trace.

When you push a XML to phone please note:
1. Edit the php file.
2. Add the server address to phone.

If it still doesn't work in your side, can you send me the php file, I will check it.

Regards,
James


Attached File(s)
.zip  PushXML.zip (Size: 1.08 KB / Downloads: 19)
03-24-2015 04:12 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
janeuner Offline
Junior Member
**

Posts: 4
Joined: Oct 2014
Reputation: 0
Post: #3
RE: T22P - Push XML Error: ip don't match or xml content is wrong
Actually, I was testing it out with a .NET app. I pulled up the PHP code and found my issue.



Quote:The HTTP POST packet must contain an “xml=” line in the message body.

Code:
function push2phone($server,$phone,$data)
{
  $xml = "xml=".$data;
  ...
}

It is a rather unusual convention, to use application/x-www-form-urlencoded key-value pairs with a text/xml media type. But that little change has set me on the right path at least.

FYI, the current firmware seems to ignore the contents of the referer header.

Thanks for the quick feedback!
03-24-2015 04:59 AM
Find all posts by this user    like1    dislike0 Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  T28P - OpenVPN TLS error: Unsupported protocol 1sae 0 2,047 07-18-2023 06:50 AM
Last Post: 1sae
  [Solved] Correct password don't work anymore in SIP-T22P ip phones frog.tech 1 9,802 01-27-2021 07:45 PM
Last Post: lsk
  T22P Action URI ATrans and BTrans not working? DaveThompson 2 13,431 09-10-2019 10:47 AM
Last Post: DaveThompson
  T22P Stuck on FW 7.60.40.7 justingoldberg 0 5,266 08-16-2019 01:19 PM
Last Post: justingoldberg
  T27G Load XML Browser URL Error aciacci 0 6,318 11-14-2018 09:00 AM
Last Post: aciacci
  T22P DSSKey linekey labels andcza 2 10,991 05-10-2018 06:02 AM
Last Post: andcza
  T22p does not get IP, and does not access the web interface even by manually config jason.luka 5 15,069 04-18-2018 01:29 AM
Last Post: anonymous1718628087441
  T22P -0 3CX firmware web server fails preterion 1 9,590 04-17-2018 02:35 PM
Last Post: will3
  SIP T22P Problem liamretrams 2 11,860 06-01-2017 11:22 AM
Last Post: wcolato
  T19P E2 identifies itself as wrong User - from TO header of incoming request ivanp 1 9,111 05-04-2017 09:13 AM
Last Post: Travis_Yealink

Forum Jump:


User(s) browsing this thread:

Contact Us   Yealink   Return to Top   Return to Content   Lite (Archive) Mode   RSS Syndication