RE: accounting problem

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

 



Here is my gatekeeper config and log when a call established.

Why radius accounting start packet received when ringing tone is
detected!.

------------------------------------------------------------------------
----
Log file:

2004/08/14 15:36:40.275 3        ProxyThread.cxx(517)   ProxyL
Connected from 81.12.46.151:24635
2004/08/14 15:36:40.322 3       ProxyChannel.cxx(423)   Q931s
Received: Setup CRV=55 from 81.12.46.151:24635
2004/08/14 15:36:40.324 3           radproto.cxx(1813)  RADIUS  Sending
PDU to RADIUS server 81.12.46.130 (81.12.46.130:3201) from
port:53831[0,169-170], PDU: Accounting-Request, id 169
2004/08/14 15:36:40.366 3           radproto.cxx(1839)  RADIUS  Received
PDU from RADIUS server 81.12.46.130 (81.12.46.130:3201) by socket
port:53831[0,169-170], PDU: Accounting-Response, id 169
2004/08/14 15:36:40.366 3             gkacct.cxx(884)   GKACCT  RadAcct
logged event 1 for call no. 11
2004/08/14 15:36:40.367 3             gkacct.cxx(884)   GKACCT  SQLAcct
logged event 1 for call no. 11
2004/08/14 15:36:40.367 2             gkacct.cxx(924)   GKACCT
Successfully logged event 1 for call no. 11
2004/08/14 15:36:40.367 3       ProxyChannel.cxx(1188)  GK      Call 11
is NAT type 0
2004/08/14 15:36:40.368 3        ProxyThread.cxx(85)    Q931s   Delete
socket 81.12.46.151:24634
2004/08/14 15:36:40.368 3        ProxyThread.cxx(663)   ProxyH(0)
waiting...
2004/08/14 15:36:41.060 3       ProxyChannel.cxx(718)   Q931(22318)
Connect to 64.71.148.114:1720 successful
2004/08/14 15:36:42.019 3       ProxyChannel.cxx(423)   Q931d
Received: SetupAck CRV=55 from 64.71.148.114:1720
2004/08/14 15:36:42.032 3       ProxyChannel.cxx(423)   Q931s
Received: Status CRV=55 from 81.12.46.151:24635
2004/08/14 15:36:42.223 2             RasSrv.cxx(2392)  GK      Read
from 81.12.46.151:24578
2004/08/14 15:36:42.224 3             RasSrv.cxx(2405)  GK
registrationRequest {
    requestSeqNum = 35001
    protocolIdentifier = 0.0.8.2250.0.3
    nonStandardData = {
      nonStandardIdentifier = h221NonStandard {
        t35CountryCode = 181
        t35Extension = 0
        manufacturerCode = 1831
      }
      data =  7 octets {
        15 02 00 08 16 01 08                               .......
      }
    }
    discoveryComplete = TRUE
    callSignalAddress = 1 entries {
      [0]=ipAddress {
        ip =  4 octets {
          51 0c 2e 97                                        Q...
        }
        port = 1720
      }
    }
    rasAddress = 1 entries {
      [0]=ipAddress {
        ip =  4 octets {
          51 0c 2e 97                                        Q...
        }
        port = 24578
      }
    }
    terminalType = {
      gateway = {
      }
      mc = FALSE
      undefinedNode = FALSE
    }
    terminalAlias = 1 entries {
      [0]=h323_ID  7 characters {
        0074 0065 006e 006f 0072 002d 0031        tenor-1
      }
    }
    endpointVendor = {
      vendor = {
        t35CountryCode = 181
        t35Extension = 0
        manufacturerCode = 1831
      }
      productId =  64 octets {
        54 65 6e 6f 72 20 41 6e  61 6c 6f 67 20 41 38 30   Tenor Analog
A80
        30 20 4d 75 6c 74 69 70  61 74 68 20 53 77 69 74   0 Multipath
Swit
        63 68 20 2d 20 38 20 70  6f 72 74 73 20 28 52 65   ch - 8 ports
(Re
        76 2e 20 42 29 00 1e 71  4d 17 cc 32 88 16 84 33   v.
B)..qM..2...3
      }
      versionId =  32 octets {
        50 34 2d 32 2d 32 30 2d  32 38 28 4c 45 43 29 20
P4-2-20-28(LEC)
        28 31 37 32 30 30 38 34  2f 30 78 36 38 35 36 29
(1720084/0x6856)
      }
    }
    timeToLive = 120
    keepAlive = FALSE
    endpointIdentifier =  10 characters {
      0032 0030 003a 0031 0030 003a 0034 0031   20:10:41
      002e 0031                                 .1
    }
    willSupplyUUIEs = FALSE
    maintainConnection = FALSE
    alternateTransportAddresses = {
    }
  }
2004/08/14 15:36:42.224 1             RasSrv.cxx(1002)  GK      RRQ
Received
2004/08/14 15:36:42.225 2             RasSrv.cxx(1257)
RCF|81.12.46.151:1720|tenor-1:h323_ID|gateway|20:10:41.1;

2004/08/14 15:36:42.225 3             RasSrv.cxx(2332)  GK      Send to
81.12.46.151:24578
registrationConfirm {
    requestSeqNum = 35001
    protocolIdentifier = 0.0.8.2250.0.3
    callSignalAddress = 1 entries {
      [0]=ipAddress {
        ip =  4 octets {
          51 0c 2e 96                                        Q...
        }
        port = 1721
      }
    }
    terminalAlias = 1 entries {
      [0]=h323_ID  7 characters {
        0074 0065 006e 006f 0072 002d 0031        tenor-1
      }
    }
    gatekeeperIdentifier =  10 characters {
      004f 0070 0065 006e 0048 0033 0032 0033   OpenH323
      0047 004b                                 GK
    }
    endpointIdentifier =  10 characters {
      0032 0030 003a 0031 0030 003a 0034 0031   20:10:41
      002e 0031                                 .1
    }
    willRespondToIRR = FALSE
    maintainConnection = FALSE
  }
2004/08/14 15:36:42.702 3       ProxyChannel.cxx(423)   Q931d
Received: CallProceeding CRV=55 from 64.71.148.114:1720
2004/08/14 15:36:43.414 3       ProxyChannel.cxx(423)   Q931d
Received: Alerting CRV=55 from 64.71.148.114:1720
2004/08/14 15:36:45.413 3        ProxyThread.cxx(85)    Q931d   Delete
socket 64.71.148.114:1720
2004/08/14 15:36:45.933 3             RasTbl.cxx(1468)  Gk      Delete
Call No. 10
2004/08/14 15:36:54.904 3       ProxyChannel.cxx(423)   Q931s
Received: ReleaseComplete CRV=55 from 81.12.46.151:24635
2004/08/14 15:36:54.905 2             RasTbl.cxx(2190)  CDR     ignore
not connected call
2004/08/14 15:36:54.905 3           radproto.cxx(1813)  RADIUS  Sending
PDU to RADIUS server 81.12.46.130 (81.12.46.130:3201) from
port:53831[0,170-171], PDU: Accounting-Request, id 170
2004/08/14 15:36:54.916 2             RasSrv.cxx(2392)  GK      Read
from 81.12.46.151:24578
2004/08/14 15:36:54.916 3             RasSrv.cxx(2405)  GK
disengageRequest {
    requestSeqNum = 35004
    endpointIdentifier =  10 characters {
      0032 0030 003a 0031 0030 003a 0034 0031   20:10:41
      002e 0031                                 .1
    }
    conferenceID =  16 octets {
      34 31 33 63 36 63 30 65  37 37 00 31 00 00 00 dd
413c6c0e77.1....
    }
    callReferenceValue = 55
    disengageReason = normalDrop <<null>>
    nonStandardData = {
      nonStandardIdentifier = h221NonStandard {
        t35CountryCode = 181
        t35Extension = 0
        manufacturerCode = 1831
      }
      data =  6 octets {
        4e 6f 44 61 74 61                                  NoData
      }
    }
    callIdentifier = {
      guid =  16 octets {
        34 31 33 63 36 63 31 32  37 38 00 00 00 00 00 93
413c6c1278......
      }
    }
    answeredCall = FALSE
  }
2004/08/14 15:36:54.916 1             RasSrv.cxx(1879)  GK      DRQ
Received
2004/08/14 15:36:54.945 3           radproto.cxx(1839)  RADIUS  Received
PDU from RADIUS server 81.12.46.130 (81.12.46.130:3201) by socket
port:53831[0,170-171], PDU: Accounting-Response, id 170
2004/08/14 15:36:54.945 3             gkacct.cxx(884)   GKACCT  RadAcct
logged event 2 for call no. 11
2004/08/14 15:36:54.946 3             gkacct.cxx(884)   GKACCT  SQLAcct
logged event 2 for call no. 11
2004/08/14 15:36:54.946 2             gkacct.cxx(924)   GKACCT
Successfully logged event 2 for call no. 11
2004/08/14 15:36:54.946 3             RasTbl.cxx(2136)  GK      No
CallRec found for DRQ
2004/08/14 15:36:54.946 2             RasSrv.cxx(1926)
DCF|81.12.46.151|20:10:41.1|55|normalDrop;

2004/08/14 15:36:54.946 3             RasSrv.cxx(2332)  GK      Send to
81.12.46.151:24578
disengageConfirm {
    requestSeqNum = 35004
  }
2004/08/14 15:36:55.671 3        ProxyThread.cxx(206)   Q931d
64.71.148.114:1720 Error(0):  (0)
2004/08/14 15:36:55.671 3        ProxyThread.cxx(663)   ProxyH(0)
waiting...

------------------------------------------------------------------------
----
Config file:

[Gatekeeper::Main]
Fourtytwo=42
Name=OpenH323GK
#Home=195.71.129.69
#NetworkInterfaces=
#TimeToLive=600
#TotalBandwidth=100000
StatusPort=23
#UseBroadcastListener=0
#AlternateGKs=1.2.3.4:1719:false:120:OpenH323GK2
#Sendto=1.2.3.4:1719
#EndpointIDSuffix=_gk1
#SkipForwards=4.3.2.1
#RedirectGK=Calls 50
#UnicastRasPort=1719
#MulticastPort=1718
#MulticastGroup=224.0.1.41
#EndpointSignalPort=9999
#EndpointSignalPort=1720
#ListenQueueLength=1024
# [ms], default 1000
#SignalReadTimeout=3000
# [ms], default 3000
#StatusReadTimeout=5000
#StatusWriteTimeout=5000

[RoutedMode]
GKRouted=1
H245Routed=0
CallSignalPort=1721
CallSignalHandlerNumber=1
RemoveH245AddressOnTunneling=0
AcceptNeighborsCalls=1
AcceptUnregisteredCalls=0
SupportNATedEndpoints=1
DropCallsByReleaseComplete=1
#RemoveCallOnDRQ=1
#SendReleaseCompleteOnDRQ=0
#ScreenDisplayIE=
#ScreenCallingPartyNumberIE=
#ScreenSourceAddress=
#ForwardOnFacility=1
#ShowForwarderNumber=1
#Q931PortRange=20000-20999
#H245PortRange=30000-30999
#ConnectTimeout=180000

[Proxy]
#Enable=1
#InternalNetwork=10.0.1.0/255.255.255.0,127.0.0.0/8
#T120PortRange=40000-40999
#RTPPortRange=50000-59999
#ProxyForNAT=1
#ProxyForSameNAT=0

#[Endpoint]
#Gatekeeper=auto
#Gatekeeper=210.58.112.188
#Type=Gateway
#H323ID=CitronProxy
#E164=18888600000
#Password=
#Prefix=18888600,1888890003
#TimeToLive=900
#RRQRetryInterval=10
#ARQTimeout=2
#UnregisterOnReload=0
#NATRetryInterval=60
#NATKeepaliveInterval=86400

#[Endpoint::RewriteE164]
#188889000=9

[RasSrv::GWPrefixes]
## Test-Gateways
# 195.71.226.162
#rossi-gt2=80,90
#rossi-gt2=0
# 195.71.226.165
#rossi-gt3=80,90
#rossi-gt3=05241,0521,5241,521
# 195.71.129.254
#ip400-v1=12
#ip400-wi1=0

[RasSrv::RRQFeatures]
#OverwriteEPOnSameAddress=1
#AcceptEndpointIdentifier=1
#AcceptGatewayPrefixes=1

[RasSrv::ARQFeatures]
ArjReasonRouteCallToSCN=0
ArjReasonRouteCallToGatekeeper=1
CallUnregisteredEndpoints=1
RemoveTrailingChar=#
ParseEmailAliases=1

[RasSrv::RRQAuth]
#rossi-gt1=sigaddr:.*ipAddress .* ip = .* c3 47 e2 a2 .*port = 1720.*
#rossi-gt2=sigaddr:.*ipAddress .* ip = .* c3 47 e2 a5 .*port = 1720.* 
#rossi-gt3=sigip:195.71.226.165:1720
tenor-1=sigip:81.12.46.151:1720
default=forbid

[GkStatus::Auth]
#rule=allow
#rule=deny
#rule=explicit
#rule=regex
# - 195.71.129.*
# - 195.71.100.*
# - 62.52.26.[1-2][0-9][0-9]
#regex=^(195\.71\.(129|100)\.[0-9]+)|(62\.52\.26\.[1-2][0-9][0-9])$
rule=password
KeyFilled=123
gkroot=W3mH0ERtwIM=

# only used when "rule=explicit"
#default=forbid
#Shutdown=disable

[RasSrv::RewriteE164]
## Only if an e164 number begins with #Fastmatch# the
## the further rewriting is done. Only one #Fastmatch# can be given.
#Fastmatch= #0190703100=052418088663
#01903142=0521178260
#5241908601903142=521178260

[RasSrv::Neighbors]
#GK1=203.60.151.5:1719;*;gk1
#GK2=203.60.151.9:1719;02,03

[RasSrv::LRQFeatures]
#NeighborTimeout=2
#ForwardHopCount=2
#AlwaysForwardLRQ=0
#AcceptForwardedLRQ=1
#IncludeDestinationInfoInLCF=1
#CiscoGKCompatible=1

[RasSrv::PermanentEndpoints]
# For gateway
#10.0.1.5=Citron;009,008
# For terminal
#10.0.1.10=798
#81.12.46.152=tenor-2;*
64.71.148.114=FACC;*


[Gatekeeper::Auth]
#SimplePasswordAuth=optional
#LDAPPasswordAuth=optional
AliasAuth=sufficient;RRQ,ARQ
#LDAPAliasAuth=sufficient;RRQ
#RadAuth=required;RRQ,ARQ
#RadAliasAuth=required;Setup
#default=reject
#default=allow

[Gatekeeper::DestAnalysis] 
#OverlapSendDestAnalysis=required;ARQ
#default=reject
#default=allow

#[Password]
#KeyFilled=123
#CheckID=FALSE
#PasswordTimeout=0
#(id=cwhuang, password=123456)
#cwhuang=UGwUtpy837k=

[MySQLAuth]
#Host=localhost
#Database=billing
#User=cwhuang
#Password=123456
#Table=customer
#IDField=IPN
#PasswordField=Password
#ExtraCriterion=Kind < 2
#CacheTimeout=0

[MySQLAliasAuth]
#Host=localhost
#Database=billing
#User=cwhuang
#Password=123456
#Table=customer
#IDField=IPN
#IPField=IPAddr
#ExtraCriterion=Kind < 2
#CacheTimeout=0

[SQLPasswordAuth]
#Driver=MySQL
#Host=localhost
#Database=billing
#Username=gnugk
#Password=secret
#CacheTimeout=0
#Query=SELECT password FROM users WHERE alias = '%1'

[SQLAliasAuth]
#Driver=PostgreSQL
#Host=localhost
#Database=billing
#Username=gnugk
#Password=secret
#CacheTimeout=0
#Query=SELECT authcond FROM users WHERE alias = '%1'

[CallTable]
GenerateNBCDR=0
GenerateUCCDR=0
DefaultCallDurationLimit=21600
AcctUpdateInterval=10

[GkLDAP::LDAPAttributeNames]
#H323ID=mail
#IPAddress=voIPIpAddress
#TelephonNo=telephoneNumber
#H235PassWord=plaintextPassword

[GkLDAP::Settings]
#ServerName=ldap
#ServerPort=389
#SearchBaseDN=o=University of Michigan, c=US 
#BindUserDN=cn=BabsJensen,o=University of Michigan, c=US 
#BindUserPW=ReallySecretPassword
#sizelimit=0
#timelimit=0

[Gatekeeper::Acct]
RadAcct=required;start,update,stop,on,off
#FileAcct=required;stop
#default=reject;start,stop
SQLAcct=required;start,stop

[RadAcct]
Servers=81.12.46.130
DefaultAcctPort=3201
SharedSecret=123
AppendCiscoAttributes=1
IncludeEndpointIP=1

[SQLAcct]
Driver=MySQL
Host=localhost
Database=gnugk
Username=root
Password=rasadb
MinPoolSize=5
StartQuery=INSERT INTO tblCustomerBilling
(`gatekeeper_name`,`call_number`,`Q.931_disconnect_cause`,`Acct-Session-
Id`,`H.323_ID`,`CallId`,`ConfId`,`setup-time`,`connect-time`,`disconnect
-time`,`caller-ip`,`caller-port`,`callee-ip`,`callee-port`,`src-info`,`d
est-info`,`Calling-Station-Id`,`Called-Station-Id`)
VALUES('%g','%n','%c','%s','%u','%{CallId}','%{ConfId}','%{setup-time}',
'%{connect-time}','%{disconnect-time}','%{caller-ip}','%{caller-port}','
%{callee-ip}','%{callee-port}','%{src-info}','%{dest-info}','%{Calling-S
tation-Id}','%{Called-Station-Id}')
StopQuery=UPDATE tblCustomerBilling
set`call_duration`=((((hour('%{disconnect-time}')
-hour(`setup-time`)))*3600) + (((minute('%{disconnect-time}') -
minute(`setup-time`)))*60) + (second('%{disconnect-time}') -
second(`setup-time`))),
`Q.931_disconnect_cause`='%c',`disconnect-time`='%{disconnect-time}'
where `gatekeeper_name`='%g' AND `Acct-Session-Id`='%s'

[Accounting]
#AlwaysUseCLID=1

[NATedEndpoints]
;704=11.1.1.111
;705=allow

[CTI::Agents]
VirtualQueueAliases=CC
;VirtualQueuePrefixes=001,0044,0049
;VirtualQueueRegex=^(001|04)[0-9]*$
RequestTimeout=10

[SQLConfig]
#Driver=PostgreSQL
#Host=localhost
#Database=billing
#Username=gnugk
#Password=secret
#RewriteE164Query=SELECT ...
#PermanentEndpointsQuery=SELECT ...
#NeighborsQuery=SELECT ...
#GWPrefixesQuery=SELECT ...




-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php

_______________________________________________________

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