[SR-Users] count of registered users or count of tls connections

Julien Chavanton jchavanton at gmail.com
Thu May 24 02:13:21 CEST 2018


I see, never done it, but mayne this article can help

http://blog.miconda.eu/2014/12/kamailio-42-tips-12-execute-rpc.html

The parameter has to be a valid full JSON-RPC document. It can be a dynamic
string with variables. The result of the command can be accessed via
$jsonrpl(key) pseudo variables.

On Wed, May 23, 2018 at 5:20 PM, Karthik Srinivasan <ksriniva2002 at gmail.com>
wrote:

> Hi Julien,
>
> The routing file i am referring to is the kamailio.cfg configuration file.
>
> I am trying to find a way to access this information within that file.
>
> Thanks,
>
> Karthik
>
> On Wed, May 23, 2018 at 3:35 PM, Julien Chavanton <jchavanton at gmail.com>
> wrote:
>
>> Hi Karthik,
>>
>> You can retrieve this information using kamcmd
>>
>> kamcmd stats.get_statistics all | grep usrloc
>> kamcmd tls.info
>>
>> Not sure what you meant by "via the routing file"
>>
>>
>>
>> On Wed, May 23, 2018 at 10:32 AM, Karthik Srinivasan <
>> ksriniva2002 at gmail.com> wrote:
>>
>>> sorry, i hit the send key a bit too quickly.
>>>
>>> i am trying to access two items via the routing file:  a.) number of
>>> registered users.   b.) number of active TLS connections.
>>>
>>> I am not pushing the registrations to the database.  usrloc is stored in
>>> memory.
>>>
>>> any ideas?
>>>
>>> On Wed, May 23, 2018 at 12:30 PM, Karthik Srinivasan <
>>> ksriniva2002 at gmail.com> wrote:
>>>
>>>> Hello,
>>>>
>>>> Via the routing file i am trying to find access two items:
>>>>
>>>>
>>>>
>>>
>>> _______________________________________________
>>> 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
>>
>>
>
> _______________________________________________
> 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/20180523/ee4b8b28/attachment.html>


More information about the sr-users mailing list