Hello All,
I want to read user input during playing sound file.
How i can do that ???
Hello All,
I want to read user input during playing sound file.
How i can do that ???
Background() will play a sound file until the first DTMF digit. Actually trying to capture digits whilst sound is still playing is a bad idea, unless all the echo cancellation is inhumanly perfect.
Read application (wiki.asterisk.org/wiki/display/ … ation_Read) can also serve your purpose.
–Satish Barot
Ahmedabad, India
I used Background() but i don’t Know how to read user input ???
Thanx a lot .
[quote=“satish4asterisk”]Read application (wiki.asterisk.org/wiki/display/ … ation_Read) can also serve your purpose.
–Satish Barot
Ahmedabad, India[/quote]
Read() function not allow me to read user input during sound file playing.
Thanx a lot.
You’ll probably have to get at least the first digit from ${EXTEN}. You may need to use a subroutine to isolate you from the main number decoding.
It does. Check variable,filename,maxdigits and timeout arguments for Read.
To clear any confusion, you should explain your requirements with some more details.
–Satish Barot
Ahmedabad, India
Now ,i used Background() and it work fine , i did two extensions as bellow :
exten => 1,1,Playback(${Sound_Path})
exten => 2,1,Playback(${Sound_Path2})
But when i pressed (1) or (2) , i need more than one press to go to the exten No. 1 or No. 2???
So i want to solve that’s problem or i want another methods to do that.