[SR-Users] get online user from api

赵国杰 zhaoguojie2010 at 163.com
Wed Jun 28 08:17:02 CEST 2017


Hello
     Thanks for replying. I read the module doc, it's too brief and i still don't know how to modify the config to enable a jsonrpc server. Right now I execute:
      kamcmd -s udp:localhost:5060 ul.dump and there's no response. By the way, I want to use jsonrpc via tcp, not http.


Thanks
jesse








At 2017-06-27 16:37:38, "Daniel Tryba" <d.tryba at pocos.nl> wrote:
>On Tue, Jun 27, 2017 at 03:50:17PM +0800, 赵国杰 wrote:
>> I want to know how many users are currently registered to my
>> kamailio server. I understand can be used to achieve this. I'm
>> wondering if there's RESTful or RPC interface that can be
>> requested by external service.
>
>
>Yes there are RPC interfaces (I see atleast 3 looking at the stable
>modules list). In the default supplied kamailio.cfg there are examples
>for the XMLRPC module. My guess the best fit for you will be 
>https://www.kamailio.org/docs/modules/stable/modules/jsonrpcs.html
>
>
>_______________________________________________
>Kamailio (SER) - Users Mailing List
>sr-users at lists.kamailio.org
>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/20170628/1a29669f/attachment.html>


More information about the sr-users mailing list