[Asterisk-Users] regexten
Douglas Garstang
dgarstang at oneeighty.com
Fri Mar 17 00:06:38 MST 2006
Luigi, I got to it work in the configuration I posted. Funny bug... Anyway I had to put regcontext in the globals section of sip.conf, not against a specific user.
Thanks for your help. Unfortunately, since this approach with DUNDi only has phones registered to a single Asterisk box, it isn't much of a HA solution. Having phones unreachable for the re-registration period isn't an option.
Doug
-----Original Message-----
From: Luigi Rizzo [mailto:rizzo at icir.org]
Sent: Thu 3/16/2006 11:49 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Cc:
Subject: Re: [Asterisk-Users] regexten
On Thu, Mar 16, 2006 at 04:41:42PM -0700, Douglas Garstang wrote:
>
>
> > -----Original Message-----
> > From: Luigi Rizzo [mailto:rizzo at icir.org]
> > Sent: Thursday, March 16, 2006 4:34 PM
> > To: Asterisk Users Mailing List - Non-Commercial Discussion
> > Subject: Re: [Asterisk-Users] regexten
> >
> >
> > On Thu, Mar 16, 2006 at 04:27:10PM -0700, Douglas Garstang wrote:
> > > Thanks for the reply, but still no luck.
> > >
> > > sip.conf:
> > > [2944093]
> > > ...
> > > regcontext=sip_autoreg
> > > regexten=2944093
> > >
> > > extensions.conf:
> > > [From_OneEighty]
> > > include => sip_autoreg
> > >
> > > [sip_autoreg]
> > > exten => 2944093,2,Answer
> > > exten => 2944093,3,Dial(SIP/2944093)
> > > exten => 2944093,4,Hangup
> >
> > I repeat:
> >
> > > > as unfortunate as it can be, at the moment you need to use
> > > > a different context for entries generated by 'regexten'
> >
> > you still have static entries in context [sip_autoreg]
> > in extensions.conf, and use the same context for
> > entries generated by regexten - regcontext=sip_autoreg
> Sorry? Say again? If you don't mind, you could you have another go at explaining that? That really didn't make sense to me.
> I do have a different context for entries generated by regexten... it's [sip_autoreg]
no you have only one context - see above your email - both
your static context and your regexten context are named 'sip_autoreg'
and asterisk cannot handle this case.
As i said, it is a bug (at least the fact that it doesn't send an
error message) and i reported it already.
There is a workaround, which is using contexts with different
names and including the 'dynamic' one into the static one,
so the problem is not terribly critical.
Hope now it is clear enough.
bye
luigi
> Doug
>
> > cheers
> > luigi
> >
> > > Phone comes up, and registers:
> > > *CLI> -- Saved useragent
> > "PolycomSoundPointIP-SPIP_601-UA/1.6.3.0067" for peer 2944093
> > >
> > > Dialplan before and after shows the same thing:
> > > '2944093' => 2. Answer()
> > [pbx_config]
> > > 3. Dial(SIP/2944093)
> > [pbx_config]
> > > 4. Hangup()
> > [pbx_config]
> > >
> > > Doug.
> > >
> > >
> > > > -----Original Message-----
> > > > From: Luigi Rizzo [mailto:rizzo at icir.org]
> > > > Sent: Thursday, March 16, 2006 4:14 PM
> > > > To: Asterisk Users Mailing List - Non-Commercial Discussion
> > > > Subject: Re: [Asterisk-Users] regexten
> > > >
> > > >
> > > > On Thu, Mar 16, 2006 at 03:55:18PM -0700, Douglas Garstang wrote:
> > > > > So, After about 6 months I think I've finally worked out
> > > > how regexten works.
> > > > >
> > > > > And... it doesn't look like it will serve my purpose. I'm
> > > > hope I'm wrong, otherwise what a letdown! It also means that
> > > > DUNDI becomes unusable as a HA mechanism.
> > > >
> > > > as unfortunate as it can be, at the moment you need to use
> > > > a different context for entries generated by 'regexten'
> > > > and entries statically configured. Then you have to include
> > > > one into the other so you can match all entries on a call.
> > > >
> > > > I opened a bug on mantis some time ago, indicating two possible
> > > > fixes. Hopefully this will be resolved sooner or later.
> > > >
> > > > cheers
> > > > luigi
> > > >
> > > > > Let me see if I understand its function correctly tho...
> > > > >
> > > > > My sip.conf:
> > > > > [2944093]
> > > > > ...
> > > > > regcontext=sip_autoreg
> > > > > regexten=2944093
> > > > >
> > > > > extensions.conf:
> > > > > [sip_autoreg]
> > > > > exten => 2944093,2,Answer
> > > > > exten => 2944093,3,Dial(SIP/2944093)
> > > > > exten => 2944093,4,Hangup
> > > > >
> > > > > Phone comes up. Asterisk sees this:
> > > > > *CLI> -- Saved useragent
> > > > "PolycomSoundPointIP-SPIP_601-UA/1.6.3.0067" for peer 2944093
> > > > >
> > > > > However, I don't have a NoOp() priority 1.
> > > > >
> > > > > [ Context 'sip_autoreg' created by 'pbx_config' ]
> > > > > '2944093' => 2. Answer()
> > > > [pbx_config]
> > > > > 3. Dial(SIP/2944093)
> > > > [pbx_config]
> > > > > 4. Hangup()
> > > > [pbx_config]
> > > > >
> > > > > Why?
> > > > > _______________________________________________
> > > > > --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
> > > > _______________________________________________
> > > > --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
> > > >
> > > _______________________________________________
> > > --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
> > _______________________________________________
> > --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
> >
> _______________________________________________
> --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
_______________________________________________
--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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 13058 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20060317/32393158/attachment.bin
More information about the asterisk-users
mailing list