[asterisk-users] How to recieve number returned by $AGI->wait_for_digit($timeout)

Zhang Shukun bitzsk at gmail.com
Fri Jan 8 03:14:38 CST 2010


hi,

i use $AGI->wait_for_digit($timeout)  to wait for the user press key 1
,and then to do something.

but how can i get the return number ?

is that use $key = $AGI->wait_for_digit($timeout)

and $key will be "200 result=49" if i pressed number 1?

Thanks!

-- 
Best regards,
Sucan



More information about the asterisk-users mailing list