[asterisk-users] Force sip peers to re register

Kevin P. Fleming kpfleming at digium.com
Mon Mar 5 09:55:28 CST 2012


On 03/05/2012 08:29 AM, Danny Nicholas wrote:
> If you really want to be "big brother" just run this script when the
> failover occurs:
> for a in `asterisk -rx "sip show peers"|cut -f1 -d/` ;do asterisk -rx  "sip
> nofify polycom-check-conf $a";done
> This will cause each of your polycom sip peers to reset.

As Alex pointed out, if the Asterisk server in question needs the phones 
to re-register in order to send them calls, then it probably cannot send 
them SIP NOTIFY requests either.

In addition, this NOTIFY request does not cause a Polycom phone to 
"reset". It instructs the phone to check its provisioning server for any 
changes to its configuration, and if there are any then apply them 
(rebooting if necessary). If the configuration has not changed, sending 
the phone a check-conf NOTIFY should be a no-op.

-- 
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
Jabber: kfleming at digium.com | SIP: kpfleming at digium.com | Skype: kpfleming
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at www.digium.com & www.asterisk.org



More information about the asterisk-users mailing list