Version: freeradius-server-3.0.11 Environment: gnugk->radius server(local relay)->radius accouting server Module: Relay Server: Accouting with detail, Accounting Server: Accouting with linelog Issue: Special characters(UTF-8 other than Ascii) wil cause radius server not response to accounting request Accounting record on Relay Server: Tue Sep 6 19:50:10 2016 Acct-Status-Type = Stop NAS-IP-Address = 123.59.170.71 NAS-Identifier = "GnuGk" NAS-Port-Type = Virtual Service-Type = Login-User Acct-Session-Id = "57c11224000006a2" User-Name = "諞\275丿\255" Framed-IP-Address = 111.23.46.106 Acct-Session-Time = 38 Calling-Station-Id = "諞\275丿\255" Called-Station-Id = "1935" h323-conf-id = "h323-conf-id=E04D5EB6 4C02001F 14FDCE5 BA6BC861" h323-gw-id = "h323-gw-id=GnuGk" h323-call-origin = "h323-call-origin=proxy" h323-call-type = "h323-call-type=VoIP" h323-setup-time = "h323-setup-time=2016-09-06 19:49:32 UTC+0800" h323-connect-time = "h323-connect-time=2016-09-06 19:49:32 UTC+0800" h323-disconnect-time = "h323-disconnect-time=2016-09-06 19:50:10 UTC+0800" h323-disconnect-cause = "h323-disconnect-cause=10" release-source = "release-source=1" gw-rxd-cgn = "preferred-codec=Unknown" gw-final-xlated-cgn = "rewritten-e164-num=1935" Cisco-AVPair = "h323pddtime=0" Cisco-AVPair = "h323ringtime=0" Cisco-AVPair = "h323routeattempts=0" Cisco-AVPair = "h323_rtp_proxy=1" Cisco-AVPair = "RTP_source_IP=123.59.170.86" Cisco-AVPair = "RTP_destination_IP=111.23.46.106" Cisco-AVPair = "RTCP_source_packet_count=0" Cisco-AVPair = "RTCP_source_packet_lost=0" Cisco-AVPair = "RTCP_source_jitter=0|0|0" Cisco-AVPair = "RTCP_destination_packet_count=0" Cisco-AVPair = "RTCP_destination_packet_lost=0" Cisco-AVPair = "RTCP_destination_jitter=0|0|0" h323-remote-address = "h323-remote-address=123.59.170.95" Cisco-AVPair = "h323-ivr-out=h323-call-id:373B5EB6 4C02001F 14FDCE5 BA6BC861" Acct-Delay-Time = 0 Realm = "radrelay" Module-Failure-Message = "Failing proxied request for user \"諞\275丿\255\", due to lack of any response from home server 10.10.10.22 port 1813" Freeradius-Proxied-To = 10.10.10.22 Timestamp = 1473162610 Linelog Configuration: Accounting-Request { Stop = "CDR:type=h323;%{h323-connect-time};%{h323-disconnect-time};duration=%{Acct-Session-Time};sessionid=%{Acct-Session-Id};caller=%{Calling-Station- Id};callee=%{Called-Station-Id};sourceip=%{Framed-IP-Address}" } Radius Accouting Server Halted at (with -X option:) (131) # Executing section accounting from file /opt/zjcloud/conf/raddb/radiusd.conf (131) accounting { (131) linelog: EXPAND Accounting-Request.%{%{Acct-Status-Type}:-unknown} (131) linelog: --> Accounting-Request.Stop (131) linelog: EXPAND /var/zjcloud/CDR/cdr-%Y%m%d%H (131) linelog: --> /var/zjcloud/CDR/cdr-2016091316 JP
On 13 Sep 2016, at 07:32, Jiang Jianping <brightcove@foxmail.com> wrote:
Version: freeradius-server-3.0.11 Environment: gnugk->radius server(local relay)->radius accouting server Module: Relay Server: Accouting with detail, Accounting Server: Accouting with linelog
Issue: Special characters(UTF-8 other than Ascii) wil cause radius server not response to accounting request
Accounting record on Relay Server: Tue Sep 6 19:50:10 2016 Acct-Status-Type = Stop NAS-IP-Address = 123.59.170.71 NAS-Identifier = "GnuGk" NAS-Port-Type = Virtual Service-Type = Login-User Acct-Session-Id = "57c11224000006a2" User-Name = "諞\275丿\255" Framed-IP-Address = 111.23.46.106 Acct-Session-Time = 38 Calling-Station-Id = "諞\275丿\255" Called-Station-Id = "1935" h323-conf-id = "h323-conf-id=E04D5EB6 4C02001F 14FDCE5 BA6BC861" h323-gw-id = "h323-gw-id=GnuGk" h323-call-origin = "h323-call-origin=proxy" h323-call-type = "h323-call-type=VoIP" h323-setup-time = "h323-setup-time=2016-09-06 19:49:32 UTC+0800" h323-connect-time = "h323-connect-time=2016-09-06 19:49:32 UTC+0800" h323-disconnect-time = "h323-disconnect-time=2016-09-06 19:50:10 UTC+0800" h323-disconnect-cause = "h323-disconnect-cause=10" release-source = "release-source=1" gw-rxd-cgn = "preferred-codec=Unknown" gw-final-xlated-cgn = "rewritten-e164-num=1935" Cisco-AVPair = "h323pddtime=0" Cisco-AVPair = "h323ringtime=0" Cisco-AVPair = "h323routeattempts=0" Cisco-AVPair = "h323_rtp_proxy=1" Cisco-AVPair = "RTP_source_IP=123.59.170.86" Cisco-AVPair = "RTP_destination_IP=111.23.46.106" Cisco-AVPair = "RTCP_source_packet_count=0" Cisco-AVPair = "RTCP_source_packet_lost=0" Cisco-AVPair = "RTCP_source_jitter=0|0|0" Cisco-AVPair = "RTCP_destination_packet_count=0" Cisco-AVPair = "RTCP_destination_packet_lost=0" Cisco-AVPair = "RTCP_destination_jitter=0|0|0" h323-remote-address = "h323-remote-address=123.59.170.95" Cisco-AVPair = "h323-ivr-out=h323-call-id:373B5EB6 4C02001F 14FDCE5 BA6BC861" Acct-Delay-Time = 0 Realm = "radrelay" Module-Failure-Message = "Failing proxied request for user \"諞\275丿\255\", due to lack of any response from home server 10.10.10.22 port 1813" Freeradius-Proxied-To = 10.10.10.22 Timestamp = 1473162610
Linelog Configuration: Accounting-Request { Stop = "CDR:type=h323;%{h323-connect-time};%{h323-disconnect-time};duration=%{Acct-Session-Time};sessionid=%{Acct-Session-Id};caller=%{Calling-Station- Id};callee=%{Called-Station-Id};sourceip=%{Framed-IP-Address}" }
Radius Accouting Server Halted at (with -X option:)
(131) # Executing section accounting from file /opt/zjcloud/conf/raddb/radiusd.conf (131) accounting { (131) linelog: EXPAND Accounting-Request.%{%{Acct-Status-Type}:-unknown} (131) linelog: --> Accounting-Request.Stop (131) linelog: EXPAND /var/zjcloud/CDR/cdr-%Y%m%d%H (131) linelog: --> /var/zjcloud/CDR/cdr-2016091316
Yes, we saw the issue ticket... The problem is you deleted the template issue request, and failed to provide us with the information we need to fix the problem... We need you to run the server under a debugger and see exactly where it hangs. -Arran Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS Development Team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
On Sep 13, 2016, at 7:32 AM, Jiang Jianping <brightcove@foxmail.com> wrote:
Version: freeradius-server-3.0.11 Environment: gnugk->radius server(local relay)->radius accouting server Module: Relay Server: Accouting with detail, Accounting Server: Accouting with linelog
Issue: Special characters(UTF-8 other than Ascii) wil cause radius server not response to accounting request
Please describe in more detail what you're doing. i.e. What is the configuration you're using? The problem may be linelog, or it may the module after linelog. Or, it may be something external to the server. Alan DeKok.
Linelog Configuration: Accounting-Request { Stop = "CDR:type=h323;%{h323-connect-time};%{h323-disconnect-time};duration=%{Acct-Session-Time};sessionid=%{Acct-Session-Id};caller=%{Calling-Station- Id};callee=%{Called-Station-Id};sourceip=%{Framed-IP-Address}" }
Which doesn't even have User-Name in it, and therefore cannot possibly be affected by the contents of User-Name. Alan DeKok.
Hello, The problem is in "linelog_escape_func" of rlm_linelog.c. I change the special charater (which is larger than 0x80) to 'X' on linelog_escape_func, the problem disappeared. JP ------------------ 原始邮件 ------------------ 发件人: "Alan DeKok";<aland@deployingradius.com>; 发送时间: 2016年9月14日(星期三) 凌晨1:34 收件人: "FreeRadius users mailing list"<freeradius-users@lists.freeradius.org>; 主题: Re: maybe a bug: radius server did not response On Sep 13, 2016, at 7:32 AM, Jiang Jianping <brightcove@foxmail.com> wrote:
Version: freeradius-server-3.0.11 Environment: gnugk->radius server(local relay)->radius accouting server Module: Relay Server: Accouting with detail, Accounting Server: Accouting with linelog
Issue: Special characters(UTF-8 other than Ascii) wil cause radius server not response to accounting request
Please describe in more detail what you're doing. i.e. What is the configuration you're using? The problem may be linelog, or it may the module after linelog. Or, it may be something external to the server. Alan DeKok.
Linelog Configuration: Accounting-Request { Stop = "CDR:type=h323;%{h323-connect-time};%{h323-disconnect-time};duration=%{Acct-Session-Time};sessionid=%{Acct-Session-Id};caller=%{Calling-Station- Id};callee=%{Called-Station-Id};sourceip=%{Framed-IP-Address}" }
Which doesn't even have User-Name in it, and therefore cannot possibly be affected by the contents of User-Name. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Sep 13, 2016, at 10:22 PM, Jiang Jianping <brightcove@foxmail.com> wrote:
The problem is in "linelog_escape_func" of rlm_linelog.c. I change the special charater (which is larger than 0x80) to 'X' on linelog_escape_func, the problem disappeared.
That is not the problem. That's a work-around. Please show WHERE the problem is, using the guide from github. It tells you what information we need in order to fix the problem. Alan DeKok.
participants (3)
-
Alan DeKok -
Arran Cudbard-Bell -
Jiang Jianping