Thank you
Thanks & Kind Regards,
Logeshwaran G
On Mon, Aug 21, 2017 at 11:46 AM, Alex Balashov <abalashov(a)evaristesys.com>
wrote:
On Mon, Aug 21, 2017 at 11:43:31AM +0530, Logeshwaran
G wrote:
How to take call counts from the kamailio?
Kamailio is not inherently aware of "calls", but the dialog module adds
the necessary state:
https://kamailio.org/docs/modules/5.0.x/modules/dialog.html
If you just want call counts globally across the system, you can add
dialog state by calling dlg_manage() before t_relay() / initial
dialog-forming transaction creation. Then you can issue an RPC command
to get the global call count.
If you want to segregate calls by inbound/outbound, or by customer
account or whatever, you need to organise them into "dialog profiles"
and use the identifier as a "key":
https://kamailio.org/docs/modules/5.0.x/modules/dialog.
html#dialog.p.profiles_with_value
https://kamailio.org/docs/modules/5.0.x/modules/dialog.
html#dialog.f.set_dlg_profile
There are RPC commands to get the call count within a particular
profile, optionally by value.
-- Alex
--
Alex Balashov | Principal | Evariste Systems LLC
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web:
http://www.evaristesys.com/,
http://www.csrpswitch.com/
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users(a)lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users