Logicwrath Posted October 11, 2016 Report Posted October 11, 2016 Hello,In the provisioner, we have a reboot option per device. It would be nice if we had the following options above and beyond that.1. Reboot single device at X time. This way we can make a change and have the phone automatically reboot late at night when it is not in use.2. Reboot single device at X time on schedule. I have seen people complain about BLF issue and phone reboots. In some cases rebooting a single phone on a schedule might help eliminate complaints.3. Reboot all phones in an account.4. Reboot all phones in an account at X time.5. Reboot all phones in an account at X time on a schedule.---At this time it would certainly be helpful if we could schedule reboots at night for when we make changes but don't want to reboot the phone because we don't know if it is in use.
Logicwrath Posted November 9, 2016 Author Report Posted November 9, 2016 With more recent BLF issues I have put in some time figuring out how to reboot phones for a specific client. I wanted to share the information here.This information is only for Yealink phones.First, it seems like small Internet outages (1-2 minutes) are worse than larger outages (> 5 minutes). The way I understand it, the phone might "re-subscribe" to BLF if it detects an Internet outage. However, if the outage is in between registrations and the phone does not detect it because the outage is small, it might not do that and BLF can break and stop working. We have seen this behavior even if the OUT DIALOG BLF setting is enabled. This setting is supposed to allow the phone to accept NOTIFY updates even if they are out of sequence.Since we don't have a way to reboot phones on a schedule I needed to write a script.First, in order to allow the Yealink phones to accept remote control commands you need to configure the following setting:## Enable or Disable "Allow Remote Control" prompt on phone:features.show_action_uri_option=0I am not sure if this is available in the GUI, if you find it in the GUI, please update this thread. You may only be able to set this option during provisioning. We provision our phones privately first and then re-provision them with 2600's Advanced Provisioner. This allows us to configure *required* settings that 2600 does not support.You could save the settings to a file and upload the file as a local configuration. I think that would work as well.Next, you need to configure the Yealink phone to allow ActionURI commands to be accepted by your IP or subnet.## Specifies the address(es) from which ActionURI will be accepted.features.action_uri_limit_ip=192.168.*.*,172.16.*.*,10.*.*.*The command above will allow ActionURI commands from any private IP subnet. You could also set it to any or something specific.Once these settings are configured you can use the remote control features that Yealink provides including the "Reboot" command. Here is an example:https://username:password@ip.address/cgi-bin/ConfigManApp.com?key=RebootYou can run that in a browser, use CURL, or some other method. This will reboot the phone immediately. If the user is on the phone, it will wait until the call is ended and then reboot immediately.In our case we configured a script in our firewall to reboot the phones every day at a specific time. It also staggers the reboots by 30 seconds so the 2600 proxy does not think it is getting attacked.This is already having a positive effect for us. Additionally, if we make any changes during the day, we can expect those changes to be applied within 24 hours.
Joseph Watson Posted November 24, 2016 Report Posted November 24, 2016 If I remember correctly you can push a reboot request via the API. We have been playing with the idea of creating some kind of "thingie" to use this to do automatic device reboots.
Logicwrath Posted November 28, 2016 Author Report Posted November 28, 2016 I looked for the API to reboot a phone and did not find it. If you know it, can you please post a link or reference?
Rick Guyton Posted November 28, 2016 Report Posted November 28, 2016 I'm not sure if this is "official API" but if you JSON post to http://ui.zswitch.net/v2/accounts/ACCOUNTID/devices/DEVICEID/sync , with your X-Auth Token, it'll reboot the phone.
Administrators Darren Schreiber Posted November 28, 2016 Administrators Report Posted November 28, 2016 If the phone is registered, the above should work. Thanks Rick for posting that.Please note not all phones support this.
Rick Guyton Posted November 28, 2016 Report Posted November 28, 2016 NP that's one of the things I love about Kazoo. ANYTHING you can do via UI can be done via API. Just need to fire up developer tools and see what APIs are being hit. :)
Recommended Posts