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. I'm sure that there must be a way of doing this, can anyone point me in the right direction. TIA Jon
exten => _3XXX,1,Dial(SIP/${EXTEN}) ; matches extensions and dials them
exten => _.,1,Dial(ZAP/g1/${EXTEN}) ; should match anything else
Matthew
----- Original Message -----
From: "Jon Lawrence" <jon@lawrence.org.uk>
To: <asterisk-users@lists.digium.com>
Sent: Thursday, December 02, 2004 4:30 PM
Subject: [Asterisk-Users] fallthrough extension.
> 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.
>
> I'm sure that there must be a way of doing this, can anyone point me in
the> right direction.
>
> TIA
> Jon
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users@lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
Have you added a 't' extension? 't' is for timeout. Make sure the 't' and 'i' are in the same context [contextXXXX] internal => dial them i,... t,... Race "The Tyrant" Van der Decken footnote -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Jon Lawrence Sent: 02 December 2004 17:30 To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] fallthrough extension. 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. I'm sure that there must be a way of doing this, can anyone point me in the right direction. TIA Jon _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
On Thu, 2 Dec 2004 22:30:17 +0000, Jon Lawrence <jon@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