[OpenSIPS-Users] Dialog count mismatches

brett at nemeroff.com brett at nemeroff.com
Wed Aug 26 21:14:20 CEST 2009


Is there a way to control that behavior to only count active and not early? Just curious. So does that mean I shouldn't have to check for the 200 Reply before I set the profile??
-Brett

Sent from my Verizon Wireless BlackBerry

-----Original Message-----
From: Bogdan-Andrei Iancu <bogdan at voice-system.ro>

Date: Wed, 26 Aug 2009 22:04:02 
To: OpenSIPS users mailling list<users at lists.opensips.org>
Subject: Re: [OpenSIPS-Users] Dialog count mismatches


Hi Brett,

There was a bug in dialog module, in counting the dialogs in a profile - 
the bug was fixed last week and it will be part of 1.5.3 that will be 
released tomorrow.

The bug consisted in counting also dialogs that were in DELETED state 
(instead of counting only the EARLY and ACTIVE ones). The dialogs are 
kept in DELETED state for like 5sec after the BYE.

Try to upgrade from svn and see if the counting is now correct.

Regards,
Bogdan

Brett Nemeroff wrote:
> 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 $
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   


_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


More information about the Users mailing list