[Asterisk-Users] i extension

Steve Kann stevek at stevek.com
Tue Oct 19 14:58:00 MST 2004


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




More information about the asterisk-users mailing list