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);