Browse Source

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.

Mark Crane 13 years ago
parent
commit
acfb737b18
1 changed files with 4 additions and 4 deletions
  1. 4 4
      includes/lib_switch.php

+ 4 - 4
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 {