mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
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:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user