[asterisk-users] Trouble with regexten

Watkins, Bradley Bradley.Watkins at compuware.com
Thu Nov 30 07:37:47 MST 2006


Creating a context in your extensions.conf with the same name as your
regcontext will cause all kinds of oddness to happen, among them this.

What you need to do is have a differently-named context in
extensions.conf with your 2-n priorities and include sip_autoreg in
that.

Regards,
- Brad

> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com 
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of 
> Russell Brown
> Sent: Thursday, November 30, 2006 4:14 AM
> To: asterisk-users at lists.digium.com
> Subject: [asterisk-users] Trouble with regexten
> 
> 
> Can anyone help with the use of regexten? (* 1.4.3)
> 
> I've got Asterisk creating extensions for my SIP phones using 
> regexten but I can't seem to figure out how to make use of 
> them once they're registered.
> 
> Here's my dialplan for from-sip (the SIP's default context):
> 
>     asterisk*CLI> dialplan show from-sip
>     [ Context 'from-sip' created by 'pbx_config' ]
>       '98766' =>        1. Dial(Sip/Tim) [pbx_config]
>                         2. Hangup()      [pbx_config]
>       Include =>        'sip_autoreg'    [pbx_config]
>       Include =>        'widgets'        [pbx_config]
>     
>     -= 1 extension (2 priorities) in 1 context. =-
>     asterisk*CLI> 
> 
> and here's sip_autoreg (the regexten context):
> 
>     asterisk*CLI> dialplan show sip_autoreg
>     [ Context 'sip_autoreg' created by 'pbx_config' ]
>       '114' =>          2. Dial(Sip/Tim)     [pbx_config]
>                         3. Hangup()          [pbx_config]
>     
>     [ Context 'sip_autoreg' created by 'SIP' ]
>       '112' =>          1. Noop(Russell)     [SIP]
>       '113' =>          1. Noop(Richard)     [SIP]
>       '114' =>          1. Noop(Tim)         [SIP]
>     
>     -= 4 extensions (5 priorities) in 2 contexts. =-
>     asterisk*CLI>
> 
> Dialing 98766 from Sip/Russell rings Sip/Tim as expected.
> 
> Dialing 114 gives "Not Found" :-(
> 
> I'm very confused.... any ideas why this doesn't work?
> 
> --
>  Regards,
>      Russell
>  --------------------------------------------------------------------
> | Russell Brown          | MAIL: russell at lls.com PHONE: 01780 471800 |
> | Lady Lodge Systems     | WWW Work: http://www.lls.com              |
> | Peterborough, England  | WWW Play: http://www.ruffle.me.uk         |
>  --------------------------------------------------------------------
> _______________________________________________
> --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