Playback sound file & Read dtmf frm caller in noanswer state

Hello,
I want to Playback a sound file and also want to read DTMF from a caller in NOANSWER state. but still unsuccessful.
As of Asterisk 1.4:
Read(variable[,filename][,maxdigits][,option][,attempts][,timeout])

  • option: may be ‘skip’ to return immediately if the line is not up, or ‘noanswer’ to read digits even if the line is not up.

So I tried
exten => _X.,1,Progress
exten => _X.,2,Read(get,hello,4,noanswer,1,8)

But fail when I use “noanswer” in option.Please help me to solve this problem.

Thanks in advance

[quote=“Munir”]Hello,
I want to Playback a sound file and also want to read DTMF from a caller in NOANSWER state. but still unsuccessful.
As of Asterisk 1.4:
Read(variable[,filename][,maxdigits][,option][,attempts][,timeout])

  • option: may be ‘skip’ to return immediately if the line is not up, or ‘noanswer’ to read digits even if the line is not up.

So I tried
exten => _X.,1,Progress
exten => _X.,2,Read(get,hello,4,noanswer,1,8)

But fail when I use “noanswer” in option.Please help me to solve this problem.

Thanks in advance[/quote]

As i know you need media for passing DTMF so you must answer call then play sound file and capture DTMF.

Hi,

Thanks for reply. I already successfull to play sound file and passing DTMF before answer and only problem is now is veriable “get” is emty.So i cant play with the captured DTMF. if anybody worked and successfull with this please let me know.

Thanks

exten => _X.,1,Progress
exten => _X.,2,Read(get,hello,4,noanswer,1,8)

mail-archive.com/asterisk-de … 05881.html