Languages

Menu
Sites
Language
Getting incomming number

Hai all,

I used Callinfo class to get a incomming call number

CallManager* pCallManager = new (std::nothrow) CallManager();

CallStatus callStatus =pCallManager->GetCurrentCallStatus();

  if (callStatus == CALL_STATUS_RINGING)
         {
            String number

             CallInfo pcallinfo;

                 number = pcallinfo.GetNumber();
              

                 AppLog("incomming call number is --->%ls",number.GetPointer());

   }

Iam not getting Incomming call number it is showing empty

 

Iam making a call from Ide through Event injector to Emulator to get a incomming call number

 

Can any body solve this issue plz

 

 

 

 

Edited by: P puvvada on 01 Apr, 2014

Responses

4 Replies
Alex Dem

Hi,
I was able to get call number and status for emulator for call initiated from Event Injector, but for this you need to create on app start
_pCallManager = new (std::nothrow) CallManager();
    result r = _pCallManager->Construct(*this); ( for construct Required feature is:
http://tizen.org/feature/network.telephony )
and delete on finish: delete _pCallManager;

and inherit your class from Tizen::Telephony::ITelephonyCallEventListener and reimplement OnTelephonyCallStatusChangedN

see code example:

void
TestCalling::OnTelephonyCallStatusChangedN(CallStatus callStatus, CallInfo* pCallInfo)
{
  CallType callType;
  String number;

  AppLog("OnTelephonyCallStatusChangedN %d",callStatus);
  if (callStatus == CALL_STATUS_RINGING)
  {
      callType  = pCallInfo->GetCallType();
      number = pCallInfo->GetNumber();
      AppLog("OnTelephonyCallStatusChangedN=%S",number.GetPointer());
      AppLog("OnTelephonyCallStatusChangedN=%d",callType);
  }

  delete pCallInfo;
}

p.s. If in Event Injector call type was Hidden - I was unable to get number
Alexey.

P puvvada

Thanks a lot its working now

Seemanta Saha

Hello Mr. Alex Dem,

I want to implement the same thing using Tizen SDK 2.3.0.

But, as far as I checked, there is no such support for 2.3.0. Would you please tell me how can I implement this on my native application using Tizen 2.3.0 ?

 

Thanks

Seemanta Saha

Alex Dem

Hi,
I did not find api to extract call number for Native. Looks like impossible. Also I have checked using telephony_call_get_voice_call_state() method on Kiran device. In accordance with dev-guide it returns TELEPHONY_CALL_STATE_CONNECTING from telephony_call_state_e structure for both incoming and outgoing calls and TELEPHONY_CALL_STATE_CONNECTED after call has been accepted.
Alexey.