This is a question I am almost too embarassed to ask but here we go ... Is it not possible to use the i extension to trap attempts of users misdialling numbers otherwise not in the dialplan/context? I have seen this in so many examples and I always thought "Oh, this will come in handy one day" but never actually had to use it. Now, as I have a customer who is complaining every day about the Asterisk server "not working" because they seem to have fingers to thick for their phones' keypads or suffer from some rare form of number dislexia, I would really like to trap all those cases where they dial some invalid number that's not matching anything in the dialplan/context and play an invalid number/extension recording back to the user. Unfortunately, it doesn't seem to work and I couldn't find anything other than the Wiki page that also says it doesn't work but fails to explain why. So, what's the story on this? thanks rgds benjk -- Sunrise Telephone Systems, 9F Shibuya Daikyo Bldg., 1-13-5 Shibuya, Tokyo, Japan. NB: Spam filters in place. Messages unrelated to the * mailing lists may get trashed.
[default] include => extensions include => bogons [extensions] exten => 44X,... exten => 45X,... [bogons] exten => _.,1,what_to_do_for_fat_fingers any context that bogons is included in will have DigitTimeout long times after finishing dialing. SIP users won't notice this, but those in an IVR or on an analog extension would. --On Wednesday, October 20, 2004 06:22 +0900 Benjamin on Asterisk Mailing Lists <benjk.on.asterisk.ml@gmail.com> wrote:> This is a question I am almost too embarassed to ask but here we go ... > > Is it not possible to use the i extension to trap attempts of users > misdialling numbers otherwise not in the dialplan/context? > > I have seen this in so many examples and I always thought "Oh, this > will come in handy one day" but never actually had to use it. Now, as > I have a customer who is complaining every day about the Asterisk > server "not working" because they seem to have fingers to thick for > their phones' keypads or suffer from some rare form of number > dislexia, I would really like to trap all those cases where they dial > some invalid number that's not matching anything in the > dialplan/context and play an invalid number/extension recording back > to the user. Unfortunately, it doesn't seem to work and I couldn't > find anything other than the Wiki page that also says it doesn't work > but fails to explain why. So, what's the story on this? > > thanks > rgds > benjk > > -- > Sunrise Telephone Systems, 9F Shibuya Daikyo Bldg., 1-13-5 Shibuya, > Tokyo, Japan. > > NB: Spam filters in place. Messages unrelated to the * mailing lists > may get trashed. > _______________________________________________ > 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 >-- GPG/PGP --> 0xE736BD7E 5144 6A2D 977A 6651 DFBE 1462 E351 88B9 E736 BD7E
Benjamin on Asterisk Mailing Lists wrote:>This is a question I am almost too embarassed to ask but here we go ... > >Is it not possible to use the i extension to trap attempts of users >misdialling numbers otherwise not in the dialplan/context? > >I have seen this in so many examples and I always thought "Oh, this >will come in handy one day" but never actually had to use it. Now, as >I have a customer who is complaining every day about the Asterisk >server "not working" because they seem to have fingers to thick for >their phones' keypads or suffer from some rare form of number >dislexia, I would really like to trap all those cases where they dial >some invalid number that's not matching anything in the >dialplan/context and play an invalid number/extension recording back >to the user. Unfortunately, it doesn't seem to work and I couldn't >find anything other than the Wiki page that also says it doesn't work >but fails to explain why. So, what's the story on this? > >Hmm, I thought this was working for me when I used it last: This explicitly repeats the invalid number back to them; you could prefix it with a message saying "the number you dialed" and postfix with "is invalid, blah blah".. exten => i,1,SayDigits(${INVALID_EXTEN}) exten => i,2,Goto(s,1) -SteveK
On Tue, 19 Oct 2004 15:57:54 -0600, Michael Loftis <mloftis@wgops.com> wrote:> include => bogons > > [bogons] > > exten => _.,1,what_to_do_for_fat_fingersThanks a lot. That does the trick. I tried the _. match before but not in a separate context and somehow I created an endless loop that was executing even when dialling valid extensions. Oh well, should have better used the night to get some sleep ;-) rgds benjk -- Sunrise Telephone Systems, 9F Shibuya Daikyo Bldg., 1-13-5 Shibuya, Tokyo, Japan. NB: Spam filters in place. Messages unrelated to the * mailing lists may get trashed.
Benjk, Good question, I develop asterisk code and did not know the "i" extension existed for some time. The wiki is very poor on it. If you put the "I" extension in a context with the dial plan then it works best. This way the problem is handled locally within the dial plan instead of fall through to the global context. [context123] exten => _222XXXXXXX,1,Dial(...) ... exten => i,1,Fix The problem for invalid extension in dial plan. ... Exten => t,1,Fix The problem for timeout in dial plan ... [context124] ... You could create a [invalid-Extension-Fix-Context] and do an include in the other contexts. Race Vanderdecken AsTerisk 8-e Vanderdecken DOT coM -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Benjamin on Asterisk Mailing Lists Sent: 19 October 2004 17:23 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [Asterisk-Users] i extension This is a question I am almost too embarassed to ask but here we go ... Is it not possible to use the i extension to trap attempts of users misdialling numbers otherwise not in the dialplan/context? I have seen this in so many examples and I always thought "Oh, this will come in handy one day" but never actually had to use it. Now, as I have a customer who is complaining every day about the Asterisk server "not working" because they seem to have fingers to thick for their phones' keypads or suffer from some rare form of number dislexia, I would really like to trap all those cases where they dial some invalid number that's not matching anything in the dialplan/context and play an invalid number/extension recording back to the user. Unfortunately, it doesn't seem to work and I couldn't find anything other than the Wiki page that also says it doesn't work but fails to explain why. So, what's the story on this? thanks rgds benjk -- Sunrise Telephone Systems, 9F Shibuya Daikyo Bldg., 1-13-5 Shibuya, Tokyo, Japan. NB: Spam filters in place. Messages unrelated to the * mailing lists may get trashed. _______________________________________________ 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