Registering with the GnuGK - continued
Hard coding the authenticator.Enable (as shown bellow) solves the registration problem. Obviously this is not good - any ideas why authenticator.IsCapability returns the wrong result in the "simple" sample application ?
BOOL H323Gatekeeper::OnReceiveGatekeeperConfirm(const H225_GatekeeperConfirm & gcf) { if (!H225_RAS::OnReceiveGatekeeperConfirm(gcf)) return FALSE;
PINDEX i;
for (i = 0; i < authenticators.GetSize(); i++) { H235Authenticator & authenticator = authenticators[i]; if (authenticator.UseGkAndEpIdentifiers()) authenticator.SetRemoteId(gatekeeperIdentifier); }
if (gcf.HasOptionalField(H225_GatekeeperConfirm::e_authenticationMode) && gcf.HasOptionalField(H225_GatekeeperConfirm::e_algorithmOID)) { for (i = 0; i < authenticators.GetSize(); i++) { H235Authenticator & authenticator = authenticators[i]; authenticator.Enable( TRUE /*authenticator.IsCapability(gcf.m_authenticationMode, // <<<< This makes it work
gcf.m_algorithmOID)*/); PTRACE(4,"RAS\tAuthenticator " << authenticator.GetName() << (authenticator.IsActive() ? " ACTIVATED" : " disabled")); } }
Hi there. I'm going to perform a "MaintenanceLoop" with h323plus.How can i make a request,and response ?Anyone can give me a simple example ?
ken.
David,
You should check the gatekeeper logs. If you use gnugk, you shall activate some logs using 'gnugk -tt', logs go to /var/log/gnugk/ (if you are on linux). Maybe your gatekeeper configuration is wrong ?
Claude
Amnon David a écrit :
Hard coding the authenticator.Enable (as shown bellow) solves the registration problem. Obviously this is not good - any ideas why authenticator.IsCapability returns the wrong result in the "simple" sample application ?
BOOL H323Gatekeeper::OnReceiveGatekeeperConfirm(const H225_GatekeeperConfirm & gcf) { if (!H225_RAS::OnReceiveGatekeeperConfirm(gcf)) return FALSE;
PINDEX i;
for (i = 0; i < authenticators.GetSize(); i++) { H235Authenticator & authenticator = authenticators[i]; if (authenticator.UseGkAndEpIdentifiers()) authenticator.SetRemoteId(gatekeeperIdentifier); }
if (gcf.HasOptionalField(H225_GatekeeperConfirm::e_authenticationMode) && gcf.HasOptionalField(H225_GatekeeperConfirm::e_algorithmOID)) { for (i = 0; i < authenticators.GetSize(); i++) { H235Authenticator & authenticator = authenticators[i]; authenticator.Enable( TRUE /*authenticator.IsCapability(gcf.m_authenticationMode, // <<<< This makes it work
gcf.m_algorithmOID)*/); PTRACE(4,"RAS\tAuthenticator " << authenticator.GetName() << (authenticator.IsActive() ? " ACTIVATED" : " disabled")); } }
participants (3)
-
Amnon David
-
Claude Le Berre
-
陈雷