for example if user enters 123 from keypad and we capture these DTMF signals with AGI and then perform certain actions e.g: playing sound files making user feel that s/he is playing a piano.
if some one can help me find way to capture DTMF signals in AGI weather a user pressed nothing or presses combination of keys.
$stream_file: says following
press 1 to create a Peer Asterisk account
press 2 to create a Friend Asterisk account
press 3 to create an User Asterisk account
press # to know abt Peer, Friend, User
press * to Repeat this menu again
Now the problem comes when user presses pound ‘#’ … $opts gets NULL value and that becomes similar for the timeout because the $opts value is initially NULL and that is set to repeat the menu on timeout. so the two different actions could not be performed with one input.
Is it possible to get timeout with following so the issue can be solved