From: Hannes F. <hfr...@us...> - 2007-03-31 22:28:07
|
Update of /cvsroot/openh323/opal/src/sip In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv1627/src/sip Modified Files: Tag: MediaTypeBranch sipcon.cxx Log Message: Fix logical error. Ensure that media streams are present when received final response Index: sipcon.cxx =================================================================== RCS file: /cvsroot/openh323/opal/src/sip/sipcon.cxx,v retrieving revision 2.197.2.7 retrieving revision 2.197.2.8 diff -C2 -d -r2.197.2.7 -r2.197.2.8 *** sipcon.cxx 30 Mar 2007 13:56:37 -0000 2.197.2.7 --- sipcon.cxx 31 Mar 2007 22:28:06 -0000 2.197.2.8 *************** *** 25,28 **** --- 25,32 ---- * * $Log$ + * Revision 2.197.2.8 2007/03/31 22:28:06 hfriederich + * Fix logical error. + * Ensure that media streams are present when received final response + * * Revision 2.197.2.7 2007/03/30 13:56:37 hfriederich * Reorganization of the way transactions are handled. Delete transactions *************** *** 1185,1189 **** remoteSDP = originalInvite->GetSDP(); } ! sdpFailure = BuildSDPReply(sdpOut); if (sdpFailure) { Release(EndedByCapabilityExchange); --- 1189,1193 ---- remoteSDP = originalInvite->GetSDP(); } ! sdpFailure = !BuildSDPReply(sdpOut); if (sdpFailure) { Release(EndedByCapabilityExchange); *************** *** 2298,2302 **** } ! sdpFailure = BuildSDPReply(sdpOut); if (sdpFailure) { --- 2302,2306 ---- } ! sdpFailure = !BuildSDPReply(sdpOut); if (sdpFailure) { *************** *** 2708,2711 **** --- 2712,2720 ---- connectedTime = PTime (); OnConnected(); // start media streams + + if (mediaStreams.GetSize() == 0) { + Release(EndedByCapabilityExchange); + return; + } if (phase == EstablishedPhase) |