app_uuid needs to be unique for copied dialplans except for inbound and outbound routes, fifo, time conditions

This commit is contained in:
FusionPBX 2021-11-19 22:07:26 -07:00 committed by GitHub
parent 942938a66b
commit 06f580ab05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 1 deletions

View File

@ -1392,8 +1392,19 @@
//copy data
$array[$this->table][$x] = $row;
//app_uuid needs to be unique for copied dialplans
//except for inbound and outbound routes, fifo, time conditions
$app_uuid = $row['app_uuid'];
switch ($app_uuid) {
case "c03b422e-13a8-bd1b-e42b-b6b9b4d27ce4": break;
case "8c914ec3-9fc0-8ab5-4cda-6c9288bdc9a3": break;
case "16589224-c876-aeb3-f59f-523a1c0801f7": break;
case "4b821450-926b-175a-af93-a03c441818b1": break;
default: $app_uuid = uuid();
}
//dialplan copy should have a unique app_uuid
$array[$this->table][$x]['app_uuid'] = uuid();
$array[$this->table][$x]['app_uuid'] = $app_uuid;
//overwrite
$array[$this->table][$x][$this->uuid_prefix.'uuid'] = $primary_uuid;