diff options
author | Mark Crane <mcrane@pfsense.org> | 2008-12-09 07:25:59 +0000 |
---|---|---|
committer | Mark Crane <mcrane@pfsense.org> | 2008-12-09 07:25:59 +0000 |
commit | e8c2c5f981d83f3e68a2cf3420f2fed5cef69b69 (patch) | |
tree | 70906cf0cd2c5bbda3f1b2e4b69f0f8e5597b9ca /packages/freeswitch/freeswitch.inc | |
parent | 45281c6af6787ecc2bcbe78c64ac98a71da392b1 (diff) | |
download | pfsense-packages-e8c2c5f981d83f3e68a2cf3420f2fed5cef69b69.tar.gz pfsense-packages-e8c2c5f981d83f3e68a2cf3420f2fed5cef69b69.tar.bz2 pfsense-packages-e8c2c5f981d83f3e68a2cf3420f2fed5cef69b69.zip |
pfSense FreeSWITCH recordings.js audio prompt correction
Diffstat (limited to 'packages/freeswitch/freeswitch.inc')
-rw-r--r-- | packages/freeswitch/freeswitch.inc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/packages/freeswitch/freeswitch.inc b/packages/freeswitch/freeswitch.inc index 54c01297..d9735e26 100644 --- a/packages/freeswitch/freeswitch.inc +++ b/packages/freeswitch/freeswitch.inc @@ -217,11 +217,12 @@ function recording_js() { //$tmp .= " session.execute(\"set\", \"tts_engine=flite\");\n"; //$tmp .= " session.execute(\"set\", \"tts_voice=kal\");\n"; //$tmp .= " session.execute(\"speak\", \"Please enter your pin number now.\");\n"; - //$tmp .= " session.execute(\"set\", \"playback_terminators=#\");\n"; + $tmp .= " digitmaxlength = 6;\n"; + $tmp .= " session.execute(\"set\", \"playback_terminators=#\");\n"; + $tmp .= " session.streamFile( \"/usr/local/freeswitch/recordings/please_enter_your_pin_number.wav\", mycb, \"dtmf\");\n"; $tmp .= "\n"; $tmp .= " if (pin.length > 0) {\n"; - $tmp .= " digitmaxlength = 6;\n"; - $tmp .= " session.streamFile( \"custom/pin.wav\", mycb, \"dtmf\");\n"; + //$tmp .= " session.streamFile( \"custom/pin.wav\", mycb, \"dtmf\");\n"; $tmp .= " session.collectInput( mycb, dtmf, timeoutpin );\n"; $tmp .= " }\n"; $tmp .= "\n"; @@ -229,7 +230,8 @@ function recording_js() { //$tmp .= " //console_log( \"info\", \"Recordings pin is correct\\n\" );\n"; //$tmp .= " session.execute(\"set\", \"tts_engine=flite\");\n"; //$tmp .= " session.execute(\"set\", \"tts_voice=kal\");\n"; - //$tmp .= " session.execute(\"speak\", \"Begin your recording now.\");\n"; + //$tmp .= " session.execute(\"speak\", \"Begin recording.\");\n"; + $tmp .= " session.streamFile( \"/usr/local/freeswitch/recordings/begin_recording.wav\", mycb, \"dtmf\");\n"; $tmp .= " session.execute(\"set\", \"playback_terminators=#\");\n"; $tmp .= " session.execute(\"record\", \"/usr/local/freeswitch/recordings/temp\"+Year+Month+Day+Hours+Mins+Seconds+\".wav 180 200\");\n"; $tmp .= " }\n"; @@ -238,6 +240,7 @@ function recording_js() { //$tmp .= " session.execute(\"set\", \"tts_engine=flite\");\n"; //$tmp .= " session.execute(\"set\", \"tts_voice=kal\");\n"; //$tmp .= " session.execute(\"speak\", \"Your pin number is incorect, goodbye.\");\n"; + $tmp .= " session.streamFile( \"/usr/local/freeswitch/recordings/your_pin_number_is_incorect_goodbye.wav\", mycb, \"dtmf\");\n"; $tmp .= " }\n"; $tmp .= " session.hangup();\n"; $tmp .= "\n"; |