Yealink Forums

Full Version: Line LED on/off and color
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
First, my goal: to use a button to set up/disable an account on the phone and turn the account's LED to red or green depending on the status of the account.

In the developer's documentation using XML Browser, the YealinkIPPhoneExecute tag allows turning a line LED on/off and can also set the color. If this is all I do, it works great.

I am currently setting up two buttons, one to configure an account and one to disable it. If the account is enabled I want that line LED to be green, and if I disable the account I want the line LED to be red. If I also call another XML in the YealinkIPPhoneExecute file, one that uses the YealinkIPPhoneConfiguration tag to either configure an account or remove it, the LED turns on with the specified color briefly and then turns off again once the XML processing is finished. I assume it's due to a refresh that occurs after a script that changes the phone configuration, as pressing the same button again results in the light turning on and staying on (and the same line configuration is applied, so no change occurred there). Pressing the other button changes the line configuration, and I run into the same problem. I have tried changing the order of the commands I call but it does the exact same thing no matter what order they are called in. I also tried including the LED command twice, once before and once after the line calling the second XML, but it didn't change anything. I have included a copy of the XML document to disable the account and turn the LED to red below as an example.
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<YealinkIPPhoneExecute Beep = "yes">
<ExecuteItem URI = "Led:LINE3_RED=on"/>
<ExecuteItem URI = "http://server/phone-test-remove.xml"/>
<ExecuteItem URI = "Led:LINE3_RED=on"/>
</YealinkIPPhoneExecute>

Does anyone have any suggestions for how I can both change the configuration and get the line LED to stay lit and the color to change?
Reference URL's