> -----Original Message-----
> From: Peter Bowyer [mailto:[EMAIL PROTECTED]
> 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 <[EMAIL PROTECTED]> 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).



_______________________________________________
--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

Reply via email to