bilal ghayyad
2009-Feb-01 17:23 UTC
[asterisk-users] asterisk-users Digest, Vol 54, Issue 109
Sorry, but why u r using the Radius with the CDR? Not enough to access the CDR in the /var/log/asterisk/cdr-csv/Master.csv? Also, what kind of Radius u r using? Any suggested link? Regards Bilal> > Hello list. > > I'm having some problems with the CDR Radius in my > Asterisk 1.4. I'm > using two TC400B cards for transcoding. When I reach > nearly 100 > simmultaneous calls, the CDR radius packets are being > duplicated and I'm > getting this message in the asterisk console : > > > > cdr_radius.c:227 radius_log: Failed to record Radius CDR > record! > > > > I'm also using the radiusclient-ng 0.5.6 to interact > with the radius > server. > > > > What I'm seeing in the radius server side are 3 radius > packets reaching > at almost the same time. Please look at the debug: > > > > Fri Jan 30 23:34:08 1998: DEBUG: Packet dump: > > *** Received from 10.10.149.211 port 56844 .... > > Code: Accounting-Request > > Identifier: 129 > > Authentic: > <237>U<254>W<129><156><159>D<153>A$<209><233>`G<9> > > Attributes: > > Acct-Status-Type = Stop > > Asterisk-Acc-Code = "TO_PROVIDER" > > Asterisk-Src = "5502222272" > > Asterisk-Dst = "0130005411234618" > > Asterisk-Dst-Ctx = "INC_CALLS" > > Asterisk-Clid = ""sipp" > <5502222272>" > > Asterisk-Chan = "SIP/5060-0972ae58" > > Asterisk-Dst-Chan > "SIP/TO_ITSP1-0972f830" > > Asterisk-Last-App = "Dial" > > Asterisk-Last-Data > "SIP/005411234618 at TO_ITSP1" > > Asterisk-Start-Time = "2009-01-30 14:51:23 > +0000" > > Asterisk-Answer-Time = "2009-01-30 14:51:28 > +0000" > > Asterisk-End-Time = "2009-01-30 14:52:50 > +0000" > > Asterisk-Duration = 87 > > Asterisk-Bill-Sec = 82 > > Asterisk-Disposition = "ANSWERED" > > Asterisk-AMA-Flags = "DOCUMENTATION" > > Asterisk-Unique-ID = "1233327083.102" > > Asterisk-User-Field > "B2BUA-PROVIDER-PRUEBAS" > > User-Name = "SIP/5060-0972ae58" > > Acct-Session-Id = "1233327083.102" > > NAS-Port = 0 > > Acct-Delay-Time = 0 > > NAS-IP-Address = 10.10.149.211 > > > > Fri Jan 30 23:34:08 1998: DEBUG: Handling request with > Handler > 'Request-Type = Accounting-Request' > > Fri Jan 30 23:34:08 1998: DEBUG: Deleting session for > SIP/5060-0972ae58, 10.10.149.211, 0 > > Fri Jan 30 23:34:08 1998: DEBUG: Handling with > AuthINTERNAL: > > Fri Jan 30 23:34:08 1998: DEBUG: AuthBy INTERNAL result: > ACCEPT, Fixed > by DefaultResult > > Fri Jan 30 23:34:08 1998: DEBUG: Accounting accepted > > Fri Jan 30 23:34:08 1998: DEBUG: Packet dump: > > *** Sending to 10.10.149.211 port 56844 .... > > Code: Accounting-Response > > Identifier: 129 > > Authentic: > <237>U<254>W<129><156><159>D<153>A$<209><233>`G<9> > > Attributes: > > > > Fri Jan 30 23:34:08 1998: DEBUG: Packet dump: > > *** Received from 10.10.149.211 port 56844 .... > > Code: Accounting-Request > > Identifier: 129 > > Authentic: > <237>U<254>W<129><156><159>D<153>A$<209><233>`G<9> > > Attributes: > > Acct-Status-Type = Stop > > Asterisk-Acc-Code = "TO_PROVIDER" > > Asterisk-Src = "5502222272" > > Asterisk-Dst = "0130005411234618" > > Asterisk-Dst-Ctx = "INC_CALLS" > > Asterisk-Clid = ""sipp" > <5502222272>" > > Asterisk-Chan = "SIP/5060-0972ae58" > > Asterisk-Dst-Chan > "SIP/TO_ITSP1-0972f830" > > Asterisk-Last-App = "Dial" > > Asterisk-Last-Data > "SIP/005411234618 at TO_ITSP1" > > Asterisk-Start-Time = "2009-01-30 14:51:23 > +0000" > > Asterisk-Answer-Time = "2009-01-30 14:51:28 > +0000" > > Asterisk-End-Time = "2009-01-30 14:52:50 > +0000" > > Asterisk-Duration = 87 > > Asterisk-Bill-Sec = 82 > > Asterisk-Disposition = "ANSWERED" > > Asterisk-AMA-Flags = "DOCUMENTATION" > > Asterisk-Unique-ID = "1233327083.102" > > Asterisk-User-Field > "B2BUA-PROVIDER-PRUEBAS" > > User-Name = "SIP/5060-0972ae58" > > Acct-Session-Id = "1233327083.102" > > NAS-Port = 0 > > Acct-Delay-Time = 0 > > NAS-IP-Address = 10.10.149.211 > > > > Fri Jan 30 23:34:08 1998: INFO: Duplicate request id 129 > received from > 10.10.149.211(56844): ignored > > > > Fri Jan 30 23:34:08 1998: DEBUG: Packet dump: > > *** Received from 10.10.149.211 port 56844 .... > > Code: Accounting-Request > > Identifier: 129 > > Authentic: > <237>U<254>W<129><156><159>D<153>A$<209><233>`G<9> > > Attributes: > > Acct-Status-Type = Stop > > Asterisk-Acc-Code = "TO_PROVIDER" > > Asterisk-Src = "5502222272" > > Asterisk-Dst = "0130005411234618" > > Asterisk-Dst-Ctx = "INC_CALLS" > > Asterisk-Clid = ""sipp" > <5502222272>" > > Asterisk-Chan = "SIP/5060-0972ae58" > > Asterisk-Dst-Chan > "SIP/TO_ITSP1-0972f830" > > Asterisk-Last-App = "Dial" > > Asterisk-Last-Data > "SIP/005411234618 at TO_ITSP1" > > Asterisk-Start-Time = "2009-01-30 14:51:23 > +0000" > > Asterisk-Answer-Time = "2009-01-30 14:51:28 > +0000" > > Asterisk-End-Time = "2009-01-30 14:52:50 > +0000" > > Asterisk-Duration = 87 > > Asterisk-Bill-Sec = 82 > > Asterisk-Disposition = "ANSWERED" > > Asterisk-AMA-Flags = "DOCUMENTATION" > > Asterisk-Unique-ID = "1233327083.102" > > Asterisk-User-Field > "B2BUA-PROVIDER-PRUEBAS" > > User-Name = "SIP/5060-0972ae58" > > Acct-Session-Id = "1233327083.102" > > NAS-Port = 0 > > Acct-Delay-Time = 0 > > NAS-IP-Address = 10.10.149.211 > > > > Fri Jan 30 23:34:08 1998: INFO: Duplicate request id 129 > received from > 10.10.149.211(56844): ignored > > > > I don't understand why this always happened when I > reach 100 simm calls > and above. > > It seems that asterisk is sending the 3 packets but I do > not why. > > Hope someone can help me. > > > > Regards, > > Ricardo.- >
Ricardo Martinez
2009-Feb-02 13:24 UTC
[asterisk-users] Duplicate Radius accounting in Asterisk
Hello. We need to use the Radius module to send the CDR, we need to handle this information in another server. We're using Radiator (http://www.open.com.au/radiator/) as a Radius Server. As I pointed in my first mail : This not seems to be a problem with the Radius Server, but with the Asterisk or maybe the radiusclient. Can someone give me a hand here?. Regards, Ricardo.- -----Mensaje original----- De: bilal ghayyad [mailto:bilmar_gh at yahoo.com] Enviado el: domingo, 01 de febrero de 2009 14:23 Para: asterisk-users at lists.digium.com CC: Ricardo Martinez Asunto: Re: asterisk-users Digest, Vol 54, Issue 109 Sorry, but why u r using the Radius with the CDR? Not enough to access the CDR in the /var/log/asterisk/cdr-csv/Master.csv? Also, what kind of Radius u r using? Any suggested link? Regards Bilal> > Hello list. > > I'm having some problems with the CDR Radius in my > Asterisk 1.4. I'm > using two TC400B cards for transcoding. When I reach > nearly 100 > simmultaneous calls, the CDR radius packets are being > duplicated and I'm > getting this message in the asterisk console : > > > > cdr_radius.c:227 radius_log: Failed to record Radius CDR > record! > > > > I'm also using the radiusclient-ng 0.5.6 to interact > with the radius > server. > > > > What I'm seeing in the radius server side are 3 radius > packets reaching > at almost the same time. Please look at the debug: > > > > Fri Jan 30 23:34:08 1998: DEBUG: Packet dump: > > *** Received from 10.10.149.211 port 56844 .... > > Code: Accounting-Request > > Identifier: 129 > > Authentic: > <237>U<254>W<129><156><159>D<153>A$<209><233>`G<9> > > Attributes: > > Acct-Status-Type = Stop > > Asterisk-Acc-Code = "TO_PROVIDER" > > Asterisk-Src = "5502222272" > > Asterisk-Dst = "0130005411234618" > > Asterisk-Dst-Ctx = "INC_CALLS" > > Asterisk-Clid = ""sipp" > <5502222272>" > > Asterisk-Chan = "SIP/5060-0972ae58" > > Asterisk-Dst-Chan > "SIP/TO_ITSP1-0972f830" > > Asterisk-Last-App = "Dial" > > Asterisk-Last-Data > "SIP/005411234618 at TO_ITSP1" > > Asterisk-Start-Time = "2009-01-30 14:51:23 > +0000" > > Asterisk-Answer-Time = "2009-01-30 14:51:28 > +0000" > > Asterisk-End-Time = "2009-01-30 14:52:50 > +0000" > > Asterisk-Duration = 87 > > Asterisk-Bill-Sec = 82 > > Asterisk-Disposition = "ANSWERED" > > Asterisk-AMA-Flags = "DOCUMENTATION" > > Asterisk-Unique-ID = "1233327083.102" > > Asterisk-User-Field > "B2BUA-PROVIDER-PRUEBAS" > > User-Name = "SIP/5060-0972ae58" > > Acct-Session-Id = "1233327083.102" > > NAS-Port = 0 > > Acct-Delay-Time = 0 > > NAS-IP-Address = 10.10.149.211 > > > > Fri Jan 30 23:34:08 1998: DEBUG: Handling request with > Handler > 'Request-Type = Accounting-Request' > > Fri Jan 30 23:34:08 1998: DEBUG: Deleting session for > SIP/5060-0972ae58, 10.10.149.211, 0 > > Fri Jan 30 23:34:08 1998: DEBUG: Handling with > AuthINTERNAL: > > Fri Jan 30 23:34:08 1998: DEBUG: AuthBy INTERNAL result: > ACCEPT, Fixed > by DefaultResult > > Fri Jan 30 23:34:08 1998: DEBUG: Accounting accepted > > Fri Jan 30 23:34:08 1998: DEBUG: Packet dump: > > *** Sending to 10.10.149.211 port 56844 .... > > Code: Accounting-Response > > Identifier: 129 > > Authentic: > <237>U<254>W<129><156><159>D<153>A$<209><233>`G<9> > > Attributes: > > > > Fri Jan 30 23:34:08 1998: DEBUG: Packet dump: > > *** Received from 10.10.149.211 port 56844 .... > > Code: Accounting-Request > > Identifier: 129 > > Authentic: > <237>U<254>W<129><156><159>D<153>A$<209><233>`G<9> > > Attributes: > > Acct-Status-Type = Stop > > Asterisk-Acc-Code = "TO_PROVIDER" > > Asterisk-Src = "5502222272" > > Asterisk-Dst = "0130005411234618" > > Asterisk-Dst-Ctx = "INC_CALLS" > > Asterisk-Clid = ""sipp" > <5502222272>" > > Asterisk-Chan = "SIP/5060-0972ae58" > > Asterisk-Dst-Chan > "SIP/TO_ITSP1-0972f830" > > Asterisk-Last-App = "Dial" > > Asterisk-Last-Data > "SIP/005411234618 at TO_ITSP1" > > Asterisk-Start-Time = "2009-01-30 14:51:23 > +0000" > > Asterisk-Answer-Time = "2009-01-30 14:51:28 > +0000" > > Asterisk-End-Time = "2009-01-30 14:52:50 > +0000" > > Asterisk-Duration = 87 > > Asterisk-Bill-Sec = 82 > > Asterisk-Disposition = "ANSWERED" > > Asterisk-AMA-Flags = "DOCUMENTATION" > > Asterisk-Unique-ID = "1233327083.102" > > Asterisk-User-Field > "B2BUA-PROVIDER-PRUEBAS" > > User-Name = "SIP/5060-0972ae58" > > Acct-Session-Id = "1233327083.102" > > NAS-Port = 0 > > Acct-Delay-Time = 0 > > NAS-IP-Address = 10.10.149.211 > > > > Fri Jan 30 23:34:08 1998: INFO: Duplicate request id 129 > received from > 10.10.149.211(56844): ignored > > > > Fri Jan 30 23:34:08 1998: DEBUG: Packet dump: > > *** Received from 10.10.149.211 port 56844 .... > > Code: Accounting-Request > > Identifier: 129 > > Authentic: > <237>U<254>W<129><156><159>D<153>A$<209><233>`G<9> > > Attributes: > > Acct-Status-Type = Stop > > Asterisk-Acc-Code = "TO_PROVIDER" > > Asterisk-Src = "5502222272" > > Asterisk-Dst = "0130005411234618" > > Asterisk-Dst-Ctx = "INC_CALLS" > > Asterisk-Clid = ""sipp" > <5502222272>" > > Asterisk-Chan = "SIP/5060-0972ae58" > > Asterisk-Dst-Chan > "SIP/TO_ITSP1-0972f830" > > Asterisk-Last-App = "Dial" > > Asterisk-Last-Data > "SIP/005411234618 at TO_ITSP1" > > Asterisk-Start-Time = "2009-01-30 14:51:23 > +0000" > > Asterisk-Answer-Time = "2009-01-30 14:51:28 > +0000" > > Asterisk-End-Time = "2009-01-30 14:52:50 > +0000" > > Asterisk-Duration = 87 > > Asterisk-Bill-Sec = 82 > > Asterisk-Disposition = "ANSWERED" > > Asterisk-AMA-Flags = "DOCUMENTATION" > > Asterisk-Unique-ID = "1233327083.102" > > Asterisk-User-Field > "B2BUA-PROVIDER-PRUEBAS" > > User-Name = "SIP/5060-0972ae58" > > Acct-Session-Id = "1233327083.102" > > NAS-Port = 0 > > Acct-Delay-Time = 0 > > NAS-IP-Address = 10.10.149.211 > > > > Fri Jan 30 23:34:08 1998: INFO: Duplicate request id 129 > received from > 10.10.149.211(56844): ignored > > > > I don't understand why this always happened when I > reach 100 simm calls > and above. > > It seems that asterisk is sending the 3 packets but I do > not why. > > Hope someone can help me. > > > > Regards, > > Ricardo.- >