[asterisk-users] Match a Numer - then continue with dialplan
Douglas Garstang
dgarstang at oneeighty.com
Wed Dec 20 10:18:18 MST 2006
> -----Original Message-----
> From: Peter Bowyer [mailto:peter at bowyer.org]
> Sent: Wednesday, December 20, 2006 9:44 AM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [asterisk-users] Match a Numer - then continue with
> dialplan
>
>
> On 20/12/06, Douglas Garstang <dgarstang at oneeighty.com> wrote:
> > Bzzt. In order to call SetVar, I have to match the
> extension dialled. When that happens, there is NO WAY to
> continue searching the dialplan after that point for another
> extension to match.
>
> Can you not use either Goto or the Local channel, maybe a combination,
> to restart the dialplan with your variable set? (Might need a _ or two
> on the variable name to get it to survive)
The Goto() command requires priority (extension, context). I'd need to jump to a context, without supplying an extension, which it won't accept. If I pass a priority, we're right back at square one, we're I'm stuck in a priority and can't get back to an extension. I tried putting a Dial(Local/${EXTEN}), but the problem was that Asterisk then went into an infinite when I tried to include all the company contexts together (because it was matching the Dial/Local again).
More information about the asterisk-users
mailing list