Stephen Rosebush
2004-Jun-16 07:32 UTC
[Asterisk-Users] Invalid Extensions -- More like traditional PBX systems?
I was wondering if there was a way of setting up the dialplan in a way that if you dial an extension that is NOT in the dialplan then it would play a not-in-service gsm file and then play congestion tones. I would rather like this better than just hearing a busy signal on my phones.. I DID search around on the wiki and using google and could not find anything. Thanks. -- Stephen Rosebush, srosebush@desynched.org http://www.desynched.org/ // Hardline // IP Phone USA: 1-248-724-4452 x201 FWD: 63420 x201 Netherlands: +31-(0)20-6598858 x63420 x201 IAXTEL: 1-700-356-6191 x201 United Kingom: +44-(0)870-3403054 x201 SIP: sip:srosebush@desynched.org
Ray Burkholder
2004-Jun-16 07:35 UTC
[Asterisk-Users] Invalid Extensions -- More like traditional PBX systems?
Set up a general pattern match with the message and congestion. Extension pattern matching looks for the most specific match in any one context. So if a specific extension is not found, it will take the general pattern.> -----Original Message----- > From: asterisk-users-admin@lists.digium.com > [mailto:asterisk-users-admin@lists.digium.com] On Behalf Of > Stephen Rosebush > Sent: Wednesday, June 16, 2004 11:32 > To: asterisk-users@lists.digium.com > Subject: [Asterisk-Users] Invalid Extensions -- More like > traditional PBX systems? > > > I was wondering if there was a way of setting up the dialplan > in a way > that if you dial an extension that is NOT in the dialplan > then it would > play a not-in-service gsm file and then play congestion > tones. I would > rather like this better than just hearing a busy signal on my > phones.. I > DID search around on the wiki and using google and could not > find anything. > > Thanks. > > -- > Stephen Rosebush, > srosebush@desynched.org > http://www.desynched.org/ > > // Hardline > // IP Phone > USA: 1-248-724-4452 x201 > FWD: 63420 x201 > Netherlands: +31-(0)20-6598858 x63420 x201 > IAXTEL: 1-700-356-6191 x201 > United Kingom: +44-(0)870-3403054 x201 > SIP: sip:srosebush@desynched.org > > _______________________________________________ > 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 > > -- > Scanned for viruses and dangerous content at > http://www.oneunified.net and is believed to be clean. > >-- Scanned for viruses and dangerous content at http://www.oneunified.net and is believed to be clean.
asteriskuser@aktzero.com
2004-Jun-16 07:59 UTC
[Asterisk-Users] Invalid Extensions -- More like traditional PBX systems?
Ray Burkholder wrote:>> I was wondering if there was a way of setting up the dialplan in a >> way that if you dial an extension that is NOT in the dialplan then >> it would play a not-in-service gsm file and then play congestion >> tones. I would rather like this better than just hearing a busy >> signal on my phones.. I DID search around on the wiki and using >> google and could not find anything. > > Set up a general pattern match with the message and congestion. > > Extension pattern matching looks for the most specific match in any > one context. So if a specific extension is not found, it will take > the general pattern.You can also use the i (invalid) extension. ----- Andrew Thompson http://aktzero.com/
Brian D'Arcy
2004-Jun-16 11:11 UTC
[Asterisk-Users] Invalid Extensions -- More like traditional PBX systems?
Steve, What I had problems using 'i' also, what worked for me was the following... For example, I have a bunch of extensions I'm matching on in a particular context. Keep in mind, the stdexten macro you see below is not defined properly, and is for example only. [extensions] exten => 3201,1,Macro(stdexten) exten => 3202,1,Macro(stdexten) exten => 3203,1,Macro(stdexten) exten => 3204,1,Macro(stdexten) exten => 3205,1,Macro(stdexten) exten => 3206,1,Macro(stdexten) exten => _XXXX,1,Answer exten => _XXXX,2,Wait(1) exten => _XXXX,3,Playback(/usr/src/test/asterisk-sounds/sounds/jedi-extension-tri ck) exten => _XXXX,4,Playback(/usr/src/test/asterisk-sounds/sounds/please-try-again) exten => _XXXX,5,Read(NUMBER,,4) exten => _XXXX,6,Goto(${NUMBER}|1) What happens is, after all of your possibly matchs have failed (since it matches top to bottom in the context), it catches the _XXXX (match all) extension, which I consider to be invalid, since it matched none of my defined entries above it.
Steven Critchfield
2004-Jun-16 11:24 UTC
[Asterisk-Users] Invalid Extensions -- More like traditional PBX systems?
On Wed, 2004-06-16 at 09:32, Stephen Rosebush wrote:> I was wondering if there was a way of setting up the dialplan in a way > that if you dial an extension that is NOT in the dialplan then it would > play a not-in-service gsm file and then play congestion tones. I would > rather like this better than just hearing a busy signal on my phones.. I > DID search around on the wiki and using google and could not find anything.This all basically depends on what technology you are using. Under zap, you can use the invalid extension at anytime since you are already inside asterisk at the time. With SIP and possible the other VoIP phones, you send the extension all at once and it then determines what to do with it. It might be nice if an invalid SIP call went to i, but I don't know if anyone would implement that. Another idea could be to create your dialplan just like you would for zap and then create a special context for your SIP calls to come into that matches all via a _. or some such pattern match. As it's first priority, you could answer and then for 2 you could goto the zap style context with (ZAP_context,${EXTEN},1), this would let your invalid extension work like normal. -- Steven Critchfield <critch@basesys.com>
W. Kevin Hunt
2004-Jun-16 12:01 UTC
[Asterisk-Users] Invalid Extensions -- More like traditional PBX systems?
>> exten =>_XXXX,3,Playback(/usr/src/test/asterisk-sounds/sounds/jedi-extension-tri ck)>> exten =>_XXXX,4,Playback(/usr/src/test/asterisk-sounds/sounds/please-try-again) I'd love to get a copy of that jedi-extension-trick sound W. Kevin Hunt CCIE #11841
Brian D'Arcy
2004-Jun-16 12:31 UTC
[Asterisk-Users] Invalid Extensions -- More like traditional PBX systems?
Cvs checkout asterisk-sounds =) Brian D'Arcy -----Original Message----- From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users-admin@lists.digium.com] On Behalf Of W. Kevin Hunt Sent: Wednesday, June 16, 2004 12:02 PM To: asterisk-users@lists.digium.com Subject: RE: [Asterisk-Users] Invalid Extensions -- More like traditional PBX systems?>> exten =>_XXXX,3,Playback(/usr/src/test/asterisk-sounds/sounds/jedi-extension-tri ck)>> exten =>_XXXX,4,Playback(/usr/src/test/asterisk-sounds/sounds/please-try-again) I'd love to get a copy of that jedi-extension-trick sound W. Kevin Hunt CCIE #11841 _______________________________________________ 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