Missing "sip_notify.conf" file?

dstroot

Guru
Joined
Dec 20, 2007
Messages
31
Reaction score
0
I use Polycom phones. When I change the Polycom config files I simply type "REBOOT" on one of the phones and reboot all of them to load the new firmware or SIP config changes using this code in extensions_custom.conf:

;*************** Custom Polycom Reboot ******************
; Usage: Used to reboot all Polycom phones
;********************************************************
;
; Extension REBOOT (732668) - resets all polycom phones from 1001 - 1010
;
;********************************************************
; Installation:
; Copy to 'extensions_custom.conf'
; Add 'exten => 732668,1,goto(custom-polycom-reboot,s,1) ; dial 732668 (REBOOT)'
: to [from-internal-custom] context
;
;********************************************************
[custom-polycom-reboot]
exten => s,1,Answer()
exten => s,2,Set(COUNT=1001) ;start counting
exten => s,3,GotoIf($["${COUNT}" = "${CALLERID(num)}"]?5) ;dont reboot the caller... yet
exten => s,4,System(/usr/sbin/asterisk -rx "sip notify polycom-check-cfg ${COUNT}") ;reboot a phone
exten => s,5,Set(COUNT=${MATH(${COUNT}+1,i)}) ;increment the count
exten => s,6,GotoIf($["${COUNT}" != "1010"]?3) ;check if we have rebooted the phones to the count
exten => s,7,Playback(tt-weasels) ;let them know something happened
exten => s,8,System(/usr/sbin/asterisk -rx "sip notify polycom-check-cfg ${CALLERID(num)}") ;reboot the caller
exten => s,n,Hangup()
;************** End Custom Polycom Reboot ***************

There is one additional tweak you need to make to Polycom's sip.conf to get the the phones to reboot but without sip_notify.conf filled in this will never work. Once I created sip_notify.conf and populated it things were back to normal. Other "green" distributions have this file. ;)
 

Attachments

Members online

No members online now.

Forum statistics

Threads
26,688
Messages
174,412
Members
20,259
Latest member
Fadeek86
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top