Possible to remote restart Polycom phones?

dmitry
Posts: 48
Member Since:
2007-01-25

Just like the subject says, I'm looking for a way to remote restart Polycom phones to force an update. I'd like to be able to do this at night without having to call one of the users to walk around and unplug all the phones...



Zildjian26
Posts: 239
Member Since:
2006-06-05
Re: Possible to remote restart Polycom phones?

From the asterisk CLI:

sip notify polycom-check-config

replace with the extension you wish to reboot.

You also might want to modify this value in sip.cfg:

voIpProt.SIP.specialEvent.checkSync.alwaysReboot="x"

0 will only reboot if files on the FTP/TFTP server have changed
1 will reboot the phone always



dmitry
Posts: 48
Member Since:
2007-01-25
Re: Possible to remote restart Polycom phones?

Awesome - Thanks!

BTW, for anyone that comes looking, it's:

sip notify polycom-check-cfg



pcbytc
Posts: 153
Member Since:
2007-12-04
I had to add stuff to sip_notify

To /etc/asterisk/sip_notify.conf:

I added:

[polycom-check-cfg]
Event=>check-sync
Content-Length=>0

but I renamed it [polyboot]

So, Lazy me types "sip notify polyboot 4930" (4930 is the extension)
That works nicely too.

And I stumbled across this gem and implemented it, Nice and easy!:
Rebooting Polycom Phones from within a dialplan

You can use this from within a dailplan as well. Make sure to pick a password that is very secure. Seems silly to have to call asterisk from itself inorder to do this but it works. I have 200 polycom phones with extensions from 3000 to 3199. This loops through and tells them all to reboot. On an opteron system this takes about 30 seconds to send all the messages out. This is very useful if you have a bunch of phones and are rolling out new features. I either do this late at night or page everyone and let them know an hour before hand.

; Extension RESETPHONES (73738746637) - resets all polycom phones from 3000 - 3199
exten => 73738746637,1,Answer()
exten => 73738746637,2,Authenticate(65) ;get the password
exten => 73738746637,3,Playback(queue-holdtime) ;let them know it will take a while
exten => 73738746637,4,Playback(digits/30)
exten => 73738746637,5,Playback(queue-seconds)
exten => 73738746637,6,Set(COUNT=0) ;start counting
exten => 73738746637,7,GotoIf($["${COUNT}" = "${CALLERID(num):1}"]?9) ;dont reboot the caller... yet
exten => 73738746637,8,System(/usr/sbin/asterisk -rx "sip notify polycom-check-cfg 3${COUNT}") ;reboot a phone
exten => 73738746637,9,Set(COUNT=${MATH(${COUNT}+1,i)}) ;increment the count
exten => 73738746637,10,GotoIf($["${COUNT}" != "200"]?7) ;check if we have rebooted the 200 phones
exten => 73738746637,11,Playback(tt-weasels) ;let them know something happened
exten => 73738746637,12,Playback(queue-thankyou)
exten => 73738746637,13,System(/usr/sbin/asterisk -rx "sip notify polycom-check-cfg ${CALLERID(num)}") ;reboot the caller
exten => 73738746637,14,Hangup()



andrew
Posts: 1472
Member Since:
2006-05-30
Also check out the new

Also check out the new endpoint manager. It has a web GUI that can reboot phones.



taverny
Posts: 25
Member Since:
2007-03-08
What version of Endpoint

What version of Endpoint manager is the update , I have 2.6.3-1 and I don't see any button to reboot the polycom phone.
Also, I tried the following command but with no success :
sip notify polyboot 580
asterisk -rx "sip notify polyboot 580"
Any idea on the correct command to reboot polycom phone (331 and 501 Models)

i would like to reboot the phone from CLI. so far if I want to reboot the phone I type the IP address of the phone in the browser and change something to have it reboot.
Thanks



taverny
Posts: 25
Member Since:
2007-03-08
Ok I figured it out: here

Ok I figured it out:
here are the steps:
1- Change the following in /tftpboot/sip.cfg
"voIpProt.SIP.specialEvent.checkSync.alwaysReboot=0" to "voIpProt.SIP.specialEvent.checkSync.alwaysReboot=1"
2- Paste the following in the /etc/asterisk/sip_notify.conf

[polycom-check-cfg]
Event=>check-sync
Content-Length=>0

3- reboot server
4- reboot phones because they need to have the new sip config before we can send a request
5- when everything is rebooted do the following in CLI to restart extension 580:
asterisk -rx "sip notify polycom-check-cfg 580



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.