[OpenSIPS-Users] Dialog count mismatches
Brett Nemeroff
brett at nemeroff.com
Wed Aug 26 19:24:18 CEST 2009
All,I'm running OpenSIPs 1.5.1. I use dialog profiling to "count" calls up.
I notice that comparing my numbers to my providers using SBCs that my
numbers are always MUCH higher than my provider for "simultaneous calls
connected". For example, I may show 300 calls up, but they only show 75. The
numbers are usually out of whack like this. The weird thing is, in very
small quantities, 2-3 calls, I'm *sure* the numbers match. Also, if they
stop dialing entirely and I let the calls die off, the numbers return to 0
quickly enough.
To set my dialog profile, I do it in the onreply route like this:
if (t_check_status("200")) {
# Set my dialogs here
if (!is_in_profile("account","$avp(s:accountid)")) {
set_dlg_profile("account","$avp(s:accountid)");
}
if (!is_in_profile("trunk","$avp(s:trunkid)")) {
set_dlg_profile("trunk","$avp(s:trunkid)");
}
}
Any thoughts on what I may be doing wrong? BTW, I do this in the onreply and
not in the original INVITE because I'm trying to mimick the behavior of a
nextone SBC which limits the number of CONNECTED calls, but doesn't limit
the call setups. I think that's a silly way to do it, but if I don't match
the behavior, nextone SBCs will show horrible ASRs for me as they'll
continue to setup calls long after I start rejecting calls because too many
are being set up.
Thoughts? Thanks!
-Brett
Thanks,
Brett
from opensips -V: @(#) $Id: main.c 5469 2009-03-18 12:43:10Z bogdan_iancu $
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20090826/9ea4763a/attachment.htm
More information about the Users
mailing list