TT#58863 - Primary numbers creation on provisioning

* Fixed the POST data to correctly
	  build the primary number hash in
	  the ngcp-create-subscriber script

Change-Id: I03e2e5270d5f93d518d889584a3657b9ca1b64c3
changes/36/30336/1
Flaviu Mates 6 years ago
parent 1d5daffc4d
commit 689bfc1569

@ -55,7 +55,7 @@ sub main {
my $uri = '/api/subscribers/';
my %data = map { $_ => $opts->{$_} }
qw(customer_id username password webpassword);
$data{primary_number} = { map { $_ => $opts->{$_} } @{$opts}{qw(cc ac sn)} };
$data{primary_number} = { map { $_ => $opts->{$_} } qw(cc ac sn) };
$data{administrative} = $opts->{admin};
my $client = new NGCP::API::Client;
$client->set_verbose($opts->{verbose});

Loading…
Cancel
Save