[Freeswitch-users] How to delay setInputCallback() while playing audio?

Muhammad Naseer Bhatti nbhatti at gmail.com
Tue Jun 27 18:10:22 UTC 2017


I am running an IVR which collects DTMF input while the file is being
played, written in Lua. I set InputCallback and then listen for DTMF
events. If event found, take actions etc.

    session:setInputCallback("eventHandler")
    playbackMessage (playback_delay)

Facing a strange issues with Verizon where they send a quick RTP Event
write after starting the audio, which triggers the DTMF event and bad
things happen in my script. This only happens within first 1 to 2 seconds
of RTP. How can I have my InputCallback listen for events only after a few
seconds while still playing the audio? or do I have to switch to
playAndGetDigits() ?


-- 

Sent with Airmail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170627/62de4fc2/attachment.html>


More information about the FreeSWITCH-users mailing list