<div><div dir="auto">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:</div><div dir="auto"><br></div><div dir="auto"><div><img src="cid:15cee192feaeafc83281" style="max-width: 100%;"></div><br></div><br><div class="gmail_quote"><div>On Tue, Jun 27, 2017 at 11:17 PM 赵国杰 <<a href="mailto:zhaoguojie2010@163.com">zhaoguojie2010@163.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hello</div><div>     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:</div><div>      <b>kamcmd -s udp:localhost:5060 ul.dump</b> and there's no response. By the way, I want to use jsonrpc via tcp, not http.</div><div><br></div><div>Thanks</div><div>jesse</div></div><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><br><br><div style="zoom:1"><br><div style="clear:both"></div></div><div id="m_-973660126124998127divNeteaseMailCard"></div><br><pre><br>At 2017-06-27 16:37:38, "Daniel Tryba" <<a href="mailto:d.tryba@pocos.nl" target="_blank">d.tryba@pocos.nl</a>> 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 
><a href="https://www.kamailio.org/docs/modules/stable/modules/jsonrpcs.html" target="_blank">https://www.kamailio.org/docs/modules/stable/modules/jsonrpcs.html</a>
>
>
>_______________________________________________
>Kamailio (SER) - Users Mailing List
><a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre></div><br><br><span title="neteasefooter"><p> </p></span>_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature">Sent from Gmail Mobile</div>