[Freeswitch-dev] lua session:playAndGetDigits question

rentmycoder rentmycoder rentmycoder at gmail.com
Mon Feb 8 00:33:32 PST 2010


I would like to play a file and stop playing on (0,* or #) but don't
stop or restart playing on any other digit. I need to know which digit
was pressed...
How to achive this in lua?

local digits = session:playAndGetDigits(0, 1, 5, 3000, "0*#",
wavbasedir .. "f.wav", "", "\*|\#|0");

Is there any DETAILED doc how playAndGetDigits works or do I have to
dig into source?

Thanks in advance.

Freeswitch ROCKS!!!

More information about the FreeSWITCH-dev mailing list