[Asterisk-Users] fallthrough extension.
Jason Williams
jas.williams at gmail.com
Fri Dec 3 02:50:30 MST 2004
On Thu, 2 Dec 2004 22:30:17 +0000, Jon Lawrence <jon at lawrence.org.uk> wrote:
> Hi all,
> I'm trying to sort out my dial plan.
> What I'm wanting is something like the following - a bit simplified but
> hopefully you'll get the idea.
> 1) match internal extensions: dial them
> 2) anything else: send out zap
>
> 1 is easy :) it's 2 that's giving me problems.
> I had hoped that the 'i' extension would act as a catchall extension but it
> seems to only do that from a menu. I've tried matching _. (hoping that *
> would parse the dial plan from top to bottom) but that just took over the
> entire dial plan and everything went out of the dial with the _. match.
>
The right way to do it is two have two contexts see below
[internal]
exten =>_3XXX,1,Dial(..... etc
include=>catchall
[catchall]
exten => _.,1,Dial(Zap..... etc
In this way internal will be parsed first then the catchall and
followed through in include order.
Jason
More information about the asterisk-users
mailing list