Re: Strange behaviour of GNU GK 2.2.7

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

 



Michal

H323Plus CVS now compiles with ptlib 2.2.1 and SVN.
I can apply this to ptlib SVN if you like you just have to explain what is
does :-)

It clearly states in the ptlib source
    // decrement the instance count, but don't remove it yet
    PFilePath key = GetKeyAt(index);
    instance->RemoveInstance(key);

Why? Can someone explain this? I think it has to be a bug.

Simon


> -----Original Message-----
> From: openh323gk-users-bounces@xxxxxxxxxxxxxxxxxxxxx
> [mailto:openh323gk-users-bounces@xxxxxxxxxxxxxxxxxxxxx]On Behalf Of
> Zygmuntowicz Michal
> Sent: Friday, 27 June 2008 8:52 PM
> To: GNU Gatekeeper Users
> Subject: Re:  Strange behaviour of GNU GK 2.2.7
>
>
> Hi,
>
> you should either apply the patch yourself or ask Simon;) to apply
> this patch to his h323plus.
>
> ----- Original Message -----
> From: "Denis Kochmashev "Enforta"" <d.kochmashev@xxxxxxxxxxx>
> Sent: Friday, June 27, 2008 12:49 PM
> Subject: Re:  Strange behaviour of GNU GK 2.2.7
>
>
> > Michal,
> >
> > yes, I have frequent config reloads and probably long running gnugk
> > instance. Not sure if term 'long running' applies to my gnugk
> installation.
> >
> > What would you recommend me to do?
> > - apply the patch myself;
> > - wait when ptlib developers will apply the patch (if they ever
> will do it);
> > - install gnugk-2.2.7-3 not touching ptlib.
> >
> >> -----Original Message-----
> >> From: openh323gk-users-bounces@xxxxxxxxxxxxxxxxxxxxx
> >> [mailto:openh323gk-users-bounces@xxxxxxxxxxxxxxxxxxxxx] On
> >> Behalf Of Zygmuntowicz Michal
> >> Sent: Friday, June 27, 2008 4:02 PM
> >> To: GNU Gatekeeper Users
> >> Subject: Re:  Strange behaviour of GNU GK 2.2.7
> >>
> >> The problem lies in PWLib PConfig implementation bug. The bug appears
> >> especially when you have a long running gnugk instance and/or frequent
> >> config reloads. The following patch to
> >> pwlib/src/ptlib/unix/config.cxx will
> >> solve the problem:
> >>
> >> Original PXConfigDictionary::RemoveInstance implementation:
> >>
> >> {
> >>     ....
> >>     PFilePath key = GetKeyAt(index);
> >>     instance->RemoveInstance(key);
> >>     ...
> >> }
> >>
> >> Fixed:
> >>
> >>     PFilePath key = GetKeyAt(index);
> >>     if (instance->RemoveInstance(key))
> >>         RemoveAt(key);
> >>
> >> ----- Original Message -----
> >> From: "Denis Kochmashev "Enforta"" <d.kochmashev@xxxxxxxxxxx>
> >> To: <openh323gk-users@xxxxxxxxxxxxxxxxxxxxx>
> >> Sent: Friday, June 27, 2008 11:42 AM
> >> Subject:  Strange behaviour of GNU GK 2.2.7
> >>
> >>
> >> > Hello!
> >> >
> >> > I have a problem with GNU GK 2.2.7 (not 2.2.7-3). Sometimes it loses
> >> > configuration after reload initiated by SIGHUP. After
> >> second SIGHUP it
> >> > successfully loads configuration. Please tell me if I'm
> >> doing something
> >> > wrong. I can attach gk.ini if one needed.
> >> >
> >> > After first SIGHUP log file shows the following:
> >> > 2008/06/27 12:27:32.256 1                 gk.cxx(276)   GK
> >>     Gatekeeper
> >> > Hangup (signal 1)
> >> > 2008/06/27 12:27:32.257 1                 gk.cxx(895)   GK
> >>     Logging
> >> > closed (reopen log file)
> >> > 2008/06/27 12:27:32.257 1                 gk.cxx(926)   GK
> >>     Logging
> >> > restarted
> >> > 2008/06/27 12:27:32.258 2            Toolkit.cxx(275)
> >> > Network=192.168.18.31/255.255.255.255, IP=172.24.18.6
> >> > 2008/06/27 12:27:32.258 2            Toolkit.cxx(275)
> >> > Network=192.168.66.218/255.255.255.255, IP=172.24.18.6
> >> > 2008/06/27 12:27:32.258 2            Toolkit.cxx(275)
> >> > Network=192.168.66.171/255.255.255.255, IP=172.24.18.6
> >> > 2008/06/27 12:27:32.258 2            Toolkit.cxx(275)
> >> > Network=192.168.66.23/255.255.255.255, IP=172.24.18.6
> >> > 2008/06/27 12:27:32.258 2            Toolkit.cxx(275)
> >> > Network=192.168.66.22/255.255.255.255, IP=172.24.18.6
> >> > 2008/06/27 12:27:32.258 2            Toolkit.cxx(275)
> >> > Network=10.18.0.0/255.255.255.0, IP=10.18.0.6
> >> > 2008/06/27 12:27:32.258 2            Toolkit.cxx(275)
> >> > Network=172.24.18.0/255.255.255.0, IP=172.24.18.6
> >> > 2008/06/27 12:27:32.258 2            Toolkit.cxx(275)
> >> > Network=172.25.18.0/255.255.255.0, IP=172.24.18.6
> >> > 2008/06/27 12:27:32.258 2            Toolkit.cxx(275)
> >> > Network=169.254.0.0/255.255.0.0, IP=172.24.18.6
> >> > 2008/06/27 12:27:32.258 2            Toolkit.cxx(276)
> >> Default IP=10.18.0.6
> >> > 2008/06/27 12:27:32.258 2         transports.cxx(898)
> >> H323    Use of non
> >> > IP transport address: ""
> >> > 2008/06/27 12:27:32.258 2            Toolkit.cxx(409)   GK
> >>     H.323 Proxy
> >> > disabled
> >> > 2008/06/27 12:27:32.258 2            Toolkit.cxx(659)   GK
> >>     Loaded per
> >> > GW rewrite data:
> >> > 2008/06/27 12:27:32.258 2            Toolkit.cxx(662)   GK
> >>     No per GW
> >> > data loaded
> >> > 2008/06/27 12:27:32.260 2             RasSrv.cxx(254)   RAS
> >>     Send DRQ to
> >> > 172.24.18.3:1720
> >> > 2008/06/27 12:27:32.260 2             RasTbl.cxx(2121)  Gk
> >>     Disconnect
> >> > Call No. 9989
> >> > 2008/06/27 12:27:32.260 1             RasTbl.cxx(3059)
> >> CDR|9989|00 f1 f9 5e
> >> > 13 87 41 86 80 02 c9 01 ac 19 12 30|304|Fri, 27 Jun 2008
> >> 12:22:28 +0600|Fri,
> >> > 27 Jun 2008 12:27:32 +0600|172.24.18.2:59477|
> >> >
> >> |172.24.18.3:1720|5950_izh_1|10073412914488:dialedDigits|00000
> >> 011811:dialedD
> >> > igits|OpenH323GK;
> >> > 2008/06/27 12:27:32.263 2             gkacct.cxx(1028)
> >> GKACCT  Successfully
> >> > logged event 2 for call no. 9989
> >> > 2008/06/27 12:27:32.263 2             RasSrv.cxx(254)   RAS
> >>     Send DRQ to
> >> > 172.24.18.3:1720
> >> > 2008/06/27 12:27:32.263 2             RasSrv.cxx(254)   RAS
> >>     Send DRQ to
> >> > 172.24.18.32:22000
> >> > 2008/06/27 12:27:32.263 2             RasTbl.cxx(2121)  Gk
> >>     Disconnect
> >> > Call No. 9998
> >> > 2008/06/27 12:27:32.264 2             RasTbl.cxx(3063)  CDR
> >>     ignore not
> >> > connected call
> >> > 2008/06/27 12:27:32.266 2             gkacct.cxx(1028)
> >> GKACCT  Successfully
> >> > logged event 2 for call no. 9998
> >> > 2008/06/27 12:27:32.266 2             RasTbl.cxx(1608)
> >> Permanent endpoint
> >> > 5950_izh_1 removed
> >> > 2008/06/27 12:27:32.266 2             RasTbl.cxx(1608)
> >> Permanent endpoint
> >> > 5952_izh_1 removed
> >> > 2008/06/27 12:27:32.266 2             RasTbl.cxx(1608)
> >> Permanent endpoint
> >> > 5953_izh_1 removed
> >> > 2008/06/27 12:27:32.266 2             RasTbl.cxx(1608)
> >> Permanent endpoint
> >> > 6572_izh_1 removed
> >> > 2008/06/27 12:27:32.266 2       ProxyChannel.cxx(192)
> >> RTPPortRange:
> >> > 1024-65535
> >> > 2008/06/27 12:27:32.266 2             RasSrv.cxx(748)   GK
> >>     Using Routed
> >> > Signalling
> >> > 2008/06/27 12:27:32.266 2             RasSrv.cxx(749)   GK
> >>     H.245 Routed
> >> > Enabled
> >> > 2008/06/27 12:27:32.266 2             RasSrv.cxx(763)   GK      No
> >> > ENUMservers set, using defaults
> >> > 2008/06/27 12:27:32.266 2             RasSrv.cxx(784)   GK      No
> >> > RDSservers set, using defaults
> >> > 2008/06/27 12:27:32.266 2             RasSrv.cxx(823)   GK
> >>     Home =
> >> > 172.24.18.6
> >> > 2008/06/27 12:27:32.266 1             RasSrv.cxx(531)   Listening to
> >> > 172.24.18.6:1721
> >> > 2008/06/27 12:27:32.266 1           Neighbor.cxx(183)   NB
> >>     Delete
> >> > neighbor voip.172.24.18.2
> >> > 2008/06/27 12:27:32.266 1           Neighbor.cxx(183)   NB
> >>     Delete
> >> > neighbor l1gw_izh_1
> >> > 2008/06/27 12:27:32.266 1           Neighbor.cxx(183)   NB
> >>     Delete
> >> > neighbor l2gk_ncc_1
> >> > 2008/06/27 12:27:32.266 1           Neighbor.cxx(183)   NB
> >>     Delete
> >> > neighbor l2gk_ncc_2
> >> > 2008/06/27 12:27:32.266 1             gkauth.cxx(305)
> >> GKAUTH  RadAuth rule
> >> > removed
> >> > 2008/06/27 12:27:32.266 1             gkauth.cxx(305)
> >> GKAUTH  RadAliasAuth
> >> > rule removed
> >> > 2008/06/27 12:27:32.266 1             gkauth.cxx(305)   GKAUTH
> >> > CapacityControl rule removed
> >> > 2008/06/27 12:27:32.266 1             gkauth.cxx(305)
> >> GKAUTH  default rule
> >> > removed
> >> > 2008/06/27 12:27:32.266 1             gkacct.cxx(196)
> >> GKACCT  Destroyed
> >> > module FileAcct
> >> > 2008/06/27 12:27:32.266 1             gkacct.cxx(196)
> >> GKACCT  Destroyed
> >> > module RadAcct
> >> > 2008/06/27 12:27:32.266 1             gkacct.cxx(196)
> >> GKACCT  Destroyed
> >> > module CapacityControl
> >> > 2008/06/27 12:27:32.266 1             gkacct.cxx(196)
> >> GKACCT  Destroyed
> >> > module default
> >> > 2008/06/27 12:27:32.266 2            Routing.cxx(667)
> >> VQueue  (CTI)
> >> > Virtual queues disabled - no virtual queues configured
> >> >
> >> > After second SIGHUP:
> >> > 2008/06/27 12:34:38.715 1                 gk.cxx(276)   GK
> >>     Gatekeeper
> >> > Hangup (signal 1)
> >> > 2008/06/27 12:34:38.715 1                 gk.cxx(895)   GK
> >>     Logging
> >> > closed (reopen log file)
> >> > 2008/06/27 12:34:38.715 1                 gk.cxx(926)   GK
> >>     Logging
> >> > restarted
> >> > 2008/06/27 12:34:38.720 2            Toolkit.cxx(327)
> >> Internal Network
> >> > Detected 10.18.0.0/24
> >> > 2008/06/27 12:34:38.720 2            Toolkit.cxx(327)
> >> Internal Network
> >> > Detected 172.24.18.0/24
> >> > 2008/06/27 12:34:38.720 2            Toolkit.cxx(327)
> >> Internal Network
> >> > Detected 172.25.18.0/24
> >> > 2008/06/27 12:34:38.720 2            Toolkit.cxx(275)
> >> > Network=192.168.18.31/255.255.255.255, IP=172.24.18.6
> >> > 2008/06/27 12:34:38.720 2            Toolkit.cxx(275)
> >> > Network=192.168.66.218/255.255.255.255, IP=172.24.18.6
> >> > 2008/06/27 12:34:38.720 2            Toolkit.cxx(275)
> >> > Network=192.168.66.171/255.255.255.255, IP=172.24.18.6
> >> > 2008/06/27 12:34:38.720 2            Toolkit.cxx(275)
> >> > Network=192.168.66.23/255.255.255.255, IP=172.24.18.6
> >> > 2008/06/27 12:34:38.720 2            Toolkit.cxx(275)
> >> > Network=192.168.66.22/255.255.255.255, IP=172.24.18.6
> >> > 2008/06/27 12:34:38.720 2            Toolkit.cxx(275)
> >> > Network=10.18.0.0/255.255.255.0, IP=10.18.0.6
> >> > 2008/06/27 12:34:38.720 2            Toolkit.cxx(275)
> >> > Network=172.24.18.0/255.255.255.0, IP=172.24.18.6
> >> > 2008/06/27 12:34:38.720 2            Toolkit.cxx(275)
> >> > Network=172.25.18.0/255.255.255.0, IP=172.24.18.6
> >> > 2008/06/27 12:34:38.720 2            Toolkit.cxx(275)
> >> > Network=169.254.0.0/255.255.0.0, IP=172.24.18.6
> >> > 2008/06/27 12:34:38.720 2            Toolkit.cxx(276)
> >> Default IP=10.18.0.6
> >> > 2008/06/27 12:34:38.721 2            Toolkit.cxx(275)
> >> > Network=172.24.18.0/255.255.255.0, IP=172.24.18.6
> >> > 2008/06/27 12:34:38.721 2            Toolkit.cxx(276)
> >> Default IP=10.18.0.6
> >> > 2008/06/27 12:34:38.721 2            Toolkit.cxx(413)   GK
> >>     H.323 Proxy
> >> > enabled
> >> > 2008/06/27 12:34:38.721 2            Toolkit.cxx(430)   GK
> >>     INI Internal
> >> > Network 0 = 172.25.18.0/24
> >> > 2008/06/27 12:34:38.721 2            Toolkit.cxx(430)   GK
> >>     INI Internal
> >> > Network 1 = 172.24.18.0/24
> >> > 2008/06/27 12:34:38.731 2            Toolkit.cxx(659)   GK
> >>     Loaded per
> >> > GW rewrite data:
> >> > 2008/06/27 12:34:38.731 2            Toolkit.cxx(677)   GK
> >>     Loaded 30 GW
> >> > entries with rewrite info
> >> > 2008/06/27 12:34:38.744 1             RasTbl.cxx(88)    New
> >> > EP|172.24.18.3:1720|l1gw_izh_1:h323_ID|gateway|6707_izh_1
> >> >
> >> > 2008/06/27 12:34:38.744 2             RasTbl.cxx(1681)  Add
> >> permanent
> >> > endpoint 172.24.18.3:1720
> >> > 2008/06/27 12:34:38.745 1             RasTbl.cxx(88)    New
> >> > EP|172.24.18.2:1720|voip.172.24.18.2:h323_ID|gateway|6708_izh_1
> >> >
> >> > 2008/06/27 12:34:38.745 2             RasTbl.cxx(1681)  Add
> >> permanent
> >> > endpoint 172.24.18.2:1720
> >> > 2008/06/27 12:34:38.746 1             RasTbl.cxx(88)    New
> >> > EP|192.168.66.22:1720|l2gk_ncc_1:h323_ID|gateway|6709_izh_1
> >> >
> >> > 2008/06/27 12:34:38.746 2             RasTbl.cxx(1681)  Add
> >> permanent
> >> > endpoint 192.168.66.22:1720
> >> > 2008/06/27 12:34:38.747 1             RasTbl.cxx(88)    New
> >> > EP|192.168.66.33:1720|l2gk_ncc_2:h323_ID|gateway|6710_izh_1
> >> >
> >> > 2008/06/27 12:34:38.747 2             RasTbl.cxx(1681)  Add
> >> permanent
> >> > endpoint 192.168.66.33:1720
> >> > 2008/06/27 12:34:38.747 2       ProxyChannel.cxx(192)
> >> RTPPortRange:
> >> > 1024-65535
> >> > 2008/06/27 12:34:38.747 2             RasSrv.cxx(748)   GK
> >>     Using Routed
> >> > Signalling
> >> > 2008/06/27 12:34:38.747 2             RasSrv.cxx(749)   GK
> >>     H.245 Routed
> >> > Enabled
> >> > 2008/06/27 12:34:38.747 2             RasSrv.cxx(763)   GK      No
> >> > ENUMservers set, using defaults
> >> > 2008/06/27 12:34:38.747 2             RasSrv.cxx(784)   GK      No
> >> > RDSservers set, using defaults
> >> > 2008/06/27 12:34:38.748 2             RasSrv.cxx(823)   GK
> >>     Home =
> >> > 172.24.18.6
> >> > 2008/06/27 12:34:38.748 1             RasSrv.cxx(531)   Listening to
> >> > 172.24.18.6:1720
> >> > 2008/06/27 12:34:38.748 1           Neighbor.cxx(265)   Set neighbor
> >> > l2gk_ncc_1(192.168.66.22:1719) send=0 accept=*
> >> > 2008/06/27 12:34:38.748 1           Neighbor.cxx(265)   Set neighbor
> >> > l2gk_ncc_2(192.168.66.33:1719) send=0 accept=*
> >> > 2008/06/27 12:34:38.748 1           Neighbor.cxx(462)   Set neighbor
> >> > voip.172.24.18.2(172.24.18.2:1719) for prefix
> >> > 2008/06/27 12:34:38.748 1           Neighbor.cxx(462)   Set neighbor
> >> > l1gw_izh_1(172.24.18.3:1719) for prefix
> >> > 2008/06/27 12:34:38.748 1             gkauth.cxx(246)
> >> GKAUTH  RadAuth does
> >> > not support 'IRQ' check
> >> > 2008/06/27 12:34:38.748 1             gkauth.cxx(296)
> >> GKAUTH  RadAuth rule
> >> > added to check RAS: IRQ RRQ, OTHER: NONE
> >> > 2008/06/27 12:34:38.749 1             gkauth.cxx(296)
> >> GKAUTH  RadAliasAuth
> >> > rule added to check RAS: NONE, OTHER: SETUP
> >> > 2008/06/27 12:34:38.749 1             gkauth.cxx(296)   GKAUTH
> >> > CapacityControl rule added to check RAS: NONE, OTHER: SETUP
> >> > 2008/06/27 12:34:38.749 1             gkauth.cxx(296)
> >> GKAUTH  default rule
> >> > added to check RAS: ARQ BRQ DRQ GRQ IRQ LRQ RRQ URQ, OTHER:
> >> SETUP SETUPUNREG
> >> > 2008/06/27 12:34:38.749 1             gkacct.cxx(191)
> >> GKACCT  Created
> >> > module FileAcct with event mask 3
> >> > 2008/06/27 12:34:38.749 2             gkacct.cxx(610)
> >> GKACCT  FileAcct CDR
> >> > file: /usr/local/mmsvc/log/gk_calls.log
> >> > 2008/06/27 12:34:38.749 1             gkacct.cxx(191)
> >> GKACCT  Created
> >> > module RadAcct with event mask 3
> >> > 2008/06/27 12:34:38.749 1             gkacct.cxx(191)
> >> GKACCT  Created
> >> > module CapacityControl with event mask 3
> >> > 2008/06/27 12:34:38.749 1             gkacct.cxx(191)
> >> GKACCT  Created
> >> > module default with event mask FFFFFFFF
> >> > 2008/06/27 12:34:38.749 2            Routing.cxx(667)
> >> VQueue  (CTI)
> >> > Virtual queues disabled - no virtual queues configured
> >> > 2008/06/27 12:34:38.750 1            Routing.cxx(271)
> >> RoutingPolicy::OnARQ
> >> > add policy vqueue,internal,neighbor for prefix *
> >> > 2008/06/27 12:34:38.750 1            Routing.cxx(271)
> >> RoutingPolicy::OnLRQ
> >> > add policy vqueue,internal,neighbor for prefix *
> >> > 2008/06/27 12:34:38.750 1            Routing.cxx(271)
> >> > RoutingPolicy::OnSetup add policy vqueue,internal,neighbor
> >> for prefix *
> >> > 2008/06/27 12:34:38.750 1            Routing.cxx(271)
> >> > RoutingPolicy::OnFacility add policy
> >> vqueue,internal,neighbor for prefix *
> >> >
> >> > My system is: Red Hat Enterprise Linux ES release 4 (Nahant
> >> Update 4)
> >> >
> >> > mmsvc@coll2:~> uname -a
> >> > Linux coll2.izh.enforta.com 2.6.9-42.ELsmp #1 SMP Wed Jul
> >> 12 23:27:17 EDT
> >> > 2006 i686 i686 i386 GNU/Linux
> >> >
> >> > PTLib: 2.0.1-4
> >> > H323Plus: h323plus-v1_20_beta3
> >> > GNU GK: 2.2.7 (not 2.2.7-3)
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________________
>
> Posting: mailto:Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
> Archive:
> http://sourceforge.net/mailarchive/forum.php?forum_name=openh323gk-users
> Unsubscribe: http://lists.sourceforge.net/lists/listinfo/openh323gk-users
> Homepage: http://www.gnugk.org/


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________________

Posting: mailto:Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
Archive: http://sourceforge.net/mailarchive/forum.php?forum_name=openh323gk-users
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