Only set the avmd if avmd is set to true

This commit is contained in:
Mark Crane
2014-08-08 07:00:31 +00:00
parent 0a61568e35
commit 40c1447b69
4 changed files with 8 additions and 5 deletions

View File

@@ -144,4 +144,4 @@
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
?>
?>

View File

@@ -199,4 +199,4 @@
$text['label-has-been']['pt-pt'] = "foi inicializada";
$text['label-has-been']['fr-fr'] = "a commencé";
?>
?>

View File

@@ -572,4 +572,4 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "</div>";
require_once "resources/footer.php";
?>
?>

View File

@@ -85,6 +85,7 @@ function cmd_async($cmd) {
$broadcast_destination_type = $row["broadcast_destination_type"];
$broadcast_phone_numbers = $row["broadcast_phone_numbers"];
$broadcast_destination_data = $row["broadcast_destination_data"];
$broadcast_avmd = $row["broadcast_avmd"];
//if (strlen($row["broadcast_destination_data"]) == 0) {
// $broadcast_destination_application = '';
// $broadcast_destination_data = '';
@@ -165,7 +166,9 @@ function cmd_async($cmd) {
$channel_variables .= ",domain_uuid=".$_SESSION['domain_uuid'];
$channel_variables .= ",domain=".$_SESSION['domain_name'];
$channel_variables .= ",domain_name=".$_SESSION['domain_name'];
$channel_variables .= ",execute_on_answer='avmd start'";
if ($broadcast_avmd == "true") {
$channel_variables .= ",execute_on_answer='avmd start'";
}
$origination_url = "{".$channel_variables."}".$bridge_array[0];
//get the context
@@ -376,4 +379,4 @@ unset ($key);
unset ($val);
unset ($c);
*/
?>
?>