[Openh323gk-developer] Bug Fix
H.323 Gatekeeper for VoIP and videconferencing
Brought to you by:
willamowius
From: Stelios V. V. <ste...@na...> - 2004-02-05 12:40:19
|
Hi all, Under certain circumastances (for example when calls come from = CallManager) GNUGK 2.0.7 crashes on the Call Setup. Guess this is due to a bug in the CallRec::CallRec(const Q931& = q931pdu,....) constructor and specificaly in the following code = fragment: ..... if( setup.HasOptionalField(H225_Setup_UUIE::e_sourceCallSignalAddress) = ) m_srcSignalAddr =3D=20 (H225_TransportAddress*)(setup.m_sourceCallSignalAddress.Clone()); else if( m_callingSocket ) { m_srcSignalAddr =3D new = H225_TransportAddress(H225_TransportAddress::e_ipAddress); << HERE IS = THE ROOT OF THE PROBLEM =20 PIPSocket::Address addr; WORD port =3D 0; m_callingSocket->GetPeerAddress(addr,port); ..... Seems that the H225_TransportAddress constructor doesn't set the tag, so = to solve the problem add the following line just after the construction: m_srcSignalAddr->SetTag(H225_TransportAddress::e_ipAddress); Regards, Stelios Vaiopoulos |