convergedcallengine/csplugin/src/cspcall.cpp
branchRCL_3
changeset 18 594d59766373
parent 15 13725ba12484
--- a/convergedcallengine/csplugin/src/cspcall.cpp	Thu Jul 15 19:16:18 2010 +0300
+++ b/convergedcallengine/csplugin/src/cspcall.cpp	Thu Aug 19 10:28:14 2010 +0300
@@ -216,6 +216,8 @@
         case RMobileCall::EStatusDialling:
             CSPLOGSTRING(CSPINT, "CSPCall callstate Dialling");
             {
+			// Start streams also for MO video call to prevent audio routing problems
+			// with other applications.
             if ( iAudioHandler 
                  && ( iParams->CallType() == CCPCall::ECallTypeCSVoice 
                     || iParams->CallType() == CCPCall::ECallTypeVideo ) )
@@ -283,6 +285,17 @@
             // Agreement with TSY is that the
             // COLP number is available in connected state.
             NotifyRemotePartyNumberChanged();            
+            
+            // Stop streams for MO video call so that Video Telephony can 
+            // receive RemCon commands instead of Phone.
+            if ( iMobileOriginated
+                && iAudioHandler 
+                && iAudioStatus == ECSPCallAudioStatusActive
+                && iParams->CallType() == CCPCall::ECallTypeVideo )
+                {
+                iAudioStatus = ECSPCallAudioStatusInactive;
+                iAudioHandler->Stop();
+                }
             break;
             }
         // Indicates that call is disconnecting. (Same as RCall::HangingUp)