[Kamailio-Users] Double acc records in DB

Daniel-Constantin Mierla miconda at gmail.com
Tue Nov 10 11:46:24 CET 2009


Hello,

On 09.11.2009 17:20 Uhr, Henning Westerholt wrote:
> On Montag, 9. November 2009, Alex Hermann wrote:
> > > Alex Hermann wrote:
> > > > I noticed that sometimes I get 2 identical acc records in the 
> database,
> > > > although I get only 1 in the syslog (I use both db_flag and 
> log_flag).
> > > > Of course, the second record in the DB shouldn't be there.
> > >
> > > Identical as in, same method, same CSeq, same Call-ID, but different
> > > ID column?
> >
> > Yes.
>
>
> Hey Alex,
>
>
> i think i also noticed something like this some time ago in our 
> accounting, we use syslog output.

do you get same situation with syslog acc? As I understood Alex got it 
with db accounting.

What is very strange in Alex's case is he gets it with db and not with 
syslog, for same event. The module calls step by step syslog and then db 
recording. So if there would be 2 db records, should be 2 syslog records.

Cheers,
Daniel
> I supposed that it had something to do with retransmissions, and that 
> perhaps a really rare race condition exists somewhere in the 
> accounting module. We take care of this in our cdr engine, so i did 
> not debugged it further that time, as i don't had access to a sip 
> trace showing the SIP message flow for the record(s) in question.
>
>
> But if you say it has nothing to do with retransmissions, then its 
> even more strange. How often do you observe this problem?
>
>
> Regards,
>
>
> Henning
> ------------------------------------------------------------------------
>
> _______________________________________________
> Kamailio (OpenSER) - Users mailing list
> Users at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users

-- 
Daniel-Constantin Mierla
* http://www.asipto.com/





More information about the sr-users mailing list