From e56a0c0c76cc8554069846fd9832f9caa9a277e4 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Wed, 6 Jun 2012 19:21:35 +0000 Subject: [PATCH] Apply this bug fix to the Dev branch. Hunt groups caused FreeSWITCH to crash because of $$ used in the lua script. Exchange the pre-processor variable for standard variable with with one $ and this fixes the problem. --- includes/lib_switch.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/lib_switch.php b/includes/lib_switch.php index 69b2894e25..9dd589fcfa 100644 --- a/includes/lib_switch.php +++ b/includes/lib_switch.php @@ -2630,12 +2630,12 @@ function save_hunt_group_xml() { $tmp .= "session:execute(\"set\", \"transfer_ringback=\${hold_music}\"); --set to music\n"; } else { - $tmp .= "session:execute(\"set\", \"ringback=\$\${".$row['hunt_group_ringback']."}\"); --set to ringtone\n"; - $tmp .= "session:execute(\"set\", \"transfer_ringback=\$\${".$row['hunt_group_ringback']."}\"); --set to ringtone\n"; + $tmp .= "session:execute(\"set\", \"ringback=\${".$row['hunt_group_ringback']."}\"); --set to ringtone\n"; + $tmp .= "session:execute(\"set\", \"transfer_ringback=\${".$row['hunt_group_ringback']."}\"); --set to ringtone\n"; } if ($row['hunt_group_ringback'] == "ring"){ - $tmp .= "session:execute(\"set\", \"ringback=\$\${us-ring}\"); --set to ringtone\n"; - $tmp .= "session:execute(\"set\", \"transfer_ringback=\$\${us-ring}\"); --set to ringtone\n"; + $tmp .= "session:execute(\"set\", \"ringback=\${us-ring}\"); --set to ringtone\n"; + $tmp .= "session:execute(\"set\", \"transfer_ringback=\${us-ring}\"); --set to ringtone\n"; } } else {