phoneplugins/csplugin/src/cspcall.cpp
changeset 45 6b911d05207e
parent 37 ba76fc04e6c2
child 50 377c906a8701
child 51 f39ed5e045e0
equal deleted inserted replaced
37:ba76fc04e6c2 45:6b911d05207e
   274             {
   274             {
   275             CSPLOGSTRING(CSPINT, "CSPCall::NotifyCallStateChangedETel Connected");
   275             CSPLOGSTRING(CSPINT, "CSPCall::NotifyCallStateChangedETel Connected");
   276 
   276 
   277             iDontReportTerm = ETrue;
   277             iDontReportTerm = ETrue;
   278             NotifyCallStateChanged( MCCPCallObserver::ECCPStateConnected );
   278             NotifyCallStateChanged( MCCPCallObserver::ECCPStateConnected );
       
   279             
       
   280             // Agreement with TSY is that the
       
   281             // COLP number is available in connected state.
       
   282             NotifyRemotePartyNumberChanged();            
   279             break;
   283             break;
   280             }
   284             }
   281         // Indicates that call is disconnecting. (Same as RCall::HangingUp)
   285         // Indicates that call is disconnecting. (Same as RCall::HangingUp)
   282         case RMobileCall::EStatusDisconnecting:
   286         case RMobileCall::EStatusDisconnecting:
   283             {
   287             {
  1372     
  1376     
  1373     return err; 
  1377     return err; 
  1374     }
  1378     }
  1375 
  1379 
  1376 // ---------------------------------------------------------------------------
  1380 // ---------------------------------------------------------------------------
       
  1381 // CSPCall::NotifyRemotePartyNumberChanged
       
  1382 //   
       
  1383 // ---------------------------------------------------------------------------
       
  1384 //
       
  1385 void CSPCall::NotifyRemotePartyNumberChanged()
       
  1386     {
       
  1387     CSPLOGSTRING(CSPINT, "CSPCall::NotifyRemotePartyNumberChanged <");
       
  1388     // If COLP number is different from original dialled number
       
  1389     // it is available in connected state of a MO call.
       
  1390     // TSY does not send notification so number must be fetched.
       
  1391     if ( IsMobileOriginated() )
       
  1392         {
       
  1393         RMobileCall::TMobileCallInfoV3 callInfo;
       
  1394         RMobileCall::TMobileCallInfoV3Pckg callInfoPckg( callInfo );
       
  1395     
       
  1396         GetMobileCallInfo( callInfoPckg );    
       
  1397         callInfo = callInfoPckg();
       
  1398     
       
  1399         if ( callInfo.iRemoteParty.iRemoteNumber.iTelNumber.Length() )
       
  1400             {     
       
  1401             NotifyRemotePartyInfoChanged( KNullDesC(),
       
  1402                 callInfo.iRemoteParty.iRemoteNumber.iTelNumber);        
       
  1403             }
       
  1404         }
       
  1405     }
       
  1406 
       
  1407 
       
  1408 // ---------------------------------------------------------------------------
  1377 // CSPCall::CreateCallHandlersL
  1409 // CSPCall::CreateCallHandlersL
  1378 // Create call handlers for call related requests and call monitoring  
  1410 // Create call handlers for call related requests and call monitoring  
  1379 // ---------------------------------------------------------------------------
  1411 // ---------------------------------------------------------------------------
  1380 //    
  1412 //    
  1381 void CSPCall::CreateCallHandlersL()
  1413 void CSPCall::CreateCallHandlersL()
  1799 
  1831 
  1800 // ---------------------------------------------------------------------------
  1832 // ---------------------------------------------------------------------------
  1801 // CSPCall::NotifyRemotePartyInfoChanged
  1833 // CSPCall::NotifyRemotePartyInfoChanged
  1802 // ---------------------------------------------------------------------------
  1834 // ---------------------------------------------------------------------------
  1803 //
  1835 //
  1804 void CSPCall::NotifyRemotePartyInfoChanged(const TDesC& aRemoteParty) 
  1836 void CSPCall::NotifyRemotePartyInfoChanged( const TDesC& aRemotePartyName,
       
  1837                                             const TDesC& aRemotePartyNumber )
  1805     {
  1838     {
  1806     CSPLOGSTRING(CSPREQIN, "CSPCall::NotifyRemotePartyInfoChanged");
  1839     CSPLOGSTRING(CSPREQIN, "CSPCall::NotifyRemotePartyInfoChanged");
  1807     iRemotePartyName = aRemoteParty;
  1840     if ( aRemotePartyName.Length() )    
       
  1841         {
       
  1842         iRemotePartyName = aRemotePartyName;
       
  1843         }
       
  1844     
       
  1845     if ( aRemotePartyNumber.Length() )    
       
  1846         {
       
  1847         iRemotePartyNumber = aRemotePartyNumber;
       
  1848         }
       
  1849     
  1808     NotifyCallEventOccurred( MCCPCallObserver::ECCPNotifyRemotePartyInfoChange );
  1850     NotifyCallEventOccurred( MCCPCallObserver::ECCPNotifyRemotePartyInfoChange );
  1809     }
  1851     }
  1810 
  1852 
  1811 // ---------------------------------------------------------------------------
  1853 // ---------------------------------------------------------------------------
  1812 // CSPCall::DontReportTerminationError
  1854 // CSPCall::DontReportTerminationError