Merge pull request #1017 from moteus/no_default_domain

Change. Does not use `default` dialplan/directory.
This commit is contained in:
FusionPBX
2015-08-10 11:27:19 -06:00
5 changed files with 10 additions and 45 deletions
+2 -7
View File
@@ -46,7 +46,7 @@ function cmd_async($cmd) {
//windows
if (stristr(PHP_OS, 'WIN')) {
$descriptorspec = array(
0 => array("pipe", "r"), // stdin
0 => array("pipe", "r"), // stdin
1 => array("pipe", "w"), // stdout
2 => array("pipe", "w") // stderr
);
@@ -176,12 +176,7 @@ function cmd_async($cmd) {
$origination_url = "{".$channel_variables."}".$bridge_array[0];
//get the context
if (count($_SESSION["domains"]) > 1) {
$context = $_SESSION['domain_name'];
}
else {
$context = "default";
}
$context = $_SESSION['domain_name'];
//set the command
$cmd = "bgapi sched_api +".$sched_seconds." ".$call_broadcast_uuid." bgapi originate ".$origination_url." ".$broadcast_destination_data." XML $context";