TT#182102 fix subcriber primary number and cli comparsion

* comparsion is now char based instead of int based as the primary
  number can contain chars

Change-Id: I1f9b348dffe036ecf62bc6ed6a1f84592126427c
mr11.0
Kirill Solomko 4 years ago
parent d7367fe1c3
commit d6463ffeb5

@ -1543,7 +1543,7 @@ sub update_subscriber_numbers {
$alias->{e164}->{is_devid} = delete $alias->{is_devid};
}
if (defined $current_primary_number && $current_primary_number == $cli) {
if (defined $current_primary_number && $current_primary_number eq $cli) {
die "alias '" . $c->qs($cli) . "' is already defined as the primary number";
}

Loading…
Cancel
Save