[SR-Users] Subscriber Management using JSONRPC over HTTP
Alex Balashov
abalashov at evaristesys.com
Thu Jul 8 21:57:05 CEST 2021
I am not 100% sure what you mean by subscriber management, but if you mean what I think you mean, these might be the droids you’re looking for:
https://kamailio.org/docs/modules/5.5.x/modules/usrloc.html#idm771
—
Sent from mobile, with due apologies for brevity and errors.
> On Jul 8, 2021, at 3:55 PM, Surabhi Garg <surabhi.garg at outlook.com> wrote:
>
>
> Hi Team,
>
> Greetings!
>
> I was trying to use HTTP to do the subscriber management (CRUD operations) & for that I am using JSONRPC-S module (JSONRPC over HTTP). But like other modules e.g. dispatcher, location I am unable to find any RPC commands for doing subscriber management (checked in auth_db) module. So is there a way to achieve subscriber management using JSONRPC over HTTP.
>
> Few HTTP examples which I am using for dispatcher module are given below. Similar commands I am looking for subscriber management as well.
>
> curl http://localhost:8081/RPC -H "Content-Type: application/json" -d " {\"jsonrpc\":\"2.0\",\"method\":\"dispatcher.add\", \"params\":[2, \"sip:127.0.0.1:5061\"], \"id\": \"1\"}"
>
> curl http://localhost:8081/RPC -H "Content-Type: application/json" -d " {\"jsonrpc\":\"2.0\",\"method\":\"dispatcher.remove\”, \"params\":[2, \"sip:127.0.0.1:5061\"], \"id\": \"1\"}"
>
>
>
> Surabhi Garg
> Mobile - 91 783 888 7523
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
> * sr-users at lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the sender!
> Edit mailing list options or unsubscribe:
> * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210708/96660a73/attachment.htm>
More information about the sr-users
mailing list