From 122c1cb7e5efb2e4c0ed1f12617c0cf39ab5dc06 Mon Sep 17 00:00:00 2001 From: mcrane Date: Thu, 16 Jul 2009 07:22:20 -0600 Subject: FreeSWITCH dev package change echo to $tmp for the pin number. --- config/freeswitch_dev/freeswitch.inc | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'config/freeswitch_dev/freeswitch.inc') 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 ------------------------------------ -- cgit v1.2.3