[Spce-user] subscriber_id mismatch
Imanol Pardavila
imanol.pardavila at ibercom.com
Tue Nov 20 09:52:47 EST 2012
Hi,
I found a different result when making a query with
"ngcp-get_voip_account" and with "ngcp-get_subscriber", to get
subscribers' id:
root at server:~# *ngcp-get_voip_account* -i 5
VoIP account information:
{
'activate_timestamp' => '2012-11-20 12:35:52',
'billing_profile' => 'default',
'create_timestamp' => '2012-11-20 12:35:52',
'external_id' => 'Company',
'id' => 5,
'modify_timestamp' => '2012-11-20 12:35:52',
'product' => undef,
'status' => 'active',
'*subscribers*' => [
{
'ac' => '',
'account_id' => '5',
'admin' => '0',
'alias_numbers' => [],
'cc' => '34',
...
...
*'subscriber_id' => '22',*
'username' => 'imanol',
'uuid' => 'e2870069-6bb5-4f23-8540-9f4df7b77aa8',
...
},
{
'ac' => '',
'account_id' => '5',
'admin' => '0',
'alias_numbers' => [],
'cc' => '34',
...
...
*'subscriber_id' => '23',*
'username' => 'javier',
'uuid' => 'f2883e7b-5642-4bb6-9684-c9525323d3d7',
...
...
}
],
'terminate_timestamp' => undef
}
subscriber_id=22 and 23
However,
root at server:~# *ngcp-get_subscriber* -i 22
Voip::get_subscriber_by_id failed: subscriber with ID '22' does not
exist at /usr/bin/ngcp-get_subscriber line 71.
root at server:~# *ngcp-get_subscriber* -i 23
Voip::get_subscriber_by_id failed: subscriber with ID '23' does not
exist at /usr/bin/ngcp-get_subscriber line 71.
In fact, the id's in this case are 26 and 27
root at server:~# *ngcp-get_subscriber* -i 26
Subscriber information:
{
'ac' => '',
'account_id' => '5',
'admin' => '0',
'autoconf_displayname' => undef,
'autoconf_group_id' => undef,
'cc' => '34',
...
...
* 'subscriber_id' => '26',*
'username' => 'imanol',
'uuid' => 'e2870069-6bb5-4f23-8540-9f4df7b77aa8',
...
...
}
root at server:~# ngcp-get_subscriber -i 27
Subscriber information:
{
'ac' => '',
'account_id' => '5',
'admin' => '0',
'autoconf_displayname' => undef,
'autoconf_group_id' => undef,
'cc' => '34',
...
...
*'subscriber_id' => '27',*
'username' => 'javier',
'uuid' => 'f2883e7b-5642-4bb6-9684-c9525323d3d7',
...
...
}
Any explanation?
Thanks
Best regards
Imanol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20121120/ebfaa8e5/attachment.html>
More information about the Spce-user
mailing list