When using Goto(Ivr,s,1) it doest recognize DTMF, but first time it does

I have an interesting issue. I have a custom destination set up from the IVR, (script below), part of the script is to send it back to the original IVR. That works, but the second time around it doesnt recognize DTMF. The first time it does, the second time, it stops playing when I press the ivr option, but then it just repeats itself. Any suggestions?

[test]
exten => s,1,ControlPlayback(/tmp/test,5000,6,4,#,*,1)
exten => s,2,Wait(2)
exten => s,3,Goto(ivr-5,s,1)

The information “in situ” (from /var/log/asterisk/full) will give you a lot more information about what is going on. It does seem to be odd, though. I have a feeling the actual route through the contexts is different than you are expecting.

I would use the first line as a noop
Then instead of using Goto, I’d use Return() and return it ln the custom destination.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.