[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
Turn ON and OFF LED with XML
Author Message
complex1 Offline
3CX Adv. Cert. Engineer
*****

Posts: 1,509
Joined: Jan 2014
Reputation: 44
Post: #2
RE: Turn ON and OFF LED with XML
(02-28-2023 05:37 AM)mhoekstratelpa Wrote:  Hi,

We want the phone to execute a XML URI when the phone SIP registers and in this XML we want the phone to turn on a LED.
We have already succesfully made a XML browser key, and when pushed the phone DOES successfully turn ON of OFF a LED.

When we put a link to our XML scrpt in the "execute xml URI" when SIP is registered, and we can see in the HTTP logs of our server the phone successfully does a GET from our server when the SIP registration is successful.

Now the phone NEVER turns ON of OFF a LED even though this is in the XML.

I think I have somewhere this is for security reasons. That only a phone can ONLY apply a command like to turn ON of OFF a LED via XML, when a button is pushed physically. Is this correct and are there maybe some work arounds?

We have also tried with a sort of dummy button, which we let the phone virtually press (<ExecuteItem URI="Key:LINE15"/>) whithin the XML script that the phone gets when SIP-Resgistered, but we can never get the phone to light up a simple LED.

Can anyone help us?

Below the XML script that we put in the XML URI Registered:

Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<YealinkIPPhoneExecute Beep="yes">
<ExecuteItem URI="Key:LINE15"/>
<ExecuteItem URI="Led:LINE1_RED=on"/>
<ExecuteItem URI="Led:LINE2_RED=off"/>
<ExecuteItem URI="Led:LINE3_RED=off"/>
</YealinkIPPhoneExecute>

Hi,

I don't know if it will work, but try this:

First create a xml file on your server with the name test.xml and add:
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
  <YealinkIPPhoneExecute Beep="yes">
    <ExecuteItem URI="Led:LINE3_RED=off"/>
    <ExecuteItem URI="Led:LINE2_RED=off"/>
    <ExecuteItem URI="Led:LINE1_RED=on"/>
    <ExecuteItem URI="Dial:100" interruptCall="no"/>
  </YealinkIPPhoneExecute>

then set a Line Key:
Phone – DSS Keys – Line Keys
Line key 1: XML Browser - <IP-address server>/test.xml

Now if you press Line Key 1 then the LEDs of Line 3 and 2 should go Off, and Line 1 should go On.
Assuming you want to dial extension 100 with Line Key 1, now ext. 100 will be dialed at the end of the test.xml file.

Kind regards,
Frank.

I am not an employee of Yealink.
Dutch is my native language, not English. Apologies for my imperfect grammar.
Please do not send unsolicited PM messages. I will not answer them.
(This post was last modified: 02-28-2023 09:06 PM by complex1.)
02-28-2023 09:04 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Turn ON and OFF LED with XML - complex1 - 02-28-2023 09:04 PM

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
Bug Yealink T46G wont turn on after firmware update mike702 1 5,653 02-02-2021 08:21 PM
Last Post: complex1
  How do you turn off custom linekey configuration ipcsolutions 2 7,214 01-28-2019 08:21 PM
Last Post: ipcsolutions
  Turn off all Missed Call indication but still receive Missed Calls in the Log ipcsolutions 2 7,500 01-12-2019 09:56 PM
Last Post: ipcsolutions
  Turn Off Headset earplug 5 14,921 08-23-2017 09:35 PM
Last Post: mikes
Lightbulb Enhancement to T46G - Add page turn button imfloridaguy 3 8,574 05-01-2015 08:44 AM
Last Post: telepathinc
  46g - turn off missed call message? asinshesq 3 10,468 04-07-2015 06:28 AM
Last Post: Ajohnson
Wink Turn ON DND Function from a XML Menu Script dvwrath 9 15,558 03-27-2015 02:04 PM
Last Post: Flora_Yealink
  Turn on backlight with keypress without action willemj 5 11,258 03-01-2015 06:39 PM
Last Post: telepathinc
  T46G how to turn off PC port Gary Clarke 1 9,078 12-20-2013 09:00 AM
Last Post: Yealink Support

Forum Jump:


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

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