Hi, the gatekeeper gets a URQ now. Unfortunately Asterisk seems to reference the channel after ast_ooh323c_exit() and I get a core dump while doing "stop gracefully".
Regards, Jan Avin Patel wrote: > Hi Jan, > Can you test with following changes in chan_h323.c file. > > void ast_ooh323c_exit() > { > ooGkClientDestroy(); > } > > Than add following line in load_module() function: > ast_register_atexit(&ast_ooh323c_exit); > > Than add following line in unload_module() function: > ast_unregister_atexit(&ast_ooh323c_exit); > > Let us if that works. > > Regards, > Avin Patel > Objective Systems, Inc. > > > > > -----Original Message----- > > From: Jan Willamowius [mailto:[EMAIL PROTECTED] > > Sent: Monday, June 12, 2006 7:19 PM > > To: ooh323c-devel@lists.sourceforge.net > > Subject: Re: [ooh323c-devel] Gatekeeper registration > > > > > > Hi Avin, > > > > that code doesn't seem to be executed when Asterisk is shut down with > > "stop now" or "stop gracefully". I'm running Asterisk 1.2.7.1 and I only > > see the URQ when I manually unload ooh323. Maybe it also needs to be > > called via ast_register_atexit() if Asterisk doesn't unload all modules > > when it shuts down. > > > > I'll attach my h323_log but it doesn't show much. > > > > Regards, > > Jan > > > > > > Avin Patel wrote: > > > Hi Jan, > > > > > > > a.) When Asterisk is shut down, ooh323c doesn't send a URQ to the > > > > gatekeeper (it only sends one when the config is reloaded). One can > > > > avoid sending calls to a dead gateway by setting a low TTL for > > > > registrations in GnuGk, but it would be nice if ooh323c would > > unregister > > > > properly. > > > > > > I can see it is sending URQ message in > > > > > unload_module()->ooH323EpDestroy()->ooGkClientDestroy()->ooGkClientSend > > URQ() > > > . > > > > > > Can you provide debug log for this situtation, we can check for > > possible > > > missing point. > > > > > > > > > Regards, > > > Avin Patel > > > Objective Systems, Inc. > > > > > > > > > > > > > -----Original Message----- > > > > From: Jan Willamowius [mailto:[EMAIL PROTECTED] > > > > Sent: Friday, June 09, 2006 9:16 AM > > > > To: ooh323c-devel@lists.sourceforge.net > > > > Subject: [ooh323c-devel] Gatekeeper registration > > > > > > > > > > > > Hi, > > > > > > > > I played around with ooh323c as a gateway for GnuGk and noticed two > > > > things it doesn't do when registering with a gatekeeper: > > > > > > > > a.) When Asterisk is shut down, ooh323c doesn't send a URQ to the > > > > gatekeeper (it only sends one when the config is reloaded). One can > > > > avoid sending calls to a dead gateway by setting a low TTL for > > > > registrations in GnuGk, but it would be nice if ooh323c would > > unregister > > > > properly. > > > > > > > > b.) When the gatekeeper registration fails, ooh323c should wait a > > few > > > > seconds and try again (the same if it looses the registration for > > some > > > > reason). This makes the system much more fault tolerant. > > > > > > > > Regards, > > > > Jan -- Jan Willamowius, [EMAIL PROTECTED], http://www.willamowius.de/ _______________________________________________ ooh323c-devel mailing list ooh323c-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ooh323c-devel