callcontinuity/vcc/src/tvccstatecalling.cpp
branchRCL_3
changeset 9 bddb6d4447db
parent 0 a4daefaec16c
child 14 be41ab7b952f
--- a/callcontinuity/vcc/src/tvccstatecalling.cpp	Fri Mar 12 15:42:09 2010 +0200
+++ b/callcontinuity/vcc/src/tvccstatecalling.cpp	Mon Mar 15 12:39:55 2010 +0200
@@ -118,9 +118,17 @@
         RUBY_DEBUG0( "TVccStateCalling::CallStateChanged - swap the calls" );
         
 		aContext.SetCall(aContext.SecondaryCall());
-		TRAP_IGNORE( aContext.Notifier().NotifySubscriberL( EVccCsToPsHoInprogress, 
-		                                       KErrNone ) );
 		
+		if ( aContext.Parameters().CallType() == CCPCall::ECallTypePS )
+            {
+            TRAP_IGNORE( aContext.Notifier().NotifySubscriberL( EVccCsToPsHoInprogress, 
+                                                   KErrNone ) );            
+            }
+        else
+            {
+            TRAP_IGNORE( aContext.Notifier().NotifySubscriberL( EVccPsToCsHoInprogress, 
+                                                       KErrNone ) );
+            }
 		//-> Set Next State - if the call is idle just destroy call object and 
 		//go to init-state
 		__ASSERT_DEBUG( aContext.SecondaryCall() != NULL,