aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/freeswitch_dev/freeswitch.inc36
1 files changed, 18 insertions, 18 deletions
diff --git a/config/freeswitch_dev/freeswitch.inc b/config/freeswitch_dev/freeswitch.inc
index 5853324d..77847d8e 100644
--- a/config/freeswitch_dev/freeswitch.inc
+++ b/config/freeswitch_dev/freeswitch.inc
@@ -1174,24 +1174,24 @@ function sync_package_freeswitch_hunt_group()
//--- begin: pin number ------------------------------------
if (strlen($rowhelper['huntgrouppin']) > 0) {
- echo "var pin = '".$rowhelper['huntgrouppin']."';\n";
- echo "if (pin.length > 0) {\n";
- echo " var dtmf = new Object();\n";
- echo " dtmf.digits = \"\";\n";
- echo " digitmaxlength = 6;\n";
- echo " session.execute(\"set\", \"playback_terminators=#\");\n";
- echo " session.streamFile( \"/usr/local/freeswitch/sounds/custom/8000/please_enter_the_pin_number.wav\", mycb, \"dtmf\");\n";
- echo " session.collectInput( mycb, dtmf, timeoutpin );\n";
- echo "\n";
- echo " if (dtmf.digits == pin || pin.length == 0) {\n";
- echo " //continue\n";
- echo " }\n";
- echo " else {\n";
- echo " console_log( \"info\", \"Pin: \" + dtmf.digits + \" is incorrect\\n\" );\n";
- echo " session.streamFile( \"/usr/local/freeswitch/sounds/custom/8000/your_pin_number_is_incorect_goodbye.wav\", mycb, \"dtmf\");\n";
- echo " session.hangup();\n";
- echo " }\n";
- echo "}";
+ $tmp .= "var pin = '".$rowhelper['huntgrouppin']."';\n";
+ $tmp .= "if (pin.length > 0) {\n";
+ $tmp .= " var dtmf = new Object();\n";
+ $tmp .= " dtmf.digits = \"\";\n";
+ $tmp .= " digitmaxlength = 6;\n";
+ $tmp .= " session.execute(\"set\", \"playback_terminators=#\");\n";
+ $tmp .= " session.streamFile( \"/usr/local/freeswitch/sounds/custom/8000/please_enter_the_pin_number.wav\", mycb, \"dtmf\");\n";
+ $tmp .= " session.collectInput( mycb, dtmf, timeoutpin );\n";
+ $tmp .= "\n";
+ $tmp .= " if (dtmf.digits == pin || pin.length == 0) {\n";
+ $tmp .= " //continue\n";
+ $tmp .= " }\n";
+ $tmp .= " else {\n";
+ $tmp .= " console_log( \"info\", \"Pin: \" + dtmf.digits + \" is incorrect\\n\" );\n";
+ $tmp .= " session.streamFile( \"/usr/local/freeswitch/sounds/custom/8000/your_pin_number_is_incorect_goodbye.wav\", mycb, \"dtmf\");\n";
+ $tmp .= " session.hangup();\n";
+ $tmp .= " }\n";
+ $tmp .= "}";
}
//--- end: pin number ------------------------------------