[asterisk-users] asterisk novice needs help.

Jared Smith jsmith at digium.com
Fri Jul 20 09:30:17 CDT 2007


On Fri, 2007-07-20 at 02:08 -0400, BSumrall wrote:
> My dial plan of issues…..

> exten => s,1,Answer(60)
> exten => s,2,Background(otherwise-press)
> exten => s,1,Playback(digits/1)
> exten => s,2,Goto(default,s,1)
> exten => s,1,Playback(digits/2)
> exten => s,2,Goto(default,s,1)

I'm not sure why you have three different sets of priorities one and two
here... Also, you have a *very* long argument to the Answer()
application.  Usually a second or two is plenty.  Try something like
this:

exten => s,1,Answer(1) 		; answer the call, then wait 1 second
				; before going on to the next priority
exten => s,2,Background(vm-enter-num-to-call) ; play prompt in 
				; background, waiting for caller to
				; enter DTMF digits
exten => s,3,WaitExten()	; continue to wait for digits after the
				; prompt has finished

exten => 1,1,SayDigits(1)	; say "one"
exten => 1,2,Goto(s,1)		; go back to the menu

exten => 2,1,SayDigits(2)	; say "two"
exten => 2,2,Goto(s,1)		; go back to the menu

Hopefully that will get you started in the right direction.

-- 
Jared Smith
Community Relations Manager
Digium, Inc.




More information about the asterisk-users mailing list