GNUGK match prefix problem

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

 



Hi

I am using Gnugk2.2.2 with SqlBIll.
My system functions normal, however when after 15-18
hours of continuous production, calls with ONE of the
prefixes start dropping with reason 20. (CDR shows
0.0.0.0 as IP of destination gateway)

Calls with other prefixes are completing normal.

In the debug it can be seen that
proxychannel.cxx says No destination for unregistered
call 
(instead of the usual   RasTbl.cxx  Gateway nnnn_endp
matched by prefix 1234)
is comming for these calls.

Systems becomes normal after restart.


I have attached the config file here

Any idea ?

Thanks in advance

steve


==============================

; Sample configuration file

; VoIP Billing Platform for GnuGk
; Copyright (c) 2004, Michal Zygmuntowicz

; This work is published under the GNU Public License
(GPL)
; see file COPYING for details

[Gatekeeper::Main]
Fourtytwo=42
Name=mars
UnicastRasPort=1719
;MulticastRasPort=1718
;MulticastGroup=224.0.1.41
EndpointSignalPort=1720
;UseBroadcastListner=0
SignalReadTimeout=3000




[LogFile]
Rotate=Hourly
RotateTime=59


[RoutedMode]
GKRouted=1
H245Routed=0
DropCallsByReleaseComplete=1
SendReleaseCompleteOnDRQ=1
ForwardOnFacility=0
;CallSignalPort=1721
CallSignalPort=1720

CallSignalHandlerNumber=1
RemoveH245AddressOnTunneling=1
AcceptNeighborsCalls=1
AcceptUnregisteredCalls=1
;RemoveCallOnDRQ=1
;ScreenDisplayIE=
;ScreenCallingPartyNumberIE=
;ScreenSourceAddress=
;ForwardOnFacility=1
;ShowForwarderNumber=1
;Q931PortRange=20000-20999
;H245PortRange=30000-30999
;#########  setup   def=8s
SetupTimeout=8000
;####  pdd  def=15s
SignalTimeout=20000
;#####  ring def=60s
AlertingTimeout=60000
;TcpKeepAlive=1
;TranslateFacility=1



[Proxy]
Enable=0

[RasSrv::RRQFeatures]
OverwriteEPOnSameAddress=1
AcceptEndpointIdentifier=0

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


[RasSrv::RRQAuth]


[RasSrv::GWPrefixes]
;; Test-Gateways
; 195.71.226.162
;rossi-gt2=80,90
quintumlv=7718801





[GkStatus::Auth]
rule=explicit
127.0.0.1=allow
1.1.1.1=allow
2.2.2.2=allow
default=forbid
Shutdown=0

[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

92=2582192
;92=2638292
;92=3734792

#################
Rules REMOVED

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


[RasSrv::GWRewriteE164]

REMOVED

[RasSrv::Neighbors]
gk1=1.2.3.4:1719;63


;###  new format
BBGK=ClarentGK
aaaGK=ClarentGK
CCCGK=GNUGK


[Neighbour::BBGK]
GatekeeperIdentifier=BBGK
Host=1.1.1.1
SendPrefixes=1111
AcceptPrefixes=118994,1189,11898801
ForwardLRQ=always








[RasSrv::LRQFeatures]
CiscoGKCompatible=1



[RasSrv::PermanentEndpoints]
###   removed

2.2.2.2=DDDD_gw1;23883,25821,26382
#######    PROBLEM HAPPENS FOR PREFIX 25821 ONLY 
###########


[EP::ggg_gw1]
Capacity=16
GatewayPriority=1
;GatewayPrefixes=




[Gatekeeper::Auth]
;RadAuth=optional;RRQ,ARQ,Setup,SetupUnreg
RadAliasAuth=required;RRQ,ARQ,Setup,SetupUnreg
;RadAliasAuth=optional;RRQ,ARQ,Setup,SetupUnreg  

;AliasAuth=required;RRQ,ARQ,Setup,SetupUnreg
AliasAuth=optional;RRQ  

;SQLPasswordAuth=optional;RRQ
;SQLAliasAuth=required;RRQ
default=allow

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


[FileAcct]
;DetailFile=/var/log/gnulogs/gnucdr.log
DetailFile=/var/log/gk/gkcdr
;#StandardCDRFormat=0
;#CDRString=%s|%{ConfId}|%u|%{Calling-Station-Id}|%{Called-Station-Id}|%d|%c
CDRString=%s|%g|%u|%{Calling-Station-Id}|%{Called-Station-Id}|%{caller-ip}|%{callee-ip}|%{connect-time}|%{disconnect-time}|%d|%c|
Rotate=daily
RotateTime=23:59



[RadAuth]
Servers=127.0.0.1
SharedSecret=testing
AppendCiscoAttributes=1
IncludeTerminalAliases=1
IncludeEndpointIP=1


#############   radalias auth used to authenticate
endpoints not sending CAT username/passwd pairs
[RadAliasAuth]
Servers=127.0.0.1
SharedSecret=testing
AppendCiscoAttributes=1
FixedPassword=foo


[RadAcct]
Servers=127.0.0.1
SharedSecret=testing
AppendCiscoAttributes=1
IncludeEndpointIP=1

[SQLPasswordAuth]
Driver=PostgreSQL
Host=localhost
Database=voipdb
Username=gkradius
Password=gkradius
Query=SELECT u.chappassword FROM voipuser u JOIN
voipaccount a ON u.accountid = a.id WHERE u.h323id =
'%1' AND NOT u.disabled AND NOT a.disabled AND
a.closed IS NULL

[SQLAliasAuth]
Driver=PostgreSQL
Host=localhost
Database=voipdb
Username=gkradius
Password=gkradius
Query=SELECT CASE WHEN u.framedip IS NULL THEN 'allow'
ELSE 'sigip:' || host(u.framedip) END FROM voipuser u
JOIN voipaccount a ON u.accountid = a.id WHERE
u.h323id = '%1' AND NOT u.disabled AND NOT a.disabled
AND a.closed IS NULL

[SQLAcct]
Driver=PostgreSQL
;Host=localhost
Host=127.0.0.1
Database=voipdb
Username=gkradius
Password=gkradius
StartQuery=INSERT INTO voipcall (id, h323id,
acctsessionid, h323confid, gkip, gkid,
callingstationip, callingstationid, calledstationip,
calledstationid, setuptime, acctstarttime,
acctstartdelay, acctupdatetime) VALUES (DEFAULT, '%u',
'%s', '%{ConfId}', '%{gkip}', '%g',
NULLIF('%{caller-ip}', '')::INET,
'%{Calling-Station-Id}', NULLIF('%{callee-ip}',
'')::INET, '%{Called-Station-Id}',
NULLIF('%{setup-time}', '')::TIMESTAMP(0) WITH TIME
ZONE, now(), 0, now())
UpdateQuery=UPDATE voipcall SET duration = '%d',
connecttime =
NULLIF('%{connect-time}','')::TIMESTAMP(0) WITH TIME
ZONE, acctupdatetime = now() WHERE acctsessionid =
'%s' AND gkid = '%g' AND acctstoptime IS NULL
StopQuery=UPDATE voipcall SET acctstoptime = now(),
duration = '%d', terminatecause = '%c', acctstopdelay
= 0, setuptime = NULLIF('%{setup-time}',
'')::TIMESTAMP(0) WITH TIME ZONE, connecttime =
NULLIF('%{connect-time}', '')::TIMESTAMP(0) WITH TIME
ZONE, disconnecttime = NULLIF('%{disconnect-time}',
'')::TIMESTAMP(0) WITH TIME ZONE WHERE acctsessionid =
'%s' AND gkid = '%g' AND acctstoptime IS NULL
StopQueryAlt=INSERT INTO voipcall (id, h323id,
acctsessionid, h323confid, gkip, gkid,
callingstationip, callingstationid, calledstationip,
calledstationid, setuptime, connecttime,
disconnecttime, terminatecause, duration,
acctstarttime, acctstartdelay, acctupdatetime,
acctstoptime, acctstopdelay) VALUES (DEFAULT,'%u',
'%s', '%{ConfId}', '%{gkip}', '%g',
NULLIF('%{caller-ip}', '')::INET,
'%{Calling-Station-Id}', NULLIF('%{callee-ip}',
'')::INET, '%{Called-Station-Id}',
NULLIF('%{setup-time}','')::TIMESTAMP(0) WITH TIME
ZONE, NULLIF('%{connect-time}','')::TIMESTAMP(0) WITH
TIME ZONE,
NULLIF('%{disconnect-time}','')::TIMESTAMP(0) WITH
TIME ZONE, '%c', '%d', (now() - '%d'::INTERVAL), 0,
now(), now(), 0)












		
__________________________________ 
Discover Yahoo! 
Get on-the-go sports scores, stock quotes, news and more. Check it out! 
http://discover.yahoo.com/mobile.html


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________________

Posting: mailto:Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549
Unsubscribe: http://lists.sourceforge.net/lists/listinfo/openh323gk-users
Homepage: http://www.gnugk.org/

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

  Powered by Linux