[Spce-user] Get registrations via API empty result

Jon Bonilla (Manwe) manwe at sipdoc.net
Wed Apr 13 06:47:54 EDT 2022


Hi all

Using a 7.5.11. I have a script to get all the registrations but in this
particular node the API returns 0 results. 

If I check with the inline api client the same

Asking kamailio there are 102 entries

# ngcp-kamctl proxy  online | wc -l
103


The api result:

Request URL

https://XXX:1443/api/subscriberregistrations/?order_by_direction=asc&page=1&rows=100

Response body:
{
  "_links": {
    "curies": {
      "href": "http://purl.org/sipwise/ngcp-api/#rel-{rel}",
      "name": "ngcp",
      "templated": true
    },
    "profile": {
      "href": "http://purl.org/sipwise/ngcp-api/"
    },
    "self": {
      "href":
"/api/subscriberregistrations/?page=1&rows=100&order_by_direction=asc" }
  },
  "total_count": 0
}

API.log:

INFO:  CALLED=API[GET 200]/api/subscriberregistrations/
TX=16E56E64CD5A7BD8 USER=user DATA=�{ 'order_by_direction' => 'asc', 'page' =>
'1', 'rows' => '10'}� MSG="" LOG="�{ "_links" : { "curies" : { "href" :
"http://purl.org/sipwise/ngcp-api/#rel-{rel}", "name" : "ngcp", "templated" :
true }, "profile" : { "href" : "http://purl.org/sipwise/ngcp-api/" }, "self" :
{ "href" :
"/api/subscriberregistrations/?page=1&rows=10&order_by_direction=asc" } },
"total_count" : 0}�"




Any hints?



cheers,

Jon



-- 
PekePBX, the multitenant PBX solution
https://pekepbx.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: Firma digital OpenPGP
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20220413/b6b3f1de/attachment.sig>


More information about the Spce-user mailing list