multimediacommsengine/mmcesrv/mmceserver/src/mcesipsession.cpp
branchRCL_3
changeset 5 5e57de868bc0
parent 3 513a8b745b2f
child 7 267e1b1adf0c
--- a/multimediacommsengine/mmcesrv/mmceserver/src/mcesipsession.cpp	Fri Feb 19 23:12:20 2010 +0200
+++ b/multimediacommsengine/mmcesrv/mmceserver/src/mcesipsession.cpp	Fri Mar 12 15:44:14 2010 +0200
@@ -2635,6 +2635,8 @@
 		{
 		ActiveBody().SdpSession().UpdateSecureStreamL( ActiveBody() );
 		Manager().MediaManager().UpDateStreamStateL( *iBody, ActiveBody() );
+		__ASSERT_ALWAYS( iFirstOffer, User::Leave( KErrArgument ) );
+		ActiveBody().SdpSession().iSdpDocument = iFirstOffer;
 		}
 	MCESRV_DEBUG("CMceSipSession::ForceUpdateStream, Exit");    
 	}
@@ -2649,4 +2651,13 @@
 		iCurrentDialog = iDialog;
 		}
 	}
+void CMceSipSession::SetFirstOffer()
+	{	
+	if( iBodyBucket.Count() == 0 )
+		{
+		CSdpDocument* clonedOffer = NULL;
+		TRAP_IGNORE( ( clonedOffer = iOffer->CloneL() ) );
+		iFirstOffer = clonedOffer;
+		}
+	}
 //  End of File