Hello,
I want to generate a call by calling a URL. Once the call gets answered, there has to be a IVR message to be played which ask for DTMF input. I also want the dialstatus of all such calls to be stored some where. I fired call using .call file and I have used Dial command with M option i.e called macro when the call gets answered. Now, I want to play multiple files and based on the DTMF input, I have to route the call flow. But, when we use WaitExten inside the macro, on pressing any DTMF then the call gets hangup.
[quote][test-call]
exten => _X.,1,Dial(dahdi/g0/${PHONE_NO},30,tTM(CallTest^${LOCAL_CHANNEL}))
[macro-CallTest]
exten => s,1,Wait(1)
exten => s,n,Set(LOCAL_CHANNEL=${ARG1})
exten => s,n,SoftHangup(${LOCAL_CHANNEL})
exten => s,n,Background(vm-enter-num-to-call&vm-leavemsg&vm-pls-try-again&vm-sorry)
exten => s,n,Background(digits/1&digits/2)
exten => s,n,WaitExten(5)
;exten => _X.,n,Read(RESPONSE,beep,1,2,6)
exten => 1,1,NoOp(=========== ${EXTEN} ===============)
exten => 2,1,NoOp(=========== ${EXTEN} ===============)
exten => t,1,NoOp(timeout)
exten => i,1,NoOp(timeout)
[/quote]
Can we use Read command with multiple voice files ? If yes then will you please tell us how ?