aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authormcrane <mctch@yahoo.com>2009-07-16 07:22:20 -0600
committermcrane <mctch@yahoo.com>2009-07-16 07:22:20 -0600
commit122c1cb7e5efb2e4c0ed1f12617c0cf39ab5dc06 (patch)
tree8836664718e3390f6016c6550e4f8a2da7b4c194 /config
parent563f4ba4a0420b00f78a47e30f0098947d05af8c (diff)
downloadpfsense-packages-122c1cb7e5efb2e4c0ed1f12617c0cf39ab5dc06.tar.gz
pfsense-packages-122c1cb7e5efb2e4c0ed1f12617c0cf39ab5dc06.tar.bz2
pfsense-packages-122c1cb7e5efb2e4c0ed1f12617c0cf39ab5dc06.zip
FreeSWITCH dev package change echo to $tmp for the pin number.
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 ------------------------------------