realtimenetprots/sipfw/ProfileAgent/profile_fsm/src/Sipprflregisteredstate.cpp
branchRCL_3
changeset 6 43c4dec3cb1f
parent 0 307788aac0a8
child 13 822e1f077722
equal deleted inserted replaced
5:532ef74cdfa0 6:43c4dec3cb1f
    12 //
    12 //
    13 // Description:
    13 // Description:
    14 // Name        : sipprflregisteredstate.cpp
    14 // Name        : sipprflregisteredstate.cpp
    15 // Part of     : sip profile fsm
    15 // Part of     : sip profile fsm
    16 // implementation
    16 // implementation
    17 // Version     : %version: 2.1.1 %
    17 // Version     : %version: 2.1.2 %
    18 //
    18 //
    19 
    19 
    20 
    20 
    21 
    21 
    22 // INCLUDE FILES
    22 // INCLUDE FILES
   287                  CSIPConcreteProfile::EAutoRegistration,
   287                  CSIPConcreteProfile::EAutoRegistration,
   288                  *oldProfile, aNewProfile))
   288                  *oldProfile, aNewProfile))
   289         {
   289         {
   290         aContext.SetProfile(&aNewProfile);
   290         aContext.SetProfile(&aNewProfile);
   291         }
   291         }
   292 	else if((&aNewProfile)->IsDefault() != (oldProfile)->IsDefault())
   292 	else if((&aNewProfile)->IsDefault() && !(oldProfile)->IsDefault())
   293 		{
   293 		{
   294 		aContext.SetProfile(&aNewProfile);
   294 		aContext.SetProfile(&aNewProfile);
   295 		}        
   295 		}        
   296     else
   296     else
   297         {
   297         {