[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
[SOLVED] ]XML Push InputScreen response?
Author Message
marvinh Offline
Junior Member
**

Posts: 4
Joined: Jun 2013
Reputation: 0
Post: #1
Lightbulb [SOLVED] ]XML Push InputScreen response?
Good afternoon,

I've some problems with sending a response to the phone which submitted data from an inputscreen XML;

Inputscreen XML send to phone:
Code:
<YealinkIPPhoneInputScreen type="string" Timeout="20" LockIn="yes" editable="no">
    <Title wrap="yes">Restricties niet actief</Title>
    <Prompt>Restricties activeren?</Prompt>
    <URL>http://****.nl/callplan/index.php</URL>
    <Parameter>activeren</Parameter>
    <SoftKey index="1">        
        <Label>Nee</Label>
        <URI>SoftKey:Exit</URI>
    </SoftKey>
    <SoftKey index="2">    
    </SoftKey>    
    <SoftKey index="3">    
    </SoftKey>
    <SoftKey index="4">    
        <Label>Ja</Label>
        <URI>SoftKey:Submit</URI>
    </SoftKey>    
</YealinkIPPhoneInputScreen>

Everything is working, and the server receives the parameter 'activeren'. After everything is done, i want to display a message on the screen of the Phone, TextScreen Object.

XML TextScreen from server to Phone;

Code:
<YealinkIPPhoneTextScreen>
    <Title>Status</Title>
    <Text>Restricties geactiveerd.</Text>
</YealinkIPPhoneTextScreen>

But the Phone isn't displaying the message, but gives me an error:

"File format error!"

I think the Phone is expecting some xml answer after submitting the user data, but what kind of answer do i need to give?

Thanks,

Marvin
(This post was last modified: 06-25-2013 10:15 PM by marvinh.)
06-25-2013 08:14 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
marvinh Offline
Junior Member
**

Posts: 4
Joined: Jun 2013
Reputation: 0
Post: #2
RE: XML Push InputScreen response?
Already found it, instead of sending the Response XML to the Phone i needed just to reply...

So instead of:
Code:
<?php
$xml = '<?xml version="1.0" encoding="utf-8"?>'.
     '<YealinkIPPhoneTextScreen>'.
        '<Title>Status</Title>'.
        '<Text>Restricties gedeactiveerd.</Text>'.
        '<SoftKey index=\"1\">'.    
        '<Label>Sluiten</Label>'.
        '<URI>SoftKey:CANCEL</URI>'.
        '</SoftKey>'.                    
     '</YealinkIPPhoneTextScreen>';
    
push2phone("192.168.20.100","192.168.22.79",$xml);
?>

I needed to do:
Code:
<?php
echo '<?xml version="1.0" encoding="utf-8"?>'.
     '<YealinkIPPhoneTextScreen>'.
        '<Title>Status</Title>'.
        '<Text>Restricties gedeactiveerd.</Text>'.
        '<SoftKey index=\"1\">'.    
        '<Label>Sluiten</Label>'.
        '<URI>SoftKey:CANCEL</URI>'.
        '</SoftKey>'.                    
     '</YealinkIPPhoneTextScreen>';
?>
06-25-2013 10:14 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Billx Offline
Junior Member
**

Posts: 17
Joined: Mar 2013
Reputation: 0
Post: #3
RE: [SOLVED] ]XML Push InputScreen response?
Thank you for posting your work.

I copied your code and received the same error.

I am new to Yealink so I found your solution very helpful.
06-25-2013 11:15 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Solved] Correct password don't work anymore in SIP-T22P ip phones frog.tech 1 340 01-27-2021 07:45 PM
Last Post: lsk
  T22P push xml v61 version Qwerty 0 2,006 12-05-2016 11:02 AM
Last Post: Qwerty
  Push XML v61 guide Qwerty 0 1,765 12-02-2016 12:44 PM
Last Post: Qwerty
  [Solved] VPN with watchguard 5cservices 13 26,031 10-18-2016 12:47 AM
Last Post: Kevin_Yealink
  [SOLVED] T21P headset mic volume, reconnect issue and confusing firmware versioning opsis 3 9,213 10-28-2015 09:25 AM
Last Post: prakitj
  [solved] full freeswitch support please support_badger 6 11,383 07-04-2015 08:08 AM
Last Post: support_badger
  PUSH XML PROBLEM ademeo 5 8,524 05-22-2015 10:52 PM
Last Post: ademeo
  T22P - Push XML Error: ip don't match or xml content is wrong janeuner 2 5,419 03-24-2015 04:59 AM
Last Post: janeuner
  [SOLVED] T28P auto-provisionning ringtone julien 2 6,230 07-04-2014 03:38 PM
Last Post: julien
  T28P with custom logo backlight issue (SOLVED) Raffles 4 12,041 05-04-2014 05:47 PM
Last Post: Raffles

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

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