multimediacommsengine/mmcesrv/mmceserver/src/mcestateoffering.cpp
branchRCL_3
changeset 46 4da1f672912e
parent 45 3f7c7e6eea8a
equal deleted inserted replaced
45:3f7c7e6eea8a 46:4da1f672912e
    29 #include "mceactionset.h"
    29 #include "mceactionset.h"
    30 #include "mcefcactionset.h"
    30 #include "mcefcactionset.h"
    31 #include "mceclientserver.h"
    31 #include "mceclientserver.h"
    32 #include "mcesip.h"
    32 #include "mcesip.h"
    33 #include "mcesipsession.h"
    33 #include "mcesipsession.h"
       
    34 #include "mcenatsipsession.h"
    34 #include "mcenatmacros.h"
    35 #include "mcenatmacros.h"
    35 #include "mcesdpsession.h"
    36 #include "mcesdpsession.h"
    36 #include "mcesrvlogs.h"
    37 #include "mcesrvlogs.h"
    37 #include "mcemediastate.h"
    38 #include "mcemediastate.h"
    38 #include "mcemediadefs.h"
    39 #include "mcemediadefs.h"
   654                                                    session.Response() );
   655                                                    session.Response() );
   655             }
   656             }
   656          else
   657          else
   657             {
   658             {
   658             session.Actions().UpdateFailed(); 
   659             session.Actions().UpdateFailed(); 
       
   660             if(session.IsNatSession()) 
       
   661             	{
       
   662 				CMceNatSipSession* natsession = static_cast <CMceNatSipSession*>( &session );
       
   663 				natsession->StateRollBack();
       
   664             	}
   659             session.Actions().StateChanged( KMceStateEstablished );
   665             session.Actions().StateChanged( KMceStateEstablished );
   660             session.Actions().ClientStateChangedL( CMceSession::EEstablished, 
   666             session.Actions().ClientStateChangedL( CMceSession::EEstablished, 
   661                                                    *session.Body(),
   667                                                    *session.Body(),
   662                                                    session.Response(),
   668                                                    session.Response(),
   663                                                    KErrCancel );
   669                                                    KErrCancel );