Re: Different User Names appeared in Access Request and Accounting Request sent to Radius Server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Michal,

I am using 2.0.7. I don't use fixed name.  I show you the config file and
debug message. Thank you.


(1)config file

[Gatekeeper::Main]
Fourtytwo=42

[RoutedMode]
GKRouted=1
H245Routed=1
CallSignalPort=1720
AcceptUnregisteredCalls=1
SupportNATedEndpoints=1
Q931PortRange=30000-30199
H245PortRange=30200-30399

[GkStatus::Auth]
rule=allow

[Gatekeeper::Auth]
RadAliasAuth=required;RRQ,ARQ

[RadAliasAuth]
#Radius server IP and port for Authentication
Servers=220.246.21.34:1812
SharedSecret=mysecret
LocalInterface=220.246.21.34
AppendCiscoAttributes=1
IncludeTerminalAliases=1
IncludeEndpointIP=1

[Gatekeeper::Acct]
RadAcct=required;start,stop

[RadAcct]
Servers=220.246.21.34:1812:1813
SharedSecret=mysecret
LocalInterface=220.246.21.34
AppendCiscoAttributes=1
IncludeTerminalAliases=1
IncludeEndpointIP=1

----------------end of config file-------------------------

(2) Debug Message (extracted from gnugk.log)

2004/06/24 16:50:07.700 3  ProxyThread.cxx(503) ProxyL Connected from
218.189.236.21:1027
2004/06/24 16:50:07.761 3 ProxyChannel.cxx(417) Q931s Received: Setup
CRV=17929 from 218.189.236.21:1027
2004/06/24 16:50:07.766 2       RasTbl.cxx(1885) CallTable::Insert(CALL)
Call No. 53, total sessions : 1
2004/06/24 16:50:07.766 3     radproto.cxx(1799) RADIUS Sending PDU to
RADIUS server 220.246.21.34 (220.246.21.34:1813) from port:54919[0,216-217],
PDU: Accounting-Request, id 216
2004/06/24 16:50:07.784 3     radproto.cxx(1825) RADIUS Received PDU from
RADIUS server 220.246.21.34 (220.246.21.34:1813) by socket
port:54919[0,216-217], PDU: Accounting-Response, id 216
2004/06/24 16:50:07.784 3       gkacct.cxx(446) GKACCT RadAcct logged event
1 for call no. 53
2004/06/24 16:50:07.784 2       gkacct.cxx(486) GKACCT Successfully logged
event 1 for call no. 53
2004/06/24 16:50:07.785 3 ProxyChannel.cxx(1122) GK Call 53 is NAT type 0
2004/06/24 16:50:07.788 3  ProxyThread.cxx(79) Q931s Delete socket
218.189.236.21:1025
2004/06/24 16:50:07.788 3  ProxyThread.cxx(647) ProxyH(0) waiting...
2004/06/24 16:50:07.791 3 ProxyChannel.cxx(716) Q931(3373) Connect to
220.246.21.45:1720 successful
2004/06/24 16:50:07.926 3 ProxyChannel.cxx(417) Q931d Received:
CallProceeding CRV=17929 from 220.246.21.45:1720
2004/06/24 16:50:08.054 2       RasSrv.cxx(2224) GK Read from
220.246.21.45:1024
2004/06/24 16:50:08.056 3       RasSrv.cxx(2237) GK
admissionRequest {
    requestSeqNum = 26783
    callType = pointToPoint <<null>>
    callModel = gatekeeperRouted <<null>>
    endpointIdentifier =  9 characters {
      0036 0033 0031 0037 005f 0065 006e 0064   6317_end
      0070                                      p
    }
    destinationInfo = 1 entries {
      [0]=dialedDigits "1000"
    }
    srcInfo = 3 entries {
      [0]=h323_ID  1 characters {
        004f                                      O
      }
      [1]=h323_ID  12 characters {
        0030 0030 0033 0030 0034 0066 0032 0034   00304f24
        0037 0030 0038 0032                       7082
      }
      [2]=dialedDigits "26372221"
    }
    srcCallSignalAddress = ipAddress {
      ip =  4 octets {
        dc f6 15 22                                        ..."
      }
      port = 1720
    }
    bandWidth = 1280
    callReferenceValue = 25292
    conferenceID =  16 octets {
      02 13 4d d6 a5 71 97 0c  56 34 34 34 34 ef 00 00   ..M..q..V4444...
    }
    activeMC = FALSE
    answerCall = TRUE
    canMapAlias = FALSE
    callIdentifier = {
      guid =  16 octets {
        02 13 4d d6 a5 6f e5 08  56 34 34 34 34 ef 00 00   ..M..o..V4444...
      }
    }
    gatekeeperIdentifier =  10 characters {
      004f 0070 0065 006e 0048 0033 0032 0033   OpenH323
      0047 004b                                 GK
    }
    willSupplyUUIEs = FALSE
  }
2004/06/24 16:50:08.056 1       RasSrv.cxx(1321) GK ARQ Received
2004/06/24 16:50:08.057 3     radproto.cxx(1799) RADIUS Sending PDU to
RADIUS server 220.246.21.34 (220.246.21.34:1812) from port:19319[0,0-1],
PDU: Access-Request, id 0
2004/06/24 16:50:08.106 3     radproto.cxx(1825) RADIUS Received PDU from
RADIUS server 220.246.21.34 (220.246.21.34:1812) by socket
port:19319[0,0-1], PDU: Access-Accept, id 0
2004/06/24 16:50:08.106 3       RasSrv.cxx(1585) GK ARQ will request
bandwith of 1280
2004/06/24 16:50:08.107 3       RasSrv.cxx(1628) GK ACF: found existing call
no 53
2004/06/24 16:50:08.107 2       RasSrv.cxx(1696)
ACF|220.246.21.45:1720|6317_endp|25292|1000:dialedDigits|O:h323_ID=00304f247
082:h323_ID=26372221:dialedDigits|true;

2004/06/24 16:50:08.116 3       RasSrv.cxx(2164) GK Send to
220.246.21.45:1024
admissionConfirm {
    requestSeqNum = 26783
    bandWidth = 1280
    callModel = gatekeeperRouted <<null>>
    destCallSignalAddress = ipAddress {
      ip =  4 octets {
        dc f6 15 22                                        ..."
      }
      port = 1720
    }
    irrFrequency = 120
    willRespondToIRR = FALSE
    uuiesRequested = {
      setup = FALSE
      callProceeding = FALSE
      connect = FALSE
      alerting = FALSE
      information = FALSE
      releaseComplete = FALSE
      facility = FALSE
      progress = FALSE
      empty = FALSE
      status = FALSE
      statusInquiry = FALSE
      setupAcknowledge = FALSE
      notify = FALSE
    }
  }
2004/06/24 16:50:08.460 3 ProxyChannel.cxx(417) Q931d Received: Connect
CRV=17929 from 220.246.21.45:1720
2004/06/24 16:50:08.463 3 ProxyChannel.cxx(1682) H245 Set h245Address to
220.246.21.34:30216
2004/06/24 16:50:08.570 3 ProxyChannel.cxx(1633) H245 Connected from
218.189.236.21:1028
2004/06/24 16:50:08.572 3 ProxyChannel.cxx(1653) H245(3373) Connect to
220.246.21.45:1035 successful
2004/06/24 16:50:12.803 3  ProxyThread.cxx(79) Q931d Delete socket
220.246.21.45:1720
2004/06/24 16:50:12.804 3  ProxyThread.cxx(79) H245s Delete socket
218.189.236.21:1026
2004/06/24 16:50:13.044 3       RasTbl.cxx(1327) Gk Delete Call No. 52
2004/06/24 16:50:17.823 3  ProxyThread.cxx(79) H245d Delete socket
220.246.21.45:1034
2004/06/24 16:50:18.827 3  ProxyThread.cxx(193) H245s 218.189.236.21:1028
Error(0):  (0)
2004/06/24 16:50:18.857 3 ProxyChannel.cxx(417) Q931s Received:
ReleaseComplete CRV=17929 from 218.189.236.21:1027
2004/06/24 16:50:18.873 1       RasTbl.cxx(2061) CDR|53|02 13 4d d6 a5 6f e5
08 56 34 34 34 34 ef 00 00|10|Thu, 24 Jun 2004 16:50:08 +0800|Thu, 24 Jun
2004 16:50:18 +0800|218.189.236.21:1027|
|220.246.21.45:1720|6317_endp|1000:dialedDigits|O:h323_ID=00304f247082:h323_
ID=26372221:dialedDigits|OpenH323GK;

2004/06/24 16:50:18.874 3     radproto.cxx(1799) RADIUS Sending PDU to
RADIUS server 220.246.21.34 (220.246.21.34:1813) from port:54919[0,217-218],
PDU: Accounting-Request, id 217
2004/06/24 16:50:18.887 3     radproto.cxx(1825) RADIUS Received PDU from
RADIUS server 220.246.21.34 (220.246.21.34:1813) by socket
port:54919[0,217-218], PDU: Accounting-Response, id 217
2004/06/24 16:50:18.888 3       gkacct.cxx(446) GKACCT RadAcct logged event
2 for call no. 53
2004/06/24 16:50:18.888 2       gkacct.cxx(486) GKACCT Successfully logged
event 2 for call no. 53
2004/06/24 16:50:18.889 3  ProxyThread.cxx(672) Proxy 220.246.21.45:1035
forward blocked
2004/06/24 16:50:18.944 3  ProxyThread.cxx(672) Proxy 220.246.21.45:1035
forward blocked
2004/06/24 16:50:18.954 3  ProxyThread.cxx(193) H245d 220.246.21.45:1035
Error(0):  (0)
2004/06/24 16:50:19.123 2       RasSrv.cxx(2224) GK Read from
220.246.21.45:1024
2004/06/24 16:50:19.124 3       RasSrv.cxx(2237) GK
disengageRequest {
    requestSeqNum = 26784
    endpointIdentifier =  9 characters {
      0036 0033 0031 0037 005f 0065 006e 0064   6317_end
      0070                                      p
    }
    conferenceID =  16 octets {
      02 13 4d d6 a5 71 97 0c  56 34 34 34 34 ef 00 00   ..M..q..V4444...
    }
    callReferenceValue = 25292
    disengageReason = normalDrop <<null>>
    callIdentifier = {
      guid =  16 octets {
        02 13 4d d6 a5 6f e5 08  56 34 34 34 34 ef 00 00   ..M..o..V4444...
      }
    }
    gatekeeperIdentifier =  10 characters {
      004f 0070 0065 006e 0048 0033 0032 0033   OpenH323
      0047 004b                                 GK
    }
    answeredCall = TRUE
  }
2004/06/24 16:50:19.124 1       RasSrv.cxx(1745) GK DRQ Received
2004/06/24 16:50:19.125 2       RasSrv.cxx(1792)
DCF|220.246.21.45|6317_endp|25292|normalDrop;

2004/06/24 16:50:19.141 3       RasSrv.cxx(2164) GK Send to
220.246.21.45:1024
disengageConfirm {
    requestSeqNum = 26784
  }
2004/06/24 16:50:19.234 3  ProxyThread.cxx(193) Q931d 220.246.21.45:1720
Error(0):  (0)
2004/06/24 16:50:19.235 3  ProxyThread.cxx(647) ProxyH(0) waiting...
2004/06/24 16:50:19.235 3  ProxyThread.cxx(647) ProxyH(0) waiting...

------------------end of file----------------
Thomas


----- Original Message -----
From: "Zygmuntowicz Michal" <m.zygmuntowicz@xxxxxxx>
To: <openh323gk-users@xxxxxxxxxxxxxxxxxxxxx>
Sent: Thursday, June 24, 2004 4:30 PM
Subject: Re:  Different User Names appeared in Access
Request and Accounting Request sent to Radius Server


> What is your config? Do you use FixedUsername parameter?
> Or maybe you can show sample log with RAS/Q.931 messages
> that triggered these requests.
> You can also try the latest 2.0 cvs - I've made some significant
> changes to Username, Calling-Station-Id and Called-Station-Id
> handling. I also encourage other people to test the new code.
>
> ----- Original Message -----
> From: "Thomas Tam" <development@xxxxxxxxxxxx>
> Sent: Thursday, June 24, 2004 5:23 AM
>
>
> Hi everyone,
>
> When I try to sent Access Request and Accounting Request to Radius Server,
the user name displayed in Access Request packet is
> "1000" but that in Accounting Request packet is "O". The user name in
Accounting Request packet should display "1000" but not "O".
>
> Can somebody help me? Thank you.
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by Black Hat Briefings & Training.
> Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
> digital self defense, top technical experts, no vendor pitches,
> unmatched networking opportunities. Visit www.blackhat.com
>
> _______________________________________________________
>
> List: Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
> Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549
> Homepage: http://www.gnugk.org/
>
>



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com

_______________________________________________________

List: Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549
Homepage: http://www.gnugk.org/

[Index of Archives]     [SIP]     [Open H.323]     [Gnu Gatekeeper]     [Asterisk PBX]     [ISDN Cause Codes]     [Yosemite News]

  Powered by Linux