TT#130450 use uuid in /api/cfdestinationsets /api/cfmappings

* unify the logic and use uuid in /api/cfdestinationsets and
  /api/cfmappings if the subscriber's primary number is empty

Change-Id: Ibdb7e2a2bcd33165be5ec1d92c4f1df24f59405a
(cherry picked from commit 1dfdad0a8f)
mr9.5.4
Kirill Solomko 5 years ago
parent db8f0feff6
commit ab4d8e22f1

@ -148,7 +148,7 @@ sub update_item {
if ($primary_nr_rs) {
$number = $primary_nr_rs->cc . ($primary_nr_rs->ac //'') . $primary_nr_rs->sn;
} else {
$number = ''
$number = $b_subscriber->uuid;
}
my $domain = $subscriber->domain->domain // '';

@ -196,7 +196,7 @@ sub update_item {
if ($primary_nr_rs) {
$number = $primary_nr_rs->cc . ($primary_nr_rs->ac //'') . $primary_nr_rs->sn;
} else {
$number = ''
$number = $item->uuid;
}
my $domain = $item->provisioning_voip_subscriber->domain->domain // '';

Loading…
Cancel
Save