Only add the dialplan for dialplan -> destinations of the action is set
This commit is contained in:
parent
cd46b1b1db
commit
3e6ebe7d97
|
|
@ -194,13 +194,15 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
}
|
}
|
||||||
|
|
||||||
//save the dialplan
|
//save the dialplan
|
||||||
$orm = new orm;
|
if (count($dialplan["dialplan_details"]) > 0) {
|
||||||
$orm->name('dialplans');
|
$orm = new orm;
|
||||||
if (isset($dialplan["dialplan_uuid"])) {
|
$orm->name('dialplans');
|
||||||
$orm->uuid($dialplan["dialplan_uuid"]);
|
if (isset($dialplan["dialplan_uuid"])) {
|
||||||
|
$orm->uuid($dialplan["dialplan_uuid"]);
|
||||||
|
}
|
||||||
|
$orm->save($dialplan);
|
||||||
|
$dialplan_response = $orm->message;
|
||||||
}
|
}
|
||||||
$orm->save($dialplan);
|
|
||||||
$dialplan_response = $orm->message;
|
|
||||||
|
|
||||||
//get the destination_uuid
|
//get the destination_uuid
|
||||||
if (strlen($dialplan_response['uuid']) > 0) {
|
if (strlen($dialplan_response['uuid']) > 0) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue