View a printable version of the current page.
  Wiki > Symbian Developer Network Public Wiki > ... > SDN Wiki Competition 2007 entries > Retrieve caller number in 3rd edition
  Retrieve caller number in 3rd edition
Added by eswar_illuri, last edited by Rodney De Gale on Feb 15, 2008  (view change)
Labels: 
(None)

In 3rd edition we can retrieve the caller number using CTelephony. The following code explains how to retrieve the caller number using CTelephony,

  
 CTelephony *iTelephony = CTelephony::NewL();  TBuf<20> iDialedNumber;
 CTelephony::TCallInfoV1 callInfoV1;
 CTelephony::TCallInfoV1Pckg callInfoV1Pckg( callInfoV1 ); CTelephony::TCallSelectionV1 callSelectionV1;
 CTelephony::TCallSelectionV1Pckg callSelectionV1Pckg( callSelectionV1 ); CTelephony::TRemotePartyInfoV1 remotePartyInfoV1;
 CTelephony::TRemotePartyInfoV1Pckg remotePartyInfoV1Pckg( remotePartyInfoV1 ); callSelectionV1.iLine = CTelephony::EVoiceLine;
 callSelectionV1.iSelect = CTelephony::EInProgressCall;
 iTelephony -> GetCallInfo( callSelectionV1Pckg, callInfoV1Pckg, remotePartyInfoV1Pckg );
 iDialedNumber.Zero();

 iDialedNumber.Append(remotePartyInfoV1.iRemoteNumber.iTelNumber);
 TBuf<150> iGetCall;
 iGetCall.Append(_L("Incoming call number is : "));
 iGetCall.Append(iDialedNumber);
[live-web] Interactive Services Terms & Conditions of use | Terms of use | Privacy policy | Media Center | Contact us | © 2008 Symbian