You can remote-reboot your Polycom phones from the Asterisk CLI by sending a SIP NOTIFY command. This command instructs the phone to recheck its configuration, and therefore, will reboot when certain parameters have been set in your phone configuration provisioning.
Make sure the following directive is set in your provisioning config:
<specialEvent voIpProt.SIP.specialEvent.checkSync.alwaysReboot="1" />
You find this in sip.cfg, or you can set it in your own configuration (mine's called aaps-settings.cfg, but that's just an arbitrary name).
<localcfg> <SIP> <specialEvent voIpProt.SIP.specialEvent.checkSync.alwaysReboot="1" /> <outboundProxy voIpProt.SIP.outboundProxy.address="192.168.20.1"/> </SIP> </localcfg>
Note that if this was set to the default of 0, then you will have to manually reboot the phones. Sending the SIP NOTIFY command won't work until the new config has been fetched (by rebooting the phone).
Add the next directives to /etc/asterisk/sip_notify.conf to create the proper SIP NOTIFY command:
[reboot-plcm] Event=>check-sync Content-Length=>0
Don't forget to reload Asterisk.
Now, you can use the sip notify command to reboot a phone:
CLI> sip notify reboot-plcm 200
The command above will reboot a phone with extension 200. Substitute 200 to suit your environment.
« ‹ | October 2024 | › » | ||||
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |