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

Yealink Test Club has been officially launched. Please visit post below to get detail information. Come and join us!

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 :

Post Reply 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
API to send the account information using XML POST
Author Message Offline
Junior Member

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

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:

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:

Following command worked fine:
curl -D "abcd.txt" ""

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:
[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=</Item></YealinkIPPhoneConfiguration>" ""[/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?

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 - - 01-12-2018 11:37 PM

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  T21P E2 Send softkey missing Mardy 1 2,220 06-19-2017 02:45 AM
Last Post: Jensen_Yealink
  T21 control send volume via webgui Cynergy 7 16,669 05-30-2016 06:53 PM
Last Post: EricaJohn
  T41P: Account 1 and 2 won't register? gatorphan 9 13,284 02-12-2016 04:41 PM
Last Post: rdoyle1000
  T27P headset send volume low jaroslaw.mlynek 3 4,621 12-18-2015 02:46 PM
Last Post: Karl_Yealink
  T48G - Default Account robtrop 1 3,807 10-29-2015 07:41 PM
Last Post: Yealink_Michael
  BLF state is broken after simultaneous call to watched account strang 11 15,353 06-20-2015 06:31 PM
Last Post: Brian3644
  T26 Account 1 No Longer Will Register Bezalu 1 3,309 06-09-2015 02:42 AM
Last Post: Flora_Yealink
  T21 headset send volume low sheilab 1 5,007 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