Update call_broadcast_send.php
This commit is contained in:
parent
15e9fea4c5
commit
66504dbb54
|
|
@ -167,15 +167,15 @@
|
|||
|
||||
if (is_numeric($phone_1)) {
|
||||
//get the dialplan variables and bridge statement
|
||||
$dialplan = new dialplan;
|
||||
$dialplan->domain_uuid = $_SESSION['domain_uuid'];
|
||||
$dialplan->outbound_routes($phone_1);
|
||||
$dialplan_variables = $dialplan->variables;
|
||||
$bridge_array[0] = $dialplan->bridges;
|
||||
//$dialplan = new dialplan;
|
||||
//$dialplan->domain_uuid = $_SESSION['domain_uuid'];
|
||||
//$dialplan->outbound_routes($phone_1);
|
||||
//$dialplan_variables = $dialplan->variables;
|
||||
//$bridge_array[0] = $dialplan->bridges;
|
||||
|
||||
//prepare the string
|
||||
$channel_variables = $dialplan_variables."ignore_early_media=true";
|
||||
$channel_variables .= ",origination_number=$phone_1";
|
||||
$channel_variables = "ignore_early_media=true";
|
||||
$channel_variables .= ",origination_number=".$phone_1;
|
||||
$channel_variables .= ",origination_caller_id_name='$broadcast_caller_id_name'";
|
||||
$channel_variables .= ",origination_caller_id_number=$broadcast_caller_id_number";
|
||||
$channel_variables .= ",domain_uuid=".$_SESSION['domain_uuid'];
|
||||
|
|
@ -185,7 +185,8 @@
|
|||
if ($broadcast_avmd == "true") {
|
||||
$channel_variables .= ",execute_on_answer='avmd start'";
|
||||
}
|
||||
$origination_url = "{".$channel_variables."}".$bridge_array[0];
|
||||
//$origination_url = "{".$channel_variables."}".$bridge_array[0];
|
||||
$origination_url = "{".$channel_variables."}loopback/".$phone_1.'/'.$_SESSION['domain_name'];
|
||||
|
||||
//get the context
|
||||
$context = $_SESSION['domain_name'];
|
||||
|
|
@ -247,4 +248,4 @@
|
|||
require_once "resources/footer.php";
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue