multimediacommsengine/mmcesrv/mmcemediamanager/src/mcesdpsession.cpp
branchRCL_3
changeset 17 a5ac35ca6d81
parent 11 2a28ef775f15
child 25 fb1bbf85a302
equal deleted inserted replaced
14:5bf83dc720b3 17:a5ac35ca6d81
    93             iOOldSchool( 0 ),
    93             iOOldSchool( 0 ),
    94             iIOldSchool( 0 ),
    94             iIOldSchool( 0 ),
    95             iOOldSchoolProceeding( 0 ),
    95             iOOldSchoolProceeding( 0 ),
    96             iOOldSchoolCompleted( 0 ),
    96             iOOldSchoolCompleted( 0 ),
    97             iIsMaster( ETrue ),
    97             iIsMaster( ETrue ),
    98             iOldLocalMediaPort( 0 )
    98             iOldLocalMediaPort( 0 ),
       
    99             iStoreRemoteOrigin ( ETrue )
    99     {
   100     {
   100     iSessionId = GetRandomNumber();
   101     iSessionId = GetRandomNumber();
   101     iSessionVersion = GetRandomNumber();
   102     iSessionVersion = GetRandomNumber();
   102     iIsSignallingRequired = KMceNoSignalling;
   103     iIsSignallingRequired = KMceNoSignalling;
   103     }
   104     }
   506         {
   507         {
   507         MCEMM_DEBUG("CMceSdpSession::DecodeOfferL(), ERROR: No media lines")
   508         MCEMM_DEBUG("CMceSdpSession::DecodeOfferL(), ERROR: No media lines")
   508         MCEMM_DEBUG("CMceSdpSession::DecodeOfferL(), Exit ")
   509         MCEMM_DEBUG("CMceSdpSession::DecodeOfferL(), Exit ")
   509         return KMceSipWarnIncompatibleMediaFormat;
   510         return KMceSipWarnIncompatibleMediaFormat;
   510         }
   511         }
   511         
   512     
   512     // store the remote o= field
   513     //avoid to store the value second time when in nat environment
   513     StoreRemoteOriginL();
   514     if ( iStoreRemoteOrigin )
   514     // store the remote a= field
   515         {
   515     StoreRemoteMediaFieldsL();
   516         // store the remote o= field
       
   517         StoreRemoteOriginL();
       
   518         // store the remote a= field
       
   519         StoreRemoteMediaFieldsL();
       
   520         }
   516     //set remote ip address
   521     //set remote ip address
   517     result = SetRemoteIpAddressL( aSession, aSdpDocument );
   522     result = SetRemoteIpAddressL( aSession, aSdpDocument );
   518     
   523     
   519     if ( result != KErrNone )
   524     if ( result != KErrNone )
   520         {
   525         {