<div dir="ltr">Thank you<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>