[Spce-user] API: how to get force_inbound_calls_to_peer subscribers

Rene Krenn rkrenn at sipwise.com
Tue Jun 28 05:25:18 EDT 2022


Hi, the api does not support that explicit type of filtering for
preferences, would be way to slow.

Please use the Subcriber&Contract exporter instead:

perl /usr/share/perl5/NGCP/BulkProcessor/Projects/ETL/Customer/process.pl

you can control waht to include in the export in the yml files 

/usr/share/perl5/NGCP/BulkProcessor/Projects/ETL/Customer/load.yml

You can export a sqlite db (which you can easily filter for your preference
values), which you can define via

/usr/share/perl5/NGCP/BulkProcessor/Projects/ETL/Customer/tabular.yml

Or you can export a stream of json graph for eg. apache kafka, which you can
control via

/usr/share/perl5/NGCP/BulkProcessor/Projects/ETL/Customer/graph.yml

br, rene

-----Ursprüngliche Nachricht-----
Von: Ml Ml via Spce-user [mailto:spce-user at lists.sipwise.com] 
Gesendet: Dienstag, 28. Juni 2022 11:08
An: spce-user at lists.sipwise.com
Betreff: [Spce-user] API: how to get force_inbound_calls_to_peer subscribers

Hello,
how can i get all subscribers which have

force_inbound_calls_to_peer=force?

I tried:HTTP::Request->new('GET',
"$sipwise_uri/api/subscriberpreferences/?force_inbound_calls_to_peer=force")
;

But it does not return the expected results. Should my GET URL be different?

However, this search example seems to work:
 HTTP::Request->new('GET', "$sipwise_uri/api/customers/?external_id=$no");

Any idea what I am doing wrong?

Thanks,
Michael

-- 
Spce-user mailing list
Spce-user at lists.sipwise.com
http://lists.sipwise.com/mailman/listinfo/spce-user_lists.sipwise.com





More information about the Spce-user mailing list