[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
API to send the account information using XML POST
Author Message
mr.expert Offline
Junior Member
**

Posts: 1
Joined: Jan 2018
Reputation: 0
Post: #1
API to send the account information using XML POST
Hello,

I am working on Yealink T23G and was trying to send sip account information from my computer to the phone using API with C program.

I followed the documentation on from the link: http://support.yealink.com/documentFront...umentId=33

Does anyone know how can I post XML to the phone using the API?
I do not want to use software/server for the HTTP server or XMLRPC. I want to POST the XML using the C program only.

Also, I was able to login to the phone using `CURL` referring the following link:
http://forum.yealink.com/forum/archive/i...-4066.html

Following command worked fine:
Code:
curl -D "abcd.txt" "192.168.0.225/servlet?p=login&q=login&username=admin&pwd=admin&jumpto=URI&&key=AutoP"

I got the response of "200 ok" and cookies got saved. (was testing on the terminal using terminal command before writing the C program)


I tried the following command to send the XML, but it did not work:
Code:
[quote]url -D "abcd.txt" -X "POST" -d "xml=<?xml version="1.0" encoding="ISO-8859-1"?><YealinkIPPhoneConfiguration Beep="yes"><Item>account.1.enable=1</Item><Item>account.1.label=1400</Item><Item>account.1.display_name
=1400</Item><Item>account.1.user_name=1400</Item><Item>account.1.auth_name=1400</Item><Item>account.1.sip_server.1.address=10.2.1.199</Item></YealinkIPPhoneConfiguration>" "192.168.0.225/servlet?p=account-register&q=load&acc=0"[/quote]

I have also tried using the postman software to find the issue but did not find the solution.

Is there a specific URL for the XML API or should I just use the IP address of the phone? Am I using the wrong API above? Is it possible to share the URL list for the XML API?

Thanks.
01-12-2018 11:37 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Post Reply 


Messages In This Thread
API to send the account information using XML POST - mr.expert - 01-12-2018 11:37 PM

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  T55A USB headset mic send volume too low joleti@temperzone.com 0 3,244 10-29-2021 04:06 AM
Last Post: joleti@temperzone.com
  T21P E2 Send softkey missing Mardy 1 7,763 06-19-2017 02:45 AM
Last Post: Jensen_Yealink
  T21 control send volume via webgui Cynergy 7 37,160 05-30-2016 06:53 PM
Last Post: EricaJohn
  T41P: Account 1 and 2 won't register? gatorphan 9 32,792 02-12-2016 04:41 PM
Last Post: rdoyle1000
  T27P headset send volume low jaroslaw.mlynek 3 13,571 12-18-2015 02:46 PM
Last Post: Karl_Yealink
  T48G - Default Account robtrop 1 9,562 10-29-2015 07:41 PM
Last Post: Yealink_Michael
  BLF state is broken after simultaneous call to watched account strang 11 48,417 06-20-2015 06:31 PM
Last Post: Brian3644
  T26 Account 1 No Longer Will Register Bezalu 1 7,961 06-09-2015 02:42 AM
Last Post: Flora_Yealink
  T21 headset send volume low sheilab 1 10,945 02-02-2015 05:32 PM
Last Post: Yealink_Peter

Forum Jump:


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

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