phoneengine/callhandling/src/cpecallhandling.cpp
branchRCL_3
changeset 5 2a26698d78ba
parent 4 24062c24fe38
child 20 3c221667e687
equal deleted inserted replaced
4:24062c24fe38 5:2a26698d78ba
   444             TEFLOGSTRING( KTAMESINT, "CALL CPECallHandling::SendMessage -> EPEMessageRemotePartyInfoChanged");
   444             TEFLOGSTRING( KTAMESINT, "CALL CPECallHandling::SendMessage -> EPEMessageRemotePartyInfoChanged");
   445             // HO cases call type can changes
   445             // HO cases call type can changes
   446             CPESingleCall* call;
   446             CPESingleCall* call;
   447             call = static_cast<CPESingleCall*>( iCallArrayOwner->CallByCallId( aCallId ) );
   447             call = static_cast<CPESingleCall*>( iCallArrayOwner->CallByCallId( aCallId ) );
   448                                  
   448                                  
       
   449             MCCECall& connectedCall = call->Call();
       
   450             CCPCall::TCallType callType = connectedCall.Parameters().CallType();
       
   451  
   449             if ( EPEStateConnected == call->GetCallState() )
   452             if ( EPEStateConnected == call->GetCallState() )
   450                 {
   453                 {                
   451                 MCCECall& connectedCall = call->Call();
       
   452                 CCPCall::TCallType callType = connectedCall.Parameters().CallType();
       
   453                 
       
   454                 if ( callType == CCPCall::ECallTypePS ) 
   454                 if ( callType == CCPCall::ECallTypePS ) 
   455                     {
   455                     {
   456                     TEFLOGSTRING( KTAMESINT, 
   456                     TEFLOGSTRING( KTAMESINT, 
   457                         "CALL CPECallHandling::SendMessage -> EPEMessageRemotePartyInfoChanged->update call type to PS");
   457                         "CALL CPECallHandling::SendMessage -> EPEMessageRemotePartyInfoChanged->update call type to PS");
   458                     iModel.DataStore()->SetCallType( EPECallTypeVoIP, aCallId ); 
   458                     iModel.DataStore()->SetCallType( EPECallTypeVoIP, aCallId ); 
   470                     if ( UpdateColpNumber( aCallId, connectedCall ))
   470                     if ( UpdateColpNumber( aCallId, connectedCall ))
   471                         {
   471                         {
   472                         iModel.SendMessage( MEngineMonitor::EPEMessageColpNumberAvailable, aCallId );
   472                         iModel.SendMessage( MEngineMonitor::EPEMessageColpNumberAvailable, aCallId );
   473                         }
   473                         }
   474                     }
   474                     }
   475                 
       
   476                 iModel.DataStore()->SetRemotePartyName( connectedCall.RemotePartyName(), aCallId );                
       
   477                 iModel.DataStore()->SetRemotePhoneNumber( connectedCall.RemoteParty().Left( KPEPhoneNumberMaxLength ), aCallId );
       
   478                 iModel.DataStore()->SetCallIndex(connectedCall.CallIndex(), aCallId );
       
   479                 }
   475                 }
       
   476             // CNAP informations must be in incoming call
       
   477             iModel.DataStore()->SetRemotePartyName( connectedCall.RemotePartyName(), aCallId );                
       
   478             iModel.DataStore()->SetRemotePhoneNumber( connectedCall.RemoteParty().Left( KPEPhoneNumberMaxLength ), aCallId );
       
   479             iModel.DataStore()->SetCallIndex( connectedCall.CallIndex(), aCallId );            
   480             break;
   480             break;
   481             }
   481             }
   482                    
   482                    
   483         case MEngineMonitor::EPEMessageIncoming:
   483         case MEngineMonitor::EPEMessageIncoming:
   484             {
   484             {