<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap:break-word"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">playbackMessage() function is actually doing session:streamFile(audio_file). Input callback is functioning fine, but I want to delay detection a few seconds somehow.</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">On the other hand, is there a way to stop a running session:streamFile() ?</div> <br> <div id="bloop_sign_1498590993083267072" class="bloop_sign"><div style="font-family:helvetica,arial;font-size:13px">-- <br><br>Sent with Airmail</div>
</div> <div class="airmail_ext_on" style="color:black"><br>From: <span style="color:black">Brian West</span> <a href="mailto:brian@freeswitch.org"><brian@freeswitch.org></a><br>Reply: <span style="color:black">FreeSWITCH Users Help</span> <a href="mailto:freeswitch-users@lists.freeswitch.org"><freeswitch-users@lists.freeswitch.org></a><br>Date: <span style="color:black">June 28, 2017 at 12:15:20 AM</span><br>To: <span style="color:black">FreeSWITCH Users Help</span> <a href="mailto:freeswitch-users@lists.freeswitch.org"><freeswitch-users@lists.freeswitch.org></a><br>Subject: <span style="color:black"> Re: [Freeswitch-users] How to delay setInputCallback() while playing audio? <br></span></div><br> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>
<title></title>
<div dir="ltr">Show us how you're doing the playback, If
you're doing session:execute('playback', 'blah.wav'); The input
callback won't function you have to use session:streamFile instead.
<div><br></div>
<div>/b</div>
<div><br></div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Jun 27, 2017 at 1:10 PM, Muhammad
Naseer Bhatti <span dir="ltr"><<a href="mailto:nbhatti@gmail.com" target="_blank">nbhatti@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
<div id="m_-3622451393751199084bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
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. </div>
<div id="m_-3622451393751199084bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
<br></div>
<div id="m_-3622451393751199084bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
<div id="m_-3622451393751199084bloop_customfont" style="margin:0px">
session:setInputCallback("<wbr>eventHandler")</div>
<div id="m_-3622451393751199084bloop_customfont" style="margin:0px"> playbackMessage (playback_delay)</div>
<div id="m_-3622451393751199084bloop_customfont" style="margin:0px"><br></div>
<div id="m_-3622451393751199084bloop_customfont" style="margin:0px">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() ?</div>
<div id="m_-3622451393751199084bloop_customfont" style="margin:0px"><span class="HOEnZb"><font color="#888888"><br></font></span></div>
<div id="m_-3622451393751199084bloop_customfont" style="margin:0px"><span class="HOEnZb"><font color="#888888"><br></font></span></div>
</div>
<div id="m_-3622451393751199084bloop_sign_1498586586627620864" class="m_-3622451393751199084bloop_sign">
<div style="font-family:helvetica,arial;font-size:13px">
<span class="HOEnZb"><font color="#888888">-- <br>
<br>
Sent with Airmail</font></span></div>
</div>
</div>
<br>
______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote>
</div>
<br>
<br clear="all">
<div><br></div>
--<br>
<div class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<p><font face="courier new, monospace"><b><i><font size="4">Brian
West</font></i></b><br>
<span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p>
<p><b style="font-family:monospace,monospace;font-size:small"><i>Twitter:
@FreeSWITCH , @briankwest</i></b></p>
<p><font size="2" face="monospace, monospace"><a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a> <br>
<a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a></font></p>
<p><font size="2" face="monospace, monospace"><a href="https://freeswitch.com/appointment" target="_blank">Book a phone
call (CST)</a><br>
<br>
Allison prompts for FreeSWITCH:</font></p>
<table cellspacing="0" cellpadding="0" style="font-size:12.8px">
<tbody>
<tr>
<td valign="baseline">
<p><span><a href="https://www.gofundme.com/allison-prompts-for-freeswitch" target="_blank"><b>https://www.gofundme.com/allison-prompts-for-freeswitch</b></a></span></p>
</td>
</tr>
</tbody>
</table>
<p><span style="font-family:monospace,monospace;font-size:12.8px">Got Bugs? Report
them</span> <a href="https://freeswitch.org/jira" style="font-family:monospace,monospace;font-size:12.8px" target="_blank">here</a><span style="font-family:monospace,monospace;font-size:12.8px">! |
Reddit: </span><a href="https://www.reddit.com/r/freeswitch" style="font-family:monospace,monospace;font-size:12.8px" target="_blank">/r/freeswitch</a><br></p>
<p><font size="2" face="monospace, monospace"><b>T:</b>+19184209001
| <b>F:</b>+19184209002 | <b>M:</b>+1918424WEST (9378)<br>
<b>Skype:</b>briankwest<br></font></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><br><br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br><a href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a><br><a href="http://www.cluecon.com">http://www.cluecon.com</a><br><br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div></div></span></blockquote></body></html>