[Freeswitch-users] how to have fs interrupt a file or tts if digit is pressed
Hector.Geraldino at ip-soft.net
Mon Aug 8 21:30:15 MSD 2011
You can send a "break" command in the DTMF callback event. This will stop the audio playback or TTS.
From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of covici at ccs.covici.com
Sent: Monday, August 08, 2011 1:09 PM
To: freeswitch-users at lists.freeswitch.org
Subject: [Freeswitch-users] how to have fs interrupt a file or tts if digit is pressed
Hi. I am using Perl, if that makes any difference and I would like to
arrange things in such a way that during a prompt, if the person presses
a key, then the prompt will stop speaking and I can see what the key is
and do something. Here is an excerpt of the script I am using.
$session->setInputCallback('got_press',""); #listen for key presses in
if ($press_so_far != "")
$session->say($press_so_far,"EN", "NAME_SPELLED", "ITERATED");
Instead of streamFile, I tried speaking text through tts_command line,
and a phrase macro which did the same. I was sure that at least
streamFile would break, but it did not.
Thanks in advance for any ideas.
Your life is like a penny. You're going to lose it. The question is:
you spend it?
covici at ccs.covici.com
Join us at ClueCon 2011, Aug 9-11, Chicago
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users