XML and Action URL - Printable Version +- Yealink Forums (http://forum.yealink.com/forum) +-- Forum: IP Phone Series (/forumdisplay.php?fid=4) +--- Forum: General topics (/forumdisplay.php?fid=15) +--- Thread: XML and Action URL (/showthread.php?tid=1308) |
XML and Action URL - Billx - 02-23-2014 12:03 AM [attachment=578] I am working on a PHP application for Click to Dial. Phone Info: Phone Type T28 Firmware Version 2.71.0.140 Hardware Version 1.0.0.39 When I send the following info to my T28 phone, it will dial OK. But the "Outgoing call" Action URL does not fire at all. <YealinkIPPhoneExecute Beep=no> <ExecuteItem URI=18005551212> </YealinkIPPhoneExecute> If I manually dial the same telephone number on the T28 phone, the Action URL "Outgoing call" fires OK. Is this a bug? If so, can it be fixed in the future? RE: XML and Action URL - complex1 - 02-23-2014 10:34 PM (02-23-2014 12:03 AM)Billx Wrote: I am working on a PHP application for Click to Dial. I think you are forgetting some quotes and dial command. <YealinkIPPhoneExecute Beep="no"> <ExecuteItem URI="Dial:18005551212"> </YealinkIPPhoneExecute> RE: XML and Action URL - Billx - 02-23-2014 10:52 PM Thank you for your response. You are correct about the quotes. I actually made the "cleaned up "example I used in my post from my real PHP script and forgot to put the quotes in. Here is a portion of PHP to Push to the phone: $xml = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"; $xml .= "<YealinkIPPhoneExecute Beep=\"no\">\n"; $xml .= "<ExecuteItem URI=\"$DIAL\"/>\n"; $xml .= "</YealinkIPPhoneExecute>\n"; Where $DIAL is the actual telephone number. That works fine and I can Click to Dial OK. I am trying to use the Action URL "Outgoing call" send the actual telephone number from $DIAL to another PHP script and then to my GUI, but the T28 never sends it. I can simulate the Action URL by placing the same info that I would expect from the Action URL into a web browser and then sending it to my PHP script. Then my GUI works just fine. I am using a different method now to get it to work as desired, but I would like to get it working woith the Action URL instead. RE: XML and Action URL - Yealink Support - 02-27-2014 02:19 PM You can refer to the "outgoing URI" in the admin guide. Yealink_SIP-T2xP_and_SIP-T19P_IP_Phone_Family_Administrator_Guide |