I thought that the AVPs vor Callduration and Setuptime are missing. But I just did not see them since I have not implemented the dictionary on the server yet. And the Wireshark also does not display them. Wireshark says
- AVP: l=6 t=X-Ascend-Dial-Number(227): \000\000\000\003 - AVP: l=6 t=X-Ascend-Route-IP(228): 9 I will have to implement the right dicts to the server next and see how it looks like [cid:[email protected]] Marcel Sicking - Core Network Engineer phone: +49 (211) 5423 5010 fax: +49 (211) 5423 5099 email: [email protected] web: http://www.onephone.de [cid:[email protected]] OnePhone - Gewinner Innovationspreis 2012 Best in Cloud Award der Computerwoche Geschäftsführer: Michael Hegemann, Christoph Wichmann OnePhone Deutschland GmbH, Düsseldorfer Str.16, D-40699 Erkrath Sitz der Gesellschaft: Erkrath, HRB 21674 Wuppertal [cid:[email protected]] Think green! Please consider the environment before printing this email. Von: Miha [mailto:[email protected]] Gesendet: Dienstag, 15. Oktober 2013 15:12 An: OpenSIPS users mailling list Betreff: Re: [OpenSIPS-Users] opensips CDR acc with radius Marcel, I do not understand you just right. So, accouting is send or is not send:)? Did you include: ATTRIBUTE Sip-Call-Duration 227 integer ATTRIBUTE Sip-Call-Setuptime 228 integer alse this on radius server site or just on client? miha Dne 10/15/2013 3:01 PM, piše Marcel Sicking: Hello, I have a problem sending CDRs to my radius server. I have setup accounting properly in opensips.conf: #### ACCounting module loadmodule "acc.so" modparam("acc", "aaa_url", "radius:/etc/radiusclient-ng/radiusclient.conf") modparam("acc", "aaa_extra", "User-Name=$Au") modparam("acc", "early_media", 0) modparam("acc", "report_cancels", 0) modparam("acc", "detect_direction", 0) modparam("acc", "failed_transaction_flag", "ACC_FAILED") modparam("acc", "log_flag", "ACC_DO") modparam("acc", "log_missed_flag", "ACC_MISSED") modparam("acc", "aaa_flag", "ACC_DO") modparam("acc", "cdr_flag", "CDR_FLAG") I set the flag correct for INVITEs: if (is_method("INVITE")) { setflag(CDR_FLAG); setflag(ACC_DO); # do accounting } The radius client is also setup correctly. I know that because I can see the "normal" accounting messages are sent (accounting request/response). With "normal" I mean those without the extra information for e.g. call duration (which have the flag "ACC_DO") I have also extended the dictionary with these two entries: ATTRIBUTE Sip-Call-Duration 227 integer ATTRIBUTE Sip-Call-Setuptime 228 integer When looking into the syslog, there is a line wich contains the cdr data: Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:dlg_onroute: BYE successfully processed - dst_leg = 0 Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:run_dlg_callbacks: dialog=0xb4ae016c, type=32 Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:fetch_dlg_value: looking for <accX_core> Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:fetch_dlg_value: var found-> <#006>! Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:fetch_dlg_value: looking for <accX_log> Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:fetch_dlg_value: var found-> <>! Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:fetch_dlg_value: looking for <accX_leg> Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:fetch_dlg_value: var found-> <>! Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:fetch_dlg_value: looking for <accX_created> Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:fetch_dlg_value: var found-> <<B1>5]R>! Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:acc:acc_log_cdrs: core+extra = 6 - nr_legs = 0 - nr_vals = 0 Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:acc:acc_log_cdrs: not entering Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: ACC: call ended: created=1381840305;call_start_time=1381840311;duration=5;setuptime=6;method=INVITE;from_tag=216620847;to_tag=C9D83241313536414778ED9F;[email protected];code=200;reason=OK<mailto:created=1381840305;call_start_time=1381840311;duration=5;setuptime=6;method=INVITE;from_tag=216620847;to_tag=C9D83241313536414778ED9F;[email protected];code=200;reason=OK> Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:fetch_dlg_value: looking for <accX_core> Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:fetch_dlg_value: var found-> <#006>! Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:fetch_dlg_value: looking for <accX_aaa> Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:fetch_dlg_value: var found-> <#001>! Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:fetch_dlg_value: looking for <accX_leg> Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:fetch_dlg_value: var found-> <>! Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:fetch_dlg_value: looking for <accX_created> Oct 15 14:31:56 opsbc-2 /usr/local/sbin/opensips[16958]: DBG:dialog:fetch_dlg_value: var found-> <<B1>5]R>! Any ideas? I am using opensips 1.9. Regards, Marcel [cid:[email protected]] Marcel Sicking - Core Network Engineer phone: +49 (211) 5423 5010 fax: +49 (211) 5423 5099 email: [email protected]<mailto:[email protected]> web: http://www.onephone.de [cid:[email protected]] OnePhone - Gewinner Innovationspreis 2012 Best in Cloud Award der Computerwoche Geschäftsführer: Michael Hegemann, Christoph Wichmann OnePhone Deutschland GmbH, Düsseldorfer Str.16, D-40699 Erkrath Sitz der Gesellschaft: Erkrath, HRB 21674 Wuppertal [cid:[email protected]]Think green! Please consider the environment before printing this email. _______________________________________________ Users mailing list [email protected]<mailto:[email protected]> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
<<inline: image001.jpg>>
<<inline: image002.jpg>>
<<inline: image003.gif>>
<<inline: [email protected]>>
<<inline: [email protected]>>
<<inline: [email protected]>>
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
