Hi,
I have added the
modparam("dialog", "profiles_with_value", "caller ;
my_profile")
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?
[root@123 kamailio]# kamcmd dlg.list
{
h_entry: 287
h_id: 3328
call-id: e14ee2382d6e9d19
from_uri: sip:8888@209.95.52.97
to_uri: sip:8888@209.95.52.97
state: 4
start_ts: 1503302997
init_ts: 1503302996
timeout: 1503306598
lifetime: 3600
dflags: 643
sflags: 0
iflags: 0
caller: {
tag: 8e680f5d
contact: sip:8888@192.168.3.5:6092;alias=45.249.123.97~6092~1
cseq: 1
route_set:
socket: udp:209.95.52.97:15060
}
callee: {
tag: 13322723
contact: sip:8888@192.168.3.5:6092;alias=45.249.123.97~6092~1
cseq: 0
route_set:
socket: udp:209.95.52.97:15060
}
profiles: {
}
variables: {
{
duration: 0
}
{
end_time: 1503302998.020
}
{
start_time: 1503302998.020
}
}
}
[root@zeodialer kamailio]#
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