Sunday, February 27, 2005

openh323.ocx

i'm implementing a VoIP module for a client and found a very usefull atl control over the great OpenH323 opensource project.
the problems is damian's control doesnt work with a gatekeeper. after much struggle, goolgle searches and code studying, i think i found a solution:
i turns out damian's control doesn't properly initialize its endpoint, thus failing to register the gatekeeper.
so the fix is:
modify MyH323EndPoint's Initialise() method like this -


BOOL MyH323EndPoint::Initialise()
{
noFastStart = FALSE;
InitialiseCodecs();
return StartListener("*");
//original version goes like this: return TRUE;
}


thats it. now the end point properly starts its listeners and you can use a gatekeeper for PC-Phone calls