[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
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 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Yealink MP52 Call History mairagonzalez 0 233 03-06-2024 11:49 AM
Last Post: mairagonzalez
  About call history Andrei9385 3 5,947 01-10-2024 08:58 PM
Last Post: sles
  Disable Internal Call History Only justyncharbonneau 1 618 01-05-2024 12:53 AM
Last Post: complex1
  incoming call while active call , conference sles 2 928 12-08-2023 06:50 PM
Last Post: sles
  How to pick up colleagues call via Yealink MP56 jayden23 0 639 11-29-2023 09:14 AM
Last Post: jayden23
Exclamation Can't Create Support Ticket nthoman@bmic.com 0 621 10-26-2023 04:16 AM
Last Post: nthoman@bmic.com
  T53 Calling from call history jake 2 3,530 09-21-2023 02:37 AM
Last Post: andrew.manning
  View call logs for dropped calls computersense 0 918 08-15-2023 11:26 AM
Last Post: computersense
  Call history not showing the right information after an attended transfer wirelessmundi 5 12,654 08-15-2023 12:41 AM
Last Post: Yisroel_MongoTEL
  WH67 call forwarding issue in Teams iapbonn 0 1,113 06-19-2023 02:32 PM
Last Post: iapbonn

Forum Jump:


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

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