Fix the per leg variables in the follow me dial_string.
This commit is contained in:
parent
81dd8ed7d9
commit
637a57e3a3
|
|
@ -348,10 +348,10 @@ include "root.php";
|
||||||
if ($x > 0) {
|
if ($x > 0) {
|
||||||
$dial_string .= ",";
|
$dial_string .= ",";
|
||||||
}
|
}
|
||||||
$dial_string .= "[";
|
|
||||||
if (extension_exists($row["follow_me_destination"])) {
|
if (extension_exists($row["follow_me_destination"])) {
|
||||||
//set the dial string
|
//set the dial string
|
||||||
if (strlen($_SESSION['domain']['dial_string']['text']) == 0) {
|
if (strlen($_SESSION['domain']['dial_string']['text']) == 0) {
|
||||||
|
$dial_string .= "[";
|
||||||
$dial_string .= "outbound_caller_id_number=\${caller_id_number},";
|
$dial_string .= "outbound_caller_id_number=\${caller_id_number},";
|
||||||
$dial_string .= "presence_id=".$row["follow_me_destination"]."@".$_SESSION['domain_name'].",";
|
$dial_string .= "presence_id=".$row["follow_me_destination"]."@".$_SESSION['domain_name'].",";
|
||||||
if ($row["follow_me_prompt"] == "1") {
|
if ($row["follow_me_prompt"] == "1") {
|
||||||
|
|
@ -364,7 +364,7 @@ include "root.php";
|
||||||
else {
|
else {
|
||||||
$replace_value = $row["follow_me_destination"];
|
$replace_value = $row["follow_me_destination"];
|
||||||
if ($row["follow_me_prompt"] == "1") {
|
if ($row["follow_me_prompt"] == "1") {
|
||||||
$replace_value .= "group_confirm_key=exec,group_confirm_file=lua confirm.lua,confirm=true]";
|
$replace_value .= "[group_confirm_key=exec,group_confirm_file=lua confirm.lua,confirm=true]";
|
||||||
}
|
}
|
||||||
$local_dial_string = $_SESSION['domain']['dial_string']['text'];
|
$local_dial_string = $_SESSION['domain']['dial_string']['text'];
|
||||||
$local_dial_string = str_replace("\${dialed_user}", $replace_value, $local_dial_string);
|
$local_dial_string = str_replace("\${dialed_user}", $replace_value, $local_dial_string);
|
||||||
|
|
@ -375,6 +375,7 @@ include "root.php";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
$dial_string .= "[";
|
||||||
$dial_string .= "outbound_caller_id_number=\${outbound_caller_id_number},";
|
$dial_string .= "outbound_caller_id_number=\${outbound_caller_id_number},";
|
||||||
$dial_string .= "presence_id=".$this->extension."@".$_SESSION['domain_name'].",";
|
$dial_string .= "presence_id=".$this->extension."@".$_SESSION['domain_name'].",";
|
||||||
if ($row["follow_me_prompt"] == "1") {
|
if ($row["follow_me_prompt"] == "1") {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue