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.

This commit is contained in:
Mark Crane 2012-06-06 19:21:35 +00:00
parent fd9a11dda1
commit e56a0c0c76
1 changed files with 4 additions and 4 deletions

View File

@ -2630,12 +2630,12 @@ function save_hunt_group_xml() {
$tmp .= "session:execute(\"set\", \"transfer_ringback=\${hold_music}\"); --set to music\n"; $tmp .= "session:execute(\"set\", \"transfer_ringback=\${hold_music}\"); --set to music\n";
} }
else { else {
$tmp .= "session:execute(\"set\", \"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"; $tmp .= "session:execute(\"set\", \"transfer_ringback=\${".$row['hunt_group_ringback']."}\"); --set to ringtone\n";
} }
if ($row['hunt_group_ringback'] == "ring"){ if ($row['hunt_group_ringback'] == "ring"){
$tmp .= "session:execute(\"set\", \"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"; $tmp .= "session:execute(\"set\", \"transfer_ringback=\${us-ring}\"); --set to ringtone\n";
} }
} }
else { else {