IVR call flow issue

Hi Guys,

If i press an option during the ivr prompts, nothing happens, i have to wait till the end of all the options

Here’s the dial plan, please correct or suggest to fix this asap

[ivr]
exten => s,1,NoOp(ivr menu)
same => n,Answer
same => n,Playback(ivr audio file)
same => n,WaitExten(10)

Many Thanks,
Sandeep

You should be using Background and not Playback for this. https://wiki.asterisk.org/wiki/display/AST/Background+and+WaitExten+Applications

However I would prefer Read(https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Application_Read) over Background and WaitExten to develop IVR in Asterisk

–Satish Barot

1 Like

Hi Satish,

Thanks for the quick response

I have updated code with Background but now ivr audio file is not playing

[ivr]
exten => s,1,NoOp(ivr menu)
same => n,Answer
same => n,Background(ivr audio file)
same => n,WaitExten(10)

I can only hear phone ring and it disconnects automatically, please help.

Thanks,
Sandeep

Hi

It’s working fine now

I have to restart the asterisk service.

Thanks,
Sandeep