[asterisk-bugs] [Asterisk 0017797]: [patch] SIP autocreate peers disappear on "sip reload"

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Aug 5 15:49:50 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17797 
====================================================================== 
Reported By:                kkm
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17797
Category:                   Channels/chan_sip/Registration
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!): 280980 
Request Review:              
====================================================================== 
Date Submitted:             2010-08-04 20:50 CDT
Last Modified:              2010-08-05 15:49 CDT
====================================================================== 
Summary:                    [patch] SIP autocreate peers disappear on "sip
reload"
Description: 
Upon reloading chan_sip configuration, all autocreated peers disappear.
That's a big hassle if one runs an Asterisk server with 100s of autopeers
(AI guys in our case) with some statically configured trunks that need a
configuration change from time to time.

Quoting lmadsen on the dev list: “I'm not sure if this is a bug or a
feature :)  Sounds like we might need an autocreatepeercache=[yes|no]
option, in which case this would be a feature request.”

The attached patch adds the third choice to the sip.conf global
autocreatepeers= setting, "durable", to keep autopeers across config
reload. The behavior of "yes" and "no" did not change.

Attaching patch against the latest 1.8 trunk and another for those running
1.6, against 1.6.2.9 (we use the latter in production).
====================================================================== 

---------------------------------------------------------------------- 
 (0125609) lmadsen (administrator) - 2010-08-05 15:49
 https://issues.asterisk.org/view.php?id=17797#c125609 
---------------------------------------------------------------------- 
Documentation would be ideal. You should make sure you at least document
what the option you're adding is providing.

I'm not sure I like "durable". I think perhaps "persist" might be a better
name as we've used that word in a few other places.

Thanks for the patch! 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-08-05 15:49 lmadsen        Note Added: 0125609                          
======================================================================




More information about the asterisk-bugs mailing list