<div dir="auto">Playandgetdigits()<br><br><div data-smartmail="gmail_signature">sent from mobile<br>cell: +39 347 266 56 18<br>Giovanni Maruzzelli<br>OpenTelecom.IT</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sep 17, 2017 11:28, "Deepika Yadav" <<a href="mailto:deepikay@iiitd.ac.in">deepikay@iiitd.ac.in</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I want to give users an option to record their voice by presssing some digit in the IVR menu through my python script. I use the code as follows:</div><div><br></div><div>session.recordFile(filename, 120, 500, 3)</div><div><br clear="all"><div>However, this code will block for 2 minutes and then proceed. In case a user has little to say and after 1 minute wants to stop the recording, how I can do that. Is there any function similar to "session.playAndGetDigits" to also hear for DTMFs at the same time?</div><div><br></div><div><br></div>-- <br><div class="m_5183378930966696111gmail_signature"><div dir="ltr">Regards,<div>Deepika</div><div><a href="https://deepikay.wixsite.com/deepika" target="_blank">https://deepikay.wixsite.com/<wbr>deepika</a><br></div></div></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></div>