[SR-Users] get online user from api

Brandon Armstead brandon at cryy.com
Wed Jun 28 11:47:30 CEST 2017


It looks like it supports UDP I'm however not sure on the specifics of
TCP.  Follow the example documentation, make sure you have something
listening and go from there:



On Tue, Jun 27, 2017 at 11:17 PM 赵国杰 <zhaoguojie2010 at 163.com> wrote:

> 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
>
>
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-- 
Sent from Gmail Mobile
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170628/86d304ed/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IMG_0085.jpg
Type: image/png
Size: 417165 bytes
Desc: not available
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170628/86d304ed/attachment.png>


More information about the sr-users mailing list