[asterisk-users] regcontext, NoOp extension vanishes when extension reload and doesn't come back

Watkins, Bradley Bradley.Watkins at compuware.com
Tue Dec 5 11:59:26 MST 2006


Let me guess:  The context in which you have the 2 thru n priorities is
the same one as you're using for regcontext right?

Don't do that, bad things will happen (as you've noticed).

I'd have to review the code again, but I think what you're seeing is as
a result of this.

Regards,
- Brad 

> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com 
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of 
> JR Richardson
> Sent: Tuesday, December 05, 2006 1:50 PM
> To: asterisk-users at lists.digium.com
> Subject: [asterisk-users] regcontext,NoOp extension vanishes 
> when extension reload and doesn't come back
> 
> Hi All,
> 
> I just noticed something interesting.  When a sip device 
> registers and regcontext is setup in sip.conf, a NoOp 
> priority 1 extension is dynamically created in the dialplan 
> within the specified regcontext.
> Works great.  If for some reason, modification is made to the 
> extension.conf and a >reload extension is performed, those 
> dynamically created extensions in the regcontext vanish.  Now 
> this is ok, I understand why they vanish, but the strange 
> thing is they don't come back when the sip device 
> registration time expires.
> 
> If I set the max regiter time of the device to be 60 seconds, 
> after 60 seconds the phone sends another registration to the 
> server, but since the user is already cached in, the NoOp 
> priority 1 extension does not get re-created in the 
> regcontext.  I must perform a >reload chan_sip.so, wait till 
> the new registration hits and then the NoOp priority 1 
> extension is created again in the regcontext.
> 
> This is a problem, if anything happens to the dialplan and it 
> has to be reloaded, we loose active registered sip devices in 
> the regcontext, then all hell breaks loose.
> 
> Has anyone else come across this and has a work around?  
> Ultimately, I'd like to see the regcontext function ensure 
> the NoOp priority 1 extension is re-newed each registration 
> cycle, whatever the time parameter is set on.
> 
> Thanks.
> 
> JR
> --
> JR Richardson
> Engineering for the Masses
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 
> 
The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. 


More information about the asterisk-users mailing list