Bugs item #3610750, was opened at 2013-04-13 06:51
Message generated for change (Comment added) made by razvancrainea
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3610750&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: 1.9.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Digipigeon (digipigeon)
>Assigned to: Razvan Crainea (razvancrainea)
Summary: ACC + CDR + EVI - Missing CDR

Initial Comment:
Hello,

I have my ACC mod config as follows:

modparam("acc", "early_media", 0)
#modparam("acc", "report_ack", 1)
modparam("acc", "report_cancels", 1)
modparam("acc", "detect_direction", 0)
/* account triggers (flags) */
modparam("acc", "failed_transaction_flag", 3)
#modparam("acc", "log_flag", 1)
#modparam("acc", "log_missed_flag", 2)
/* uncomment the following lines to enable DB accounting also */
modparam("acc", "db_flag", 1)
modparam("acc", "db_missed_flag", 2)
modparam("acc", "db_extra", "from_uri=$fu;
                                to_uri=$avp(cdr_to_uri);
                                username=$Au;
                                source_ip=$avp(orig_ip);
                                gw_id=$avp(gw_id);
                                account_id=$avp(account_id);
                                user_agent=$hdr(user-agent);
                                contact=$hdr(contact);
                                event=$hdr(event);
                                group_id=$avp(group_id);
                                prefix=$avp(prefix);
                                name=$avp(destination_name);
                                tariff_id=$avp(tariff_id);
                                pdd_in=$avp(pdd_in);
                                pdd_out=$avp(pdd_out);
                                lrn_number=$avp(lrn_number)
                                ") #Extra data
modparam("acc", "db_extra_bye", "release_reason=$DLG_dir")
modparam("acc", "cdr_flag", 1)
modparam("acc", "evi_flag", 1)
modparam("acc", "evi_missed_flag", 1)
modparam("acc", "evi_extra", "from_uri=$fu;
                                to_uri=$avp(cdr_to_uri);
                                username=$Au;
                                source_ip=$avp(orig_ip);
                                gw_id=$avp(gw_id);
                                account_id=$avp(account_id);
                                user_agent=$hdr(user-agent);
                                contact=$hdr(contact);
                                event=$hdr(event);
                                group_id=$avp(group_id);
                                prefix=$avp(prefix);
                                name=$avp(destination_name);
                                tariff_id=$avp(tariff_id);
                                pdd_in=$avp(pdd_in);
                                pdd_out=$avp(pdd_out);
                                lrn_number=$avp(lrn_number)
                                ") #Extra data
modparam("acc", "evi_extra_bye", "release_reason=$DLG_dir")

Due to issue 3610016, I have NOT at present got the rabbitmq module enabled and 
I am NOT subscribing to any events in the startup route, however the evi 
configuration was setup as above as I did not feel it necessary to remove it 
while 3610016 was been worked on. I only noticed later on my pilot machine that 
CDR was not been recorded correctly, as soon as I removed all of the flags 
relating to acc, evi, everything worked as normal again.

I was able to see various BYE messages, but not the INVITE messages which 
recorded the duration, etc.

Regards Jonathan

----------------------------------------------------------------------

>Comment By: Razvan Crainea (razvancrainea)
Date: 2013-04-15 00:31

Message:
Hi, Jonathan!

Can you tell me what are the flags you were removing in order to make it
work? Also, what is the behavior you are expecting? Old accounting (INVITE
+ BYE) or CDR accounting (INVITE with duration)? This only happens for DB
backend?

Best regards,
Răzvan

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3610750&group_id=232389

_______________________________________________
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel

Reply via email to