IVR Direct Dial to Extension Issue

One of my clients is using Asterisk verison 1.2.5 and I have set up an IVR for them… It is working almost flawlessly except for one that, which I cannot figure out… You can press option 1, 2 3, or 4 (those all work) but I want the user to also be able to dial directly to an extension. I have done quite a bit of research to no avail, as everything I have tried has not worked so far.

If a user is to type in lets say extension 701, as soon as you hit the “7” it gives you an error stating that is an incorrect option and throws you back to the begining. If someone could shed some light on the situation it would be great, I could throw a few bucks in your direction through paypal.

[ivr-1-en]
exten => s,1,Answer
exten => s,n,DigitTimeout,5
exten => s,n,ResponseTimeout,10
exten => s,n,Wait(2)
exten => s,n(begin),Background(custom/incoming_message_en_intro)
exten => s,n,WaitExten(50)
exten => 1,1,dbDel(${BLKVM_OVERRIDE})
exten => 1,n,Set(__NODEST=)
exten => 1,n,Goto(ivr-1-es,s,1)
exten => 2,1,dbDel(${BLKVM_OVERRIDE})
exten => 2,n,Set(__NODEST=)
exten => 2,n,Queue(queue1|rt|||60)
exten => 3,1,dbDel(${BLKVM_OVERRIDE})
exten => 3,n,Set(__NODEST=)
exten => 3,n,Queue(queue2|rt|||60)
exten => 4,1,dbDel(${BLKVM_OVERRIDE})
exten => 4,n,Set(__NODEST=)
exten => 4,n,Dial(SIP/230,18,t)
exten => t,1,dbDel(${BLKVM_OVERRIDE})
exten => t,n,Set(__NODEST=)
exten => t,n,Playback(custom/general_voicemail_en)
exten => t,n,VoiceMail(u4200)
exten => i,1,Playback(invalid)
exten => i,n,Goto(loop,1)
exten => loop,1,Set(LOOPCOUNT=$[${LOOPCOUNT} + 1])
exten => loop,n,GotoIf($[${LOOPCOUNT} > 2]?hang,1)
exten => loop,n,Goto(ivr-1-en,s,begin)

; end of [ivr-1-en]

I am hoping a guru/expert may be able to give me an insight as to what I am missing. Thank you much!

hi
i think in context “ivr-1-en” you are not inculde ur exteniosn contex.
let say if your extension context is deafult where you mention all ur extension from 700 to 715. the u sud include that context in this ivr context then only anybody can dail any extension like 700 dairectly
so include=> deafult or ur extension contex.

try this
Amit

Amit,
Thank you so much! That was exactly the answer I needed; worked perfectly!

If all the extensions start with 7 (700 -799) you could add the option 7 to the menu and jump to a line with a read command for the other 2 numbers. This way the first hit is also the first figure of the phonenumber

Read(variable[|filename][|maxdigits][|option][|attempts][|timeout])

exten => 7,1,Goto(enter_extension,s,1,)

[enter_extension]
exten => s,1,Read(INTERNAL_NUMBER|play_dialtone|2||1|10) ;just example
exten => s,n,Dial(SIP/7${INTERNAL_NUMBER},20,tT)