New Forum system requires email address which you used to apply for your account to replace your original username. Password stays the same.Please see this post for more details
http://forum.yealink.com/forum/showthread.php?tid=40344

Yealink Test Club has been officially launched. Please visit post below to get detail information. Come and join us!
http://forum.yealink.com/forum/announcements.php?aid=18

We just had the YMCS online and we are also working on the features plan on the future versions, in this regard we are need to hear your voice about the YMCS.
Please visit : http://forum.yealink.com/forum/showthread.php?tid=42322


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Create call with XML Object
Author Message
danield Offline
Junior Member
**

Posts: 6
Joined: Sep 2015
Reputation: 0
Post: #1
Create call with XML Object
Hello,

i want to generate a call with a php script.
With my script, nothing happens.
Where did I made something wrong?

PHP Code:
$xml '<?xml version="1.0" encoding="ISO-8859-1"?>';
        
$xml.= '<YealinkIPPhoneExecute Beep="yes">';
        
$xml.= '<ExecuteItem URI="Dial:12345" />';
        
$xml.= '<ExecuteItem URI="Led:LINE1=on"/>';
        
$xml.= '<ExecuteItem URI="Led:LINE2=off"/>';
        
$xml.= '</YealinkIPPhoneExecute>';

        
        
$xml "xml=".$xml;
        
$post "POST / HTTP/1.1\r\n";
        
$post .= "Host: 192.168.0.10\r\n";
        
$post .= "Referer: 192.168.0.29\r\n";
        
$post .= "Connection: Keep-Alive\r\n";
        
$post .= "Content-Type: text/xml\r\n";
        
$post .= "Content-Length: ".strlen($xml)."\r\n\r\n";
        
$fp = @fsockopen '192.168.0.10'80$errno$errstr5);
        if(
$fp)
        {
            
fputs($fp$post.$xml);
            
flush();
            
fclose($fp);
        } 

192.168.0.10 is the ip-address of my phone and 192.168.0.29 of my pc
Cheers,
Daniel

I forget to save the server ip into the phone configuration.
Now it works.
(This post was last modified: 09-15-2015 09:42 PM by danield.)
09-15-2015 09:33 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Post Reply 


Messages In This Thread
Create call with XML Object - danield - 09-15-2015 09:33 PM

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Yealink T41S Call log JoseVM 1 223 09-08-2019 10:34 PM
Last Post: Babylonia
Exclamation Call log on after Att transfer VP-T49G Roksvel 4 750 06-18-2019 09:35 AM
Last Post: Roksvel
  Yealink VCD Internet Video Call Settings Nezar 0 317 05-09-2019 12:34 PM
Last Post: Nezar
  Voice barely audible during incoming call Chris708 7 2,318 04-29-2019 01:31 PM
Last Post: Chris708
Question Hide Call History on Yealink IP Phones wizardwebsolutions 5 1,689 04-04-2019 09:58 AM
Last Post: Marie7
  Call History shows extension not external number mcurrie 4 1,307 02-14-2019 11:04 AM
Last Post: complex1
  Yealink T48S and Cisco Unified Communications Manager (CUCM) aka:Call Manager AAP1811 1 1,264 02-13-2019 07:46 PM
Last Post: jolouis
  T46S Connect call and show incoming number MartinNybrogrus 1 684 01-28-2019 03:42 PM
Last Post: jolouis
  Deactivate buttons while on call mhessels 0 677 12-07-2018 09:01 PM
Last Post: mhessels
  Call forward shane.caznet 1 1,093 10-10-2018 06:16 PM
Last Post: jolouis

Forum Jump:


User(s) browsing this thread:

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