[Asterisk-Users] If you know your party's extension # please dial it now ...

Walker Haddock whaddock at datacrest.com
Sun Mar 21 07:09:47 MST 2004


On Sun, Mar 21, 2004 at 08:37:25AM -0500, Mark Phillips wrote:
> 
> I'm starting to think that if my extn's are 3xxx and 4xxx I can't have any
> menu choices beginning with 3 or 4. Would this be correct? If so how does
> the received DTMF break out of the IVR and get matched to the relevant
> dialplan entry?
It works fine for me using V1.0-Stable

> 
> 
> [mainmenu]
>  exten => s,1,Answer
>  exten => s,2,SetMusicOnHold(default)
>  exten => s,3,DigitTimeout,3
This will wait for tones before timing out.  You decide how long
>  exten => s,4,ResponseTimeout,5
>  ;SAI menu - 1 for tech support, 2 for voicemail, 3 for echo test
>  exten => s,5,Background(welcomemsg)
>  exten => s,6,Background(choosemsg)
> 
>  ; Sales
> exten => 1,1,Dial,SIP/3400|20
> exten => 1,2,Voicemail(3400)
> exten => 1,3,Goto(mainmenu,s,60
> 
>  ; Tech support
> exten => 2,1,Dial,SIP/3401|20
> exten => 2,2,Voicemail(3401)
> exten => 2,2,Goto(mainmenu,s,1)
> 
>  ; Echo Test
>  exten => 3,1,Playback(demo-echotest)
>  exten => 3,2,Echo
>  exten => 3,3,Playback(demo-echodone)
>  exten => 3,4,Goto(mainmenu,s,6)
> 
>  ; Parrot Test
>  exten => 4,1,Goto(205,1)
> 
>  ; Access VoiceMail
>  exten => 5,1,VoicemailMain
>  exten => 5,2,Goto(mainmenu,s,6)
> 
>  ; Play the weasels
>  exten => 6,1,Wait,3
>  exten => 6,2,Playback(tt-somethingwrong)
>  exten => 6,3,Playback(tt-weasels)
>  exten => 6,4,Wait,2
>  exten => 6,5,Goto(mainmenu,s,6)
> 
> ; # to hangup
>  exten => #,1,Playback(vm-goodbye)
>  exten => #,2,Hangup
> 
>  exten => t,1,Goto(#,1)         ; If they take too long, give up
>  exten => i,1,Playback(invalid) ; "That's not valid, try again"
> 
> 
> Whilst writing this I've had a thought. What would happen if I had an
> entry like this?
> 
> ; transfer to regular extension #
> exten => _3XXX,1,Dial(SIP/{EXTN}|20|T)
> exten => _4XXX,1,Dial(SIP/{EXTN}|20|T)
If you try it, it should work!

I'm not using a wildcard in my extensions, I include the context that defines the extensions for the internal phones.  ie one of my extensions is 3010.  So, the IVR has an extension 3 to dial a specified group or extension 3010 for a specific extension.

I'm using contexts and I build my incoming context by including various contexts that are required for the IVR.

Walker

-- 
********   DataCrest, Inc. -- Technically Superior   ******************
Walker Haddock                       http://www.datacrest.com
DataCrest, Inc.                    e-mail:  wh at datacrest.com
1634A Montgomery Hwy.    phone:  1-888-941-3282, 1-205-335-8589
Birmingham, AL 35216                  fax:  1-205-823-7838
***********************************************************************



More information about the asterisk-users mailing list