Change how the app_uuid is handled on device copy.
This commit is contained in:
@@ -77,13 +77,13 @@ else {
|
|||||||
}
|
}
|
||||||
unset ($prep_statement);
|
unset ($prep_statement);
|
||||||
|
|
||||||
//copy the app_uuid only for specific dialplans
|
//create a new app_uuid when copying a dialplan except for these exceptions
|
||||||
switch ($app_uuid) {
|
switch ($app_uuid) {
|
||||||
case "c03b422e-13a8-bd1b-e42b-b6b9b4d27ce4": //inbound routes
|
case "c03b422e-13a8-bd1b-e42b-b6b9b4d27ce4": //inbound routes
|
||||||
case "8c914ec3-9fc0-8ab5-4cda-6c9288bdc9a3": //outbound routes
|
case "8c914ec3-9fc0-8ab5-4cda-6c9288bdc9a3": //outbound routes
|
||||||
case "4b821450-926b-175a-af93-a03c441818b1": //time conditions
|
case "4b821450-926b-175a-af93-a03c441818b1": //time conditions
|
||||||
default:
|
default:
|
||||||
unset($app_uuid);
|
$app_uuid = uuid();
|
||||||
}
|
}
|
||||||
|
|
||||||
//copy the dialplan
|
//copy the dialplan
|
||||||
@@ -104,12 +104,7 @@ else {
|
|||||||
$sql .= "(";
|
$sql .= "(";
|
||||||
$sql .= "'".$domain_uuid."', ";
|
$sql .= "'".$domain_uuid."', ";
|
||||||
$sql .= "'$dialplan_uuid', ";
|
$sql .= "'$dialplan_uuid', ";
|
||||||
if (isset($app_uuid)) {
|
$sql .= "'$app_uuid', ";
|
||||||
$sql .= "'$app_uuid', ";
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$sql .= "null, ";
|
|
||||||
}
|
|
||||||
$sql .= "'".$dialplan_name."-copy', ";
|
$sql .= "'".$dialplan_name."-copy', ";
|
||||||
$sql .= "'$dialplan_order', ";
|
$sql .= "'$dialplan_order', ";
|
||||||
$sql .= "'$dialplan_continue', ";
|
$sql .= "'$dialplan_continue', ";
|
||||||
|
|||||||
Reference in New Issue
Block a user