[RADIATOR] FarmSize problem

Ricardo Martinez rmartinez at redvoiss.net
Wed Nov 28 07:25:04 CST 2012


Hello Hugh.
This is the configuration file :

##########################################################################
##########
DbDir           /usr/src/Radiator-4.9
LogDir          /var/log/radiator
LogFile         %L/logfile_radius_acct
PidFile         %L/radius_acct.pid
BindAddress     10.0.0.200
AcctPort 1646
AuthPort

#Dictionary file is in the current directory
DictionaryFile %D/dictionary, %D/dictionary.digium, %D/dictionary.fs

Trace           3
LogMicroseconds
FarmSize 5


# Teles.iGate 32ch (iGate01)
<Client 10.0.0.50>
        Secret *********
        PreHandlerHook file:"%D/Attr_cisco-h323_Teles_v2"
</Client>

# Teles.iGate 16ch (iGate02)
<Client 10.0.0.23>
        Secret *********
        PreHandlerHook file:"%D/Attr_cisco-h323_Teles_v2"
</Client>

# Teles.iGate 16ch (iGate03)
<Client 10.0.0.24>
        Secret *********
        PreHandlerHook file:"%D/Attr_cisco-h323_Teles_v2"
</Client>

# Teles.iGate 32ch (iGate04)
<Client 10.0.0.43>
        Secret *********
        PreHandlerHook file:"%D/Attr_cisco-h323_Teles_v2"
</Client>

# Teles.iGate 32ch (iGate05)
<Client 10.0.0.44>
        Secret *********
        PreHandlerHook file:"%D/Attr_cisco-h323_Teles_v2"
</Client>

# Teles.iGate 32ch (iGate06)
<Client 10.0.0.45>
        Secret *********
        PreHandlerHook file:"%D/Attr_cisco-h323_Teles_v2"
</Client>

# Teles.iGate 32ch (iGate07)
<Client 10.0.0.2>
        Secret *********
        PreHandlerHook file:"%D/Attr_cisco-h323_Teles_v2"
</Client>

# Teles.iGate 32ch (iGate08)
<Client 10.0.0.3>
        Secret *********
        PreHandlerHook file:"%D/Attr_cisco-h323_Teles_v2"
</Client>

# Teles.iGate 32ch (iGate09)
<Client 10.0.0.22>
        Secret *********
        PreHandlerHook file:"%D/Attr_cisco-h323_Teles_v2"
</Client>

# Teles.iGate 32ch (iGate10)
<Client 10.0.0.21>
        Secret *********
        PreHandlerHook file:"%D/Attr_cisco-h323_Teles_v2"
</Client>

# Teles.iGate 32ch (iGate11)
<Client 10.0.0.20>
        Secret *********
        PreHandlerHook file:"%D/Attr_cisco-h323_Teles_v2"
</Client>

# Teles.iGate 32ch (iGate12)
<Client 10.0.0.58>
        Secret *********
        PreHandlerHook file:"%D/Attr_cisco-h323_Teles_v2"
</Client>

# Teles.iGate 32ch (iGate13)
<Client 10.0.0.59>
        Secret *********
        PreHandlerHook file:"%D/Attr_cisco-h323_Teles_v2"
</Client>

# Teles.iGate 32ch (iGate14)
<Client 10.0.0.4>
        Secret *********
        PreHandlerHook file:"%D/Attr_cisco-h323_Teles_v2"
</Client>

# Teles.iGate 32ch (iGate15)
<Client 10.0.0.60>
        Secret *********
        PreHandlerHook file:"%D/Attr_cisco-h323_Teles_v2"
</Client>

# Teles.iGate 32ch (iGate16)
<Client 10.0.0.6>
        Secret *********
        PreHandlerHook file:"%D/Attr_cisco-h323_Teles_v2"
</Client>

# Teles.iGate 32ch (iGate17)
#<Client 190.82.93.171>
<Client 10.0.0.38>
        Secret *********
        PreHandlerHook file:"%D/Attr_cisco-h323_Teles_v2"
</Client>

# Teles.iGate 32ch (iGate18)
<Client 10.0.0.7>
        Secret *********
        PreHandlerHook file:"%D/Attr_cisco-h323_Teles_v2"
</Client>

# Teles.iGate 32ch (iGate19)
<Client 10.0.0.61>
        Secret *********
        PreHandlerHook file:"%D/Attr_cisco-h323_Teles_v2"
</Client>

# Teles.iGate 32ch (iGate20)
<Client 10.0.0.35>
        Secret *********
        PreHandlerHook file:"%D/Attr_cisco-h323_Teles_v2"
</Client>

# Teles.iGate 32ch (iGate21)
<Client 10.0.0.36>
        Secret *********
        PreHandlerHook file:"%D/Attr_cisco-h323_Teles_v2"
</Client>

# Teles.iGate 32ch (iGate22)
<Client 10.0.0.62>
        Secret *********
        PreHandlerHook file:"%D/Attr_cisco-h323_Teles_v2"
</Client>

# Teles.iGate 32ch (iGate23)
<Client 10.0.0.132>
        Secret *********
        PreHandlerHook file:"%D/Attr_cisco-h323_Teles_v2"
</Client>

# Asterisk B2BUA (B2BUA)
<Client 10.0.0.126>
        Secret b2buasecret
        PreHandlerHook file:"%D/AttrB2BUA_cisco-h323"
</Client>

# Freeswitch 01 B2BUA OUT
<Client 10.0.0.145>
        Secret frswsecretkey
        PreHandlerHook file:"%D/freeswitch_date_handle"
        StripFromRequest h323-call-origin
        AddToRequest
h323-call-origin="answer",h323-call-type="VoIP",h323-gw-id="FS_B2BUA01_OUT
",h323-conf-id=%{Freeswitch-Source}
        AddToRequestIfNotExist h323-connect-time=%{h323-disconnect-time}
</Client>

# Asterisk B2BUA03 (B2BUA03)
<Client 10.0.0.123>
        Secret b2buasecret
        PreHandlerHook file:"%D/AttrB2BUA_cisco-h323"
</Client>

# Asterisk B2BUA05 (B2BUA05)
<Client 10.0.0.132>
        Secret b2buasecret
        PreHandlerHook file:"%D/AttrB2BUA_cisco-h323"
</Client>

# Asterisk B2BUA07 (B2BUA07)
<Client 10.0.0.135>
        Secret b2buasecret
        PreHandlerHook file:"%D/AttrB2BUA_cisco-h323"
</Client>

# VOISS Sip Trunk Out 01 (RVSIPT01)
<Client 10.0.0.150>
        Secret siptrunkoutsecret
        PreHandlerHook file:"%D/AttrRVSIPT_cisco-h323"
</Client>

# Cisco GW Citroen (WG_Citroen_Clone)
<Client 10.0.0.73>
        Secret GW_PSTN_CITROEN
        PreHandlerHook file:"%D/Attr_cisco-h323"
</Client>

# Cisco GW Citroen 2012 (AP250CITROEN2012)
<Client 10.0.0.87>
        Secret ap2520citroen
        PreHandlerHook file:"%D/Attr_cisco-h323_v3"
</Client>

# Check NRPE Nagios
<Client 10.0.0.200>
        Secret nrpecheckkey
        PreHandlerHook file:"%D/Attr_cisco-h323"
</Client>

# B2BUA EDGE
<Client 10.0.0.130>
        Secret sippyedgeacct
        PreHandlerHook file:"%D/AttrRVSASBC_cisco-h323"
</Client>

# Global Variables

DefineFormattedGlobalVar        DBsysdate       sysdate

# handler para usuarios virtual

<Handler Request-Type = Accounting-Request, Acct-Status-Type = Start>
        <AuthBy INTERNAL>
                DefaultResult ACCEPT
        </AuthBy>
</Handler>


<Handler Request-Type = Accounting-Request, Acct-Status-Type = Stop>
                <AuthBy SQL>
                        DBSource
dbi:mysql:table:10.0.0.212:3306
                        DBUsername              *****
                        DBAuth                  *****

                        FailureBackoffTime      10
                        Timeout                 10
                        SQLRetries              3

                        AccountingTable VOIPACCOUNTING2
                        AcctColumnDef
CALL_LEG_SETUP_TIME,h323-setup-time
                        AcctColumnDef   GATEWAY_IDENTIFIER,h323-gw-id
                        AcctColumnDef   CONNECTION_ID,h323-conf-id
                        AcctColumnDef
CALL_LEG_DIRECTION,h323-call-origin
                        AcctColumnDef   CALL_LEG_TYPE,h323-call-type
                        AcctColumnDef
CALL_LEG_CONNECT_TIME,h323-connect-time
                        AcctColumnDef
CALL_LEG_DISCONNECT_TIME,h323-disconnect-time
                        AcctColumnDef
CALL_LEG_DISCONNECT_CAUSE,h323-disconnect-cause
                        AcctColumnDef
REMOTE_GATEWAY_IP_ADDRESS,h323-remote-address
                        AcctColumnDef   VOICE_QUALITY,h323-voice-quality
                        AcctColumnDef   USER_NAME,User-Name
                        AcctColumnDef
CALLED_STATION_ID,Called-Station-Id
                        AcctColumnDef
CALLING_STATION_ID,Calling-Station-Id
                        AcctColumnDef
ACCT_STATUS_TYPE,Acct-Status-Type,integer
                        AcctColumnDef   ACCT_DELAY_TIME,Acct-Delay-Time
                        AcctColumnDef
ACCT_INPUT_OCTETS,Acct-Input-Octets
                        AcctColumnDef
ACCT_OUTPUT_OCTETS,Acct-Output-Octets
                        AcctColumnDef   ACCT_SESSION_ID,Acct-Session-Id
                        AcctColumnDef
ACCT_SESSION_TIME,Acct-Session-Time
                        AcctColumnDef
ACCT_INPUT_PACKETS,Acct-Input-Packets
                        AcctColumnDef
ACCT_OUTPUT_PACKETS,Acct-Output-Packets
                        AcctColumnDef
NAS_PORT_TYPE,NAS-Port-Type,integer
                        AcctColumnDef   ACCESS_DEVICE,h323-gw-id
                </AuthBy>

        # Log accounting to a detail file. %D is replaced by DbDir above
        AcctLogFileName %L/acct/%Y/VoIP_Acct_%Y.%m.%d.%q.csv
        AcctLogFileFormat %{Timestamp};\
                        %{h323-setup-time};\
                        %{h323-gw-id};\
                        %{h323-conf-id};\
                        %{h323-call-origin};\
                        %{h323-call-type};\
                        %{h323-connect-time};\
                        %{h323-disconnect-time};\
                        %{h323-disconnect-cause};\
                        %{h323-remote-address};\
                        %{h323-voice-quality};\
                        %{User-Name};\
                        %{Called-Station-Id};\
                        %{Calling-Station-Id};\
                        %{Acct-Status-Type};\
                        %{Acct-Delay-Time};\
                        %{Acct-Input-Octets};\
                        %{Acct-Output-Octets};\
                        %{Acct-Session-Id};\
                        %{Acct-Session-Time};\
                        %{Acct-Input-Packets};\
                        %{Acct-Output-Packets};\
                        %{NAS-Port-Type};\
                        %{h323-gw-id};\
                        %{Acct-Status-Type};\
                        %{Cisco-NAS-Port};\
                        %{IMSI}


        PostProcessingHook file:"%D/NAS_Stats"

</Handler>

<StatsLog FILE>
        Interval 600
        Filename %L/statistics_acct
        Format %0:%1:%2:%7:%8:%13:%16:%19:%23
</StatsLog>


##########################################################################

The PostProcessingHook is a script that  writes different files for every
Client in the configuration file and store information about ASR,  Calls
with duration , call with duration in zero, minutes, etc.  (if you need it
I can send it).  With FarmSize 6 the PostProcessingHook start to write the
files with weird values and start to creates directories if the file is
not found.
This is part of the debug when the FarmSize is 1

Sat Nov 24 03:06:02 2012 996486: DEBUG: AuthBy SQL result: ACCEPT,
Sat Nov 24 03:06:02 2012 997110: DEBUG: Accounting accepted
Sat Nov 24 03:06:02 2012 997602: DEBUG: ***NAS_STATS: 2012112403
Sat Nov 24 03:06:02 2012 997961: DEBUG: ***NAS_STATS: 03:06:02, Sat Nov
24, 2012
Sat Nov 24 03:06:02 2012 998353: DEBUG: ***NAS_STATS
Sat Nov 24 03:06:02 2012 998600: DEBUG: ***NAS_STATS: AGARRO EL ATRIBUTO -
Called_Station_Id = 02070056964243421
Sat Nov 24 03:06:02 2012 998910: DEBUG: ***NAS_STATS: AGARRO EL ATRIBUTO -
Calling_Station_Id = 5101100055108
Sat Nov 24 03:06:02 2012 999152: DEBUG: ***NAS_STATS: AGARRO EL ATRIBUTO -
Acct_Session_Time = 0
Sat Nov 24 03:06:02 2012 999389: DEBUG: ***NAS_STATS: AGARRO EL ATRIBUTO -
h323_call_origin = answer
Sat Nov 24 03:06:02 2012 999625: DEBUG: ***NAS_STATS: AGARRO EL ATRIBUTO -
h323_call_type = VoIP
Sat Nov 24 03:06:02 2012 999930: DEBUG: ***NAS_STATS: AGARRO EL ATRIBUTO -
h323_gw_id = FS_B2BUA01_OUT
Sat Nov 24 03:06:03 2012 000336: DEBUG: ***NAS_STATS: answer VoIP Call
from FS_B2BUA01_OUT
Sat Nov 24 03:06:03 2012 000610: DEBUG: ***NAS_STATS: VoIP Call 020700 =>
Stat On
Sat Nov 24 03:06:03 2012 000952: DEBUG: ***NAS_STATS: Call from
FS_B2BUA01_OUT belongs to Carrier Sistek
Sat Nov 24 03:06:03 2012 001233: DEBUG: ***NAS_STATS: Call_ID
81174541-3562725953-136419 at nxtnyc10.ivanet.net-b2b_1
Sat Nov 24 03:06:03 2012 001479: DEBUG: ***NAS_STATS: VoIP Call Direction:
OUT
Sat Nov 24 03:06:03 2012 002119: DEBUG: ***NAS_STATS:
Call_ID_data_<0_exists 0
Sat Nov 24 03:06:03 2012 002661: DEBUG: ***NAS_STATS:
Call_ID_data_car_<0_exists 0
Sat Nov 24 03:06:03 2012 003687: DEBUG: Packet dump:

And when FarmSize is 6, the different childs seems to write to the logfile
:

Wed Nov 28 10:17:40 2012 946169: DEBUG: AuthBy SQL result: ACCEPT,
Wed Nov 28 10:17:40 2012 946875: DEBUG: Accounting accepted
Wed Nov 28 10:17:40 2012 947144: DEBUG: AuthBy SQL result: ACCEPT,
Wed Nov 28 10:17:40 2012 947432: DEBUG: ***NAS_STATS: 2012112810
Wed Nov 28 10:17:40 2012 947635: DEBUG: Accounting accepted
Wed Nov 28 10:17:40 2012 947835: DEBUG: ***NAS_STATS: 10:17:40, Wed Nov
28, 2012
Wed Nov 28 10:17:40 2012 948276: DEBUG: ***NAS_STATS
Wed Nov 28 10:17:40 2012 948276: DEBUG: ***NAS_STATS: 2012112810
Wed Nov 28 10:17:40 2012 948569: DEBUG: ***NAS_STATS: 10:17:40, Wed Nov
28, 2012
Wed Nov 28 10:17:40 2012 948537: DEBUG: ***NAS_STATS: AGARRO EL ATRIBUTO -
Called_Station_Id = 0056227773512
Wed Nov 28 10:17:40 2012 948859: DEBUG: ***NAS_STATS: AGARRO EL ATRIBUTO -
Calling_Station_Id = 51011000346070114
Wed Nov 28 10:17:40 2012 949061: DEBUG: ***NAS_STATS
Wed Nov 28 10:17:40 2012 949110: DEBUG: ***NAS_STATS: AGARRO EL ATRIBUTO -
Acct_Session_Time = 0
Wed Nov 28 10:17:40 2012 949333: DEBUG: ***NAS_STATS: AGARRO EL ATRIBUTO -
Called_Station_Id = 0056222722254
Wed Nov 28 10:17:40 2012 949360: DEBUG: ***NAS_STATS: AGARRO EL ATRIBUTO -
h323_call_origin = originate
Wed Nov 28 10:17:40 2012 949584: DEBUG: ***NAS_STATS: AGARRO EL ATRIBUTO -
Calling_Station_Id = 51111000564780000
Wed Nov 28 10:17:40 2012 949609: DEBUG: ***NAS_STATS: AGARRO EL ATRIBUTO -
h323_call_type = Telephony
Wed Nov 28 10:17:40 2012 949920: DEBUG: ***NAS_STATS: AGARRO EL ATRIBUTO -
Acct_Session_Time = 35
Wed Nov 28 10:17:40 2012 949956: DEBUG: ***NAS_STATS: AGARRO EL ATRIBUTO -
h323_gw_id = MOVISTAR06_32FXO
Wed Nov 28 10:17:40 2012 950193: DEBUG: ***NAS_STATS: AGARRO EL ATRIBUTO -
h323_call_origin = originate
Wed Nov 28 10:17:40 2012 950345: DEBUG: ***NAS_STATS: Telephony Call =>
Stat On
Wed Nov 28 10:17:40 2012 950444: DEBUG: ***NAS_STATS: AGARRO EL ATRIBUTO -
h323_call_type = Telephony
Wed Nov 28 10:17:40 2012 950613: DEBUG: ***NAS_STATS: Call from
MOVISTAR06_32FXO belongs to Carrier Movistar Analog
Wed Nov 28 10:17:40 2012 950693: DEBUG: ***NAS_STATS: AGARRO EL ATRIBUTO -
h323_gw_id = MG3000_Ch2
Wed Nov 28 10:17:40 2012 950941: DEBUG: ***NAS_STATS: Call_ID
sbcsipuac.2_169.132.133.21_b53sb10_1_1_2012112808174052_1852783103_509356-
b2b_1
Wed Nov 28 10:17:40 2012 951159: DEBUG: ***NAS_STATS: Telephony Call =>
Stat On
Wed Nov 28 10:17:40 2012 951196: DEBUG: ***NAS_STATS: VoIP Call Direction:
OUT
Wed Nov 28 10:17:40 2012 951430: DEBUG: ***NAS_STATS: Call from MG3000_Ch2
belongs to Carrier Telmex Stgo
Wed Nov 28 10:17:40 2012 951683: DEBUG: ***NAS_STATS: Call_ID
b8d5aa44-b400-1230-a4bf-d485647963f6
Wed Nov 28 10:17:40 2012 952061: DEBUG: ***NAS_STATS: VoIP Call Direction:
OUT
Wed Nov 28 10:17:40 2012 952420: DEBUG: ***NAS_STATS:
Call_ID_data_<0_exists 0
Wed Nov 28 10:17:40 2012 953320: DEBUG: ***NAS_STATS:
Call_ID_data_>0_exists 0
Wed Nov 28 10:17:40 2012 953696: DEBUG: ***NAS_STATS:
Call_ID_data_car_<0_exists 0
Wed Nov 28 10:17:40 2012 954673: DEBUG: ***NAS_STATS:
Call_ID_data_car_>0_exists 0


Hope you can help me to solve this issue.
Regards,
Ricardo.-


More information about the radiator mailing list