[OpenSIPS-Users] Sending CDR over event_datagram module

Răzvan Crainea razvan at opensips.org
Wed Jul 16 09:03:39 CEST 2014


Hi, Dan!

You are right, this seems to be a bug. The second event shouldn't be 
E_ACC_CDR, but E_ACC_EVENT. I fixed this in the git code, thanks for 
noticing it.
Setting the CDR_FLAG on BYE messages means that you explicitly want to 
account that message. That's why you have two events: a CDR and a plain 
event. The cgr_reqtype field is not populated in the second one most 
likely because you are not setting the AVP on the BYE requests, only on 
INVITEs. Correct me if I am wrong?
For most setups, setting the CDR_FLAG on INVITEs messages suffices. Is 
there anything else you are trying to achieve that you explicitly set 
the flag on BYEs, or it was just a matter of tests?

Best regards,

Razvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com

On 07/15/2014 10:49 AM, Dan Christian Bogos wrote:
> Hey Razvan,
>
> Thanks for getting so fast back to me.
>
> Regarding your question, when activating CDR for INVITE and BYE, I am
> getting two E_ACC_CDR events. What is also weird is that the avp which I
> set in INVITE is not recovered in BYE (see cgr_reqtype in the sample
> bellow).
>
> Here are the events I am getting:
>
> """
> U 2014/07/15 09:35:24.652932 127.0.0.1:55392 -> 127.0.0.1:2020
> E_ACC_CDR
> method::INVITE
> from_tag::17d32201
> to_tag::cdb79274
> callid::NGJkYWY5YjU1NTY3N2Y2YmNmOWQwOGI0OTRjMjA0Yzg.
> sip_code::200
> sip_reason::OK
> time::1405409721
> cgr_reqtype::prepaid
> cgr_destination::dan
> cgr_account::dan
> cgr_subject::dan
> duration::3
> setuptime::3
> created::1405409718
>
>
> #
> U 2014/07/15 09:35:24.667958 127.0.0.1:50791 -> 127.0.0.1:2020
> E_ACC_CDR
> method::BYE
> from_tag::cdb79274
> to_tag::17d32201
> callid::NGJkYWY5YjU1NTY3N2Y2YmNmOWQwOGI0OTRjMjA0Yzg.
> sip_code::200
> sip_reason::OK
> time::1405409724
> cgr_reqtype::
> cgr_destination::dan
> cgr_account::dan
> cgr_subject::dan
> """
>
> Cheers,
> DanB
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users



More information about the Users mailing list