<div dir="ltr"><div>Hi,<br><br></div>I have added the <br><pre class="gmail-programlisting">modparam("dialog", "profiles_with_value", "caller ; my_profile")<br><br></pre>and executed the below RPC command, I am getting an below output, but What I needed is exact call count (For example if there are two calls placed, then it should shows the call count as "2"), is it possible?<br><br>[root@123 kamailio]# kamcmd dlg.list<br>{<br>    h_entry: 287<br>    h_id: 3328<br>    call-id: e14ee2382d6e9d19<br>    from_uri: <a href="mailto:sip%3A8888@209.95.52.97">sip:8888@209.95.52.97</a><br>    to_uri: <a href="mailto:sip%3A8888@209.95.52.97">sip:8888@209.95.52.97</a><br>    state: 4<br>    start_ts: 1503302997<br>    init_ts: 1503302996<br>    timeout: 1503306598<br>    lifetime: 3600<br>    dflags: 643<br>    sflags: 0<br>    iflags: 0<br>    caller: {<br>        tag: 8e680f5d<br>        contact: sip:8888@192.168.3.5:6092;alias=45.249.123.97~6092~1<br>        cseq: 1<br>        route_set: <br>        socket: udp:<a href="http://209.95.52.97:15060">209.95.52.97:15060</a><br>    }<br>    callee: {<br>        tag: 13322723<br>        contact: sip:8888@192.168.3.5:6092;alias=45.249.123.97~6092~1<br>        cseq: 0<br>        route_set: <br>        socket: udp:<a href="http://209.95.52.97:15060">209.95.52.97:15060</a><br>    }<br>    profiles: {<br>    }<br>    variables: {<br>        {<br>            duration: 0<br>        }<br>        {<br>            end_time: 1503302998.020<br>        }<br>        {<br>            start_time: 1503302998.020<br>        }<br>    }<br>}<br>[root@zeodialer kamailio]# <br><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Thanks & Kind Regards,<br></div>Logeshwaran G<br></div></div></div>
<br><div class="gmail_quote">On Mon, Aug 21, 2017 at 11:46 AM, Alex Balashov <span dir="ltr"><<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, Aug 21, 2017 at 11:43:31AM +0530, Logeshwaran G wrote:<br>
<br>
> How to take call counts from the kamailio?<br>
<br>
</span>Kamailio is not inherently aware of "calls", but the dialog module adds<br>
the necessary state:<br>
<br>
<a href="https://kamailio.org/docs/modules/5.0.x/modules/dialog.html" rel="noreferrer" target="_blank">https://kamailio.org/docs/<wbr>modules/5.0.x/modules/dialog.<wbr>html</a><br>
<br>
If you just want call counts globally across the system, you can add<br>
dialog state by calling dlg_manage() before t_relay() / initial<br>
dialog-forming transaction creation. Then you can issue an RPC command<br>
to get the global call count.<br>
<br>
If you want to segregate calls by inbound/outbound, or by customer<br>
account or whatever, you need to organise them into "dialog profiles"<br>
and use the identifier as a "key":<br>
<br>
<a href="https://kamailio.org/docs/modules/5.0.x/modules/dialog.html#dialog.p.profiles_with_value" rel="noreferrer" target="_blank">https://kamailio.org/docs/<wbr>modules/5.0.x/modules/dialog.<wbr>html#dialog.p.profiles_with_<wbr>value</a><br>
<br>
<a href="https://kamailio.org/docs/modules/5.0.x/modules/dialog.html#dialog.f.set_dlg_profile" rel="noreferrer" target="_blank">https://kamailio.org/docs/<wbr>modules/5.0.x/modules/dialog.<wbr>html#dialog.f.set_dlg_profile</a><br>
<br>
There are RPC commands to get the call count within a particular<br>
profile, optionally by value.<br>
<span class="HOEnZb"><font color="#888888"><br>
-- Alex<br>
<br>
--<br>
Alex Balashov | Principal | Evariste Systems LLC<br>
<br>
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)<br>
Web: <a href="http://www.evaristesys.com/" rel="noreferrer" target="_blank">http://www.evaristesys.com/</a>, <a href="http://www.csrpswitch.com/" rel="noreferrer" target="_blank">http://www.csrpswitch.com/</a><br>
<br>
______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org">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/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
</font></span></blockquote></div><br></div>