Appendix A. Examples of RADIUS communication

Link copied to clipboard

Failed login (Authentication failure)

Link copied to clipboard

Authentication request

Link copied to clipboard
NAS-IP-Address = '193.38.81.226'
User-Name  = '11380441234567'
Calling-Station-Id = '11380441234567'
Service-Type = '15'
h323-conf-id = 'BEEF0960 159C48A3 5CA4966B 7536B52C'
call-id = '94fef899-3f606c5c@192.168.192.59'
Digest-Username = '11380441234567'
Digest-Realm = '193.38.81.226'
Digest-Nonce = '1373028145:4ed5168d6120ae148bc32520fdf6bba2'
Digest-URI = 'sip:193.38.81.226'
Digest-Method = 'REGISTER'
Digest-Algorithm = 'MD5'
Digest-Response = '1984af4a0e13ceb54ae86e015e934bc5'
h323-remote-address = '192.168.192.59'
NAS-Port = '5060'

Authentication reject response

Link copied to clipboard
Reply-Message = Failed - Invalid Account number
h323-return-code = 1
h323-ivr-in = ErrorExplanation:invalid_account

Failed outgoing call (Authorization failure)

Link copied to clipboard

Authorization request

Link copied to clipboard
NAS-IP-Address = '193.38.81.226'
User-Name = '380441234567'
Called-Station-Id = '91245684289'
Calling-Station-Id = '380441234567'
h323-conf-id = 'BC0050CE E4B011E2 B062000C 29E9476D'
call-id  = 'f7442be6-3c18ddd@192.168.192.59'
Digest-Username = '380441234567'
Digest-Realm = '193.38.81.226'
Digest-Nonce = '51bec9bb7e2276edaf48b8572a3f72300ec0'
Digest-URI = 'sip:91245684289@193.38.81.226'
Digest-Method = 'INVITE'
Digest-Algorithm = 'MD5'
Digest-Response = '35139c9d1c67dd3192a02158d93eea50'
h323-remote-address = '192.168.192.59'
h323-session-protocol = 'sipv2'
h323-ivr-out = 'PortaBilling_AuthMethod:INVITE'
PortaOne-Service-Features = 'routing=1;version=25.0'
h323-ivr-out = 'PortaBilling_Seed:2912511541'
PortaOne-Calling-Party = 'name=380441234567'
h323-ivr-out = 'PortaSIP_Aux_Info:auth_life=134455/1/0;auth_cnt=1;CC_now=134455/1;pid=17785;request_type=routing'
NAS-Port  = '5060'

Authorization reject response

Link copied to clipboard
Reply-Message = Failed - Called number blocked
h323-return-code = 9
h323-ivr-in = ErrorExplanation:cld_blocked
h323-ivr-in = Product:EasyCall Residential
h323-ivr-in = Tariff:EasyCall Residential
h323-ivr-in = PortaBilling_NodeId:193.38.81.226
h323-ivr-in = PortaBilling_AccessCode:OUTGOING
h323-ivr-in = PortaBilling_Seed:1599467173
h323-billing-model = 0
h323-currency = USD
h323-preferred-lang = en

Successful prepaid card IVR session

Link copied to clipboard

Authentication request

Link copied to clipboard
NAS-IP-Address  = '164.9.9.100'
NAS-Port-Type = 'Async'
User-Name = '10086610975'
Calling-Station-Id  = '6045550193'
Service-Type = 'Login-User'
h323-conf-id = '39AE126B CD4D11DB 958E0014 1C3F6886'
Password = ''
h323-ivr-out = 'PortaBilling_AccessCode:6045551600'
h323-ivr-out = 'transactionID:526267'
NAS-Port = '0'
NAS-Port-Id = 'ISDN 3/0:D:13'

Authentication response

Link copied to clipboard
h323-credit-amount = 10.00
h323-billing-model = 1
h323-ivr-in = Tariff:PrepaidCard
h323-ivr-in = PortaBilling_AccountBalance:10.00000
h323-ivr-in = PortaBilling_ProductBreakage:0.00000
h323-ivr-in = available-funds:10.00
h323-return-code = 0
h323-currency = CAD
h323-preferred-lang = en

Authorization request

Link copied to clipboard
NAS-IP-Address = '164.9.9.100'
User-Name = '10086610975'
Called-Station-Id = '01182623634515'
Calling-Station-Id = '6045550193'
Service-Type = 'Login-User'
h323-conf-id = '39AE126B CD4D11DB 958E0014 1C3F6886'
Password = ''
h323-ivr-out = 'PortaBilling_Seed:18879071672'
h323-ivr-out = 'PortaBilling_Original_CLD:6045551600'
h323-ivr-out = 'transactionID:526273'

Authorization response

Link copied to clipboard
h323-billing-model = 1
h323-ivr-in = Tariff:PrepaidCard
h323-ivr-in = PortaBilling_CompleteNumber:82623634515
h323-ivr-in = PortaBilling_Auth_CLD:82623634515
h323-ivr-in = PortaBilling_Auth_Reseller_CLD:82623634515
h323-ivr-in = DURATION:30000
h323-return-code = 0
h323-currency = CAD
h323-credit-time = 30000
h323-preferred-lang = en

Accounting request (outgoing call leg)

Link copied to clipboard
NAS-IP-Address = '164.9.9.100'
User-Name  = '10086610975'
Called-Station-Id = '82623634515'
Calling-Station-Id = '6045550193'
Acct-Status-Type = 'Stop'
Service-Type = 'Login-User'
h323-call-origin = 'originate'
h323-call-type = 'VoIP'
h323-setup-time = '00:16:18.192 PST Fri Mar 9 2007'
h323-connect-time = '00:16:21.164 PST Fri Mar 9 2007'
h323-disconnect-time = '00:17:31.893 PST Fri Mar 9 2007'
h323-disconnect-cause = '10'
h323-conf-id = '39AE126B CD4D11DB 958E0014 1C3F6886'
call-id = '4A65E46C-CD4D11DB-886EDEBF-7AF0CBAB@164.9.9.100'
h323-incoming-conf-id  = '39AE126B CD4D11DB 958E0014 1C3F6886'
h323-ivr-out = 'PortaBilling_Original_CLD:6045551600'
h323-ivr-out = 'PortaBilling_Seed:18879071672'
h323-remote-address = '164.9.9.101'
remote-media-address = '164.9.9.101'

Accounting request (incoming call leg)

Link copied to clipboard
NAS-IP-Address = '164.9.9.100'
NAS-Port-Type = 'Async'
User-Name = '10086610975'
Called-Station-Id = '6045551600'
Calling-Station-Id = '6045550193'
Acct-Status-Type = 'Stop'
Service-Type = 'Login-User'
h323-call-origin = 'answer'
h323-call-type = 'Telephony'
h323-setup-time = '00:15:50.148 PST Fri Mar 9 2007'
h323-connect-time = '00:15:50.156 PST Fri Mar 9 2007'
h323-disconnect-time = '00:17:31.889 PST Fri Mar 9 2007'
h323-disconnect-cause = '10'
h323-conf-id = '39AE126B CD4D11DB 958E0014 1C3F6886'
h323-incoming-conf-id = '39AE126B CD4D11DB 958E0014 1C3F6886'
h323-ivr-out = 'PortaBilling_Session:unlock'
h323-ivr-out = 'Tariff:Unknown'
NAS-Port = '0'
NAS-Port-Id = 'ISDN 3/0:D:13'

SIP routing request

Link copied to clipboard

Authorization request

Link copied to clipboard
NAS-IP-Address = '193.28.87.217'
User-Name = '193.38.81.226'
Called-Station-Id = '12125468754'
Calling-Station-Id = '380441234567'
h323-conf-id = 'FD0158BA E2F911E2 B062000C 29E9476D'
call-id = '482bb2cb-aa0eada5@192.168.192.59~1o'
Password = 'cisco'
h323-remote-address = '193.38.81.226'
h323-session-protocol = 'sipv2'
h323-ivr-out = 'PortaBilling_AuthMethod:INVITE'
PortaOne-Service-Features = 'routing=1;version=25.0'
h323-ivr-out = 'PortaBilling_Seed:2567011031'
PortaOne-Calling-Party = 'id=380441234567;name=11380441234567'
h323-ivr-out = 'PortaBilling_Ignore_Password:YES'
h323-ivr-out = 'PortaSIP_Aux_Info:auth_life=164498/1/0;auth_cnt=1;CC_now=164498/1;pid=19218;request_type=routing'
NAS-Port = '5060'

Authorization response

Link copied to clipboard
h323-return-code = 13
h323-ivr-in = PortaBilling_CompleteNumber:12125468754
h323-ivr-in = Product:PortaOne Internal
h323-ivr-in = Tariff:Internal
h323-ivr-in = PortaBilling_NodeId:193.38.81.217
h323-ivr-in = PortaBilling_AccessCode:OUTGOING
h323-ivr-in = PortaBilling_Seed:2567011031
h323-ivr-in = PortaBilling_RatePattern:12125468754
h323-ivr-in = PortaBilling_Authorize:base=session-time;avail=-1;expires=1373028131
h323-billing-model = 0
PortaOne-Service-Features = moh=1;rec=2;rtpp-level=3
PortaOne-Calling-Party = name=11380441234567;id=380441234567;display-id=380441234567
h323-currency = USD
h323-preferred-lang = en
Framed-Route = r=;g-hunt=seq
Framed-Route = P_=;g-hunt=skip;expires=300;patience=20
Framed-Route = p__=65.174.119.133;auth=AA14CF3595B86BF7B1C7B0458626C288DD5B4191C0B759A3
Framed-Route = p__=69.25.184.13;rtpp-level=3

Callback session

Link copied to clipboard

First call leg authorization

Link copied to clipboard
NAS-IP-Address  = "142.179.71.220"
User-Name = "00099900113"
Called-Station-Id = "00099900113"
Calling-Station-Id = "00099900113"
h323-conf-id = "2F01F3F6 B89192B8 711B0000 1C7A0F2A "
Password = "secret"
h323-remote-address = "193.28.87.193"
h323-ivr-out = "PortaBilling_OriginalCLD:555333"
h323-ivr-out = "PortaBilling_AuthMethod:INVITE"
h323-ivr-out = "PortaBilling_Seed:4094388346"
Message-Authenticator = '84C47B0BDC12887A60D2C5167C740A'

Second call leg authorization

Link copied to clipboard
NAS-IP-Address = "142.179.71.220"
User-Name = "00099900113"
Called-Station-Id = "00099900111"
Calling-Station-Id = "00099900222"
h323-conf-id = "2F01F3F6 B89192B8 711B0000 1C7A0F2A"
Password = "secret"
h323-ivr-out = "PortaBilling_OriginalCLD:OUT"
h323-ivr-out = "PortaBilling_AuthMethod:INVITE"
h323-ivr-out = PortaBilling_Notify:another_cld=00099900113;another_orig_cld=555333;in_progess=13"
h323-ivr-out = "PortaBilling_Seed:4094388346"
Message-Authenticator = '12C47B0B16412247A60D2C5167C718C'

Second call leg 1, accounting for failed call attempt

Link copied to clipboard
NAS-IP-Address = 142.179.71.220
h323-call-origin = "originate"
h323-call-type = "VoIP"
h323-setup-time = "11:34:20.677 GMT Fri Feb 23 2007"
User-Name = "00099900113"
Calling-Station-Id = "00099900113"
Called-Station-Id = "000999002222"
h323-incoming-conf-id  = "2F01F3F6 B89192B8 711B0000 1C7A0F2A"
h323-conf-id = "11111111 B89192B8 711B0000 1C7A0F2A"
Acct-Session-Id = "B89192B8-66BC43D89"
h323-disconnect-time = "11:34:30.677 GMT Fri Feb 23 2007"
h323-connect-time = "11:34:30.677 GMT Fri Feb 23 2007"
h323-ivr-out  = “PortaBilling_Seed:4094388346”
h323-remote-address = "10.28.87.193"
h323-ivr-out  = "PortaBilling_OriginalCLD:OUT"
Acct-Session-Time  = 0
h323-disconnect-cause = "1C"
Acct-Status-Type = Stop

Second call leg, accounting for connected call

Link copied to clipboard
NAS-IP-Address = 142.179.71.220
h323-call-origin = "originate"
h323-call-type = "VoIP"
h323-setup-time = "11:34:35.677 GMT Fri Feb 23 2007"
User-Name = "00099900113"
Calling-Station-Id = "00099900113"
Called-Station-Id  = "00099900222"
h323-incoming-conf-id  = "2F01F3F6 B89192B8 711B0000 1C7A0F2A"
h323-conf-id  = "11111111 B89192B8 711B0000 1C7A0F2A"
Acct-Session-Id  = "B89192B8-66BC43D89"
h323-disconnect-time = "11:34:30.677 GMT Fri Feb 23 2007"
h323-connect-time = "11:36:32.677 GMT Fri Feb 23 2007"
h323-ivr-out = "PortaBilling_Seed:4094388346"
h323-remote-address  = "10.28.87.200"
h323-ivr-out = "PortaBilling_OriginalCLD:OUT"
Acct-Session-Time = 122
h323-disconnect-cause = "0"
Acct-Status-Type = Stop

First call leg accounting

Link copied to clipboard
NAS-IP-Address = 142.179.71.220
h323-call-origin = "originate"
h323-call-type = "VoIP"
h323-setup-time = "11:33:38.677 GMT Fri Feb 23 2007"
User-Name = "00099900113"
Calling-Station-Id = "00099900113"
Called-Station-Id = "00099900113"
h323-ivr-out = PortaBilling_CallbackHistory:START
h323-ivr-out = PortaBilling_CallbackHistory:ATTEMPT
h323-ivr-out = PortaBilling_CallbackHistory:ATTEMPT
h323-ivr-out = PortaBilling_CallbackHistory:OK
h323-conf-id = "2F01F3F6 B89192B8 711B0000 1C7A0F2A"
Acct-Session-Id = "B89192B8-66BC43D89"
h323-disconnect-time = "11:34:18.677 GMT Fri Feb 23 2007"
h323-connect-time = "11:35:18.677 GMT Fri Feb 23 2007"
h323-ivr-out = "PortaBilling_Seed:4094388346"
h323-remote-address = "10.28.87.200"
h323-ivr-out = "PortaBilling_OriginalCLD:555333"
Acct-Session-Time = 60
h323-disconnect-cause = "0"
Acct-Status-Type = Stop
Acct-Delay-Time = 0

Voucher recharge session

Link copied to clipboard

Voucher recharge request

Link copied to clipboard
NAS-IP-Address = '127.0.0.102'
User-Name = '02001'
Calling-Station-Id  = '02001'
h323-conf-id = '01010101 00000000 00000000 00000012'
h323-conf-id = 'PortaBilling_Session:ignore'
h323-ivr-out = 'PortaBilling_Mod_ivrutil:action=rechargeVoucher;id=111222336'
h323-ivr-out = 'PortaBilling_Original_CLD:01inbound'
h323-ivr-out = 'PortaBilling_Ignore_Password:YES’

Voucher recharge response

Link copied to clipboard
h323-ivr-in = PortaBilling_AccessCode:01inbound
h323-ivr-in = 'PortaBilling_Mod_ivrutil:action=rechargeVoucher;amount=50.00000'
h323-ivr-in = PortaBilling_RechargedAmount:50.00000
h323-ivr-in = Tariff:T_SubService_1
h323-ivr-in = available-funds:60.00
h323-return-code = 0
h323-credit-amount  = 60.00
h323-currency = USD
h323-preferred-lang = en

Music download service requests

Link copied to clipboard

Authorization request

Link copied to clipboard
NAS-IP-Address  = '192.168.100.50'
User-Name = '0101'
Password = 'secret'
Called-Station-Id  = 'JAZZ'
h323-conf-id = 'A5D3B74C D26411DC 98D5001D 090C82FA'
PortaOne-Service-Type  = Quantity

Authorization response (for credit account without credit limit)

Link copied to clipboard
h323-billing-model  = 0
h323-ivr-in  = Tariff:Music Account
h323-ivr-in  = PortaBilling_CompleteNumber:JAZZ
h323-ivr-in  = PortaBilling_Auth_CLD:JAZZ
h323-return-code = 13
h323-currency = USD
h323-preferred-lang = en
Message-Authenticator = '1D86D5B0BDC33987A60D5C6167B13D91'

Authorization response (for debit account)

Link copied to clipboard
h323-billing-model  = 1
h323-ivr-in  = Tariff:Music Account
h323-ivr-in  = DURATION:10
h323-ivr-in  = PortaBilling_CompleteNumber:JAZZ
h323-ivr-in  = PortaBilling_Auth_CLD:JAZZ
h323-return-code = 0
h323-currency = USD
h323-credit-time  = 10
h323-preferred-lang = en

Accounting request

Link copied to clipboard
NAS-IP-Address  = '192.168.100.50'
User-Name  = '0101'
Called-Station-Id  = 'JAZZ'
Acct-Status-Type = 'Stop'
h323-call-origin  = 'originate'
h323-call-type  = 'Telephony'
h323-setup-time  = '07:18:35.965 GMT Mon Feb 6 2008'
h323-connect-time  = '07:18:43.965 GMT Mon Feb 6 2008'
h323-disconnect-time  = '08:11:38.965 GMT Mon Feb 6 2008'
h323-disconnect-cause = '0'
h323-conf-id  = 'A5D3B74C D26411DC 98D5001D 090C82FA'
Acct-Session-Id  = 'da6b76'
Acct-Session-Time  = '3175'
PortaOne-Service-Type = Quantity
h323-ivr-out  = 'Used-Service-Unit:1'

Internet session

Link copied to clipboard

Authorization request

Link copied to clipboard
NAS-IP-Address  = '41.213.1.32'
NAS-Port-Type = 'Ethernet'
User-Name  = 'GP4899@ibhighspeed.co.za'
Called-Station-Id = 'pppoe-service1'
Calling-Station-Id = 'E4:8D:8C:EE:1A:26'
Service-Type = 'Framed-User'
Mikrotik-Realm = 'ibhighspeed.co.za'
Unknown-Attribute = 'unknown vendor: attr {311, 10, 0, 17, "ibhighspeed.co.za"}'
Framed-Protocol = 'PPP'
Event-Timestamp = '1514299872'
NAS-Identifier = 'WDSL_PPPoE2_MDC'
Password = 'password1'
NAS-Port = '15760440'
NAS-Port-Id = 'vlan140'

Authorization response

Link copied to clipboard
Service-Type = 'Framed-User'
Session-Timeout = '0'
Ascend-Data-Rate = '20000000'
Idle-Timeout = '86400'
Framed-IP-Address = '41.213.82.27'
Ascend-Xmit-Rate = '20000000'
Framed-IP-Netmask = '255.255.255.255'
Framed-MTU = '1500'

Start Accounting request

Link copied to clipboard
NAS-IP-Address = '41.213.1.32'
NAS-Port-Type = 'Ethernet'
User-Name  = 'GP4899@ibhighspeed.co.za'
Called-Station-Id  = 'pppoe-service1'
Calling-Station-Id = 'E4:8D:8C:EE:1A:26'
Acct-Status-Type = 'Start'
Service-Type  = 'Framed-User'
Acct-Session-Id  = '81707b87'
Acct-Delay-Time = '0'
Mikrotik-Realm  = 'ibhighspeed.co.za'
Unknown-Attribute  = 'unknown vendor: attr {311, 10, 0, 17, "ibhighspeed.co.za"}'
Acct-Authentic = 'RADIUS'
NAS-Port-Id  = 'vlan140'
Framed-Protocol = 'PPP'
NAS-Identifier = 'WDSL_PPPoE2_MDC'
Event-Timestamp = '1514299872'
Framed-IP-Address = '41.213.82.27'
NAS-Port = '15760440'

Keep-Alive Accounting request

Link copied to clipboard
NAS-IP-Address = '41.213.1.32'
NAS-Port-Type = 'Ethernet'
User-Name = 'GP4899@ibhighspeed.co.za'
Called-Station-Id  = 'pppoe-service1'
Calling-Station-Id  = 'E4:8D:8C:EE:1A:26'
Acct-Status-Type = 'Alive'
Service-Type = 'Framed-User'
Acct-Session-Id = '81707b87'
Acct-Input-Octets = '1013118'
Acct-Output-Octets = '599107'
Acct-Input-Packets = '3494'
Acct-Output-Packets = '3082'
Acct-Session-Time = '1800'
Acct-Delay-Time = '0'
Mikrotik-Realm = 'ibhighspeed.co.za'
Unknown-Attribute = 'unknown vendor: attr {311, 10, 0, 17, "ibhighspeed.co.za"}'
Idle-Timeout  = '86400'
NAS-Identifier  = 'WDSL_PPPoE2_MDC'
Framed-IP-Address  = '41.213.82.27'
Session-Timeout  = '0'
Unknown-Attribute  = 'unknown code: attr {0, 197, 0, 4, "\0011-\000"}'
Acct-Output-Gigawords = '0'
Acct-Authentic  = 'RADIUS'
NAS-Port-Id  = 'vlan140'
Framed-Protocol  = 'PPP'
Event-Timestamp  = '1514301672'
Acct-Input-Gigawords = '0'
Ascend-Xmit-Rate = '20000000'
NAS-Port = '15760440'

Stop Accounting request

NAS-IP-Address = '41.213.1.32'
NAS-Port-Type = 'Ethernet'
User-Name = 'GP4899@ibhighspeed.co.za'
Called-Station-Id = 'pppoe-service1'
Calling-Station-Id = 'E4:8D:8C:EE:1A:26'
Acct-Status-Type = 'Stop'
Service-Type = 'Framed-User'
Acct-Session-Id = '81707b87'
Acct-Input-Octets = '2668094'
Acct-Output-Octets = '65615636'
Acct-Input-Packets = '20697'
Acct-Output-Packets = '52139'
Acct-Session-Time = '3725'
Acct-Delay-Time = '0'
Mikrotik-Realm = 'ibhighspeed.co.za'
Unknown-Attribute = 'unknown vendor: attr {311, 10, 0, 17, "ibhighspeed.co.za"}'
Idle-Timeout = '86400'
Acct-Terminate-Cause = 'Lost-Carrier'
NAS-Identifier = 'WDSL_PPPoE2_MDC'
Framed-IP-Address = '41.213.82.27'
Session-Timeout = '0'
Unknown-Attribute = 'unknown code: attr {0, 197, 0, 4, "\0011-\000"}'
Acct-Output-Gigawords = '0'
Acct-Authentic = 'RADIUS'
NAS-Port-Id  = 'vlan140'
Framed-Protocol  = 'PPP'
Event-Timestamp  = '1514303597'
Acct-Input-Gigawords  = '0'
Ascend-Xmit-Rate  = '20000000'
NAS-Port  = '15760440'

xDR import post-processing

Link copied to clipboard

Accounting request, originate leg

Link copied to clipboard
NAS-IP-Address = 127.0.0.101
NAS-Port-Id = IMPORT 01
User-Name = 01004
Called-Station-Id = 01020
Calling-Station-Id = 01004
Acct-Status-Type = Stop
PortaOne-Service-Type = Voice
h323-call-origin = originate
h323-call-type = Telephony
PortaOne-Service-Features = charge-report=1
h323-setup-time = 10:44:24.000 CEST Mon Mar 30 2009
h323-connect-time = 10:44:34.000 CEST Mon Mar 30 2009
h323-disconnect-time = 10:48:24.000 CEST Mon Mar 30 2009
h323-conf-id = 01010101 00000000 00000000 16000023
Acct-Session-Time = 230
Acct-Delay-Time = 86400
h323-ivr-out = PortaBilling_RatePattern:01020
h323-ivr-out = PortaBilling_Session:unlock

Accounting request, charge report:

Link copied to clipboard
h323-ivr-in = PortaBilling_Session:id=01010101 00000000 00000000 16000023;i_service_type=3;i_env=3;valid=1
PortaOne-Charge = type=account;storage-type=Account;charged-amount=0.00005;charged-quantity=10;i_account=500055
PortaOne-Charge = type=reseller;storage-type=Customer;charged-amount=0.00010;charged-quantity=10;i_customer=20
PortaOne-Charge = type=vendor;storage-type=Vendor;charged-amount=0.00005;charged-quantity=11;i_vendor=57

On this page