Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 11:32, 18 February 2008.

Getting call number with CTelephony

From Forum Nokia Wiki


Following code sample illustrates how to get the remote party’s phone number when dialing a call or when there is an incoming call.

TBuf<100> CallerNumber;
 
if(iCurrentStatus.iStatus == CTelephony::EStatusRinging
|| iCurrentStatus.iStatus == CTelephony::EStatusDialling)
{
	CTelephony::TRemotePartyInfoV1 RemInfoUse;
	CTelephony::TCallInfoV1		   CallInfoUse;
	CTelephony::TCallSelectionV1   CallSelectionUse;
		
	CallSelectionUse.iLine = CTelephony::EVoiceLine;
	CallSelectionUse.iSelect = CTelephony::EInProgressCall;
		
	CTelephony::TRemotePartyInfoV1Pckg 	RemParty(RemInfoUse);
	CTelephony::TCallInfoV1Pckg 		CallInfo(CallInfoUse);
	CTelephony::TCallSelectionV1Pckg 	CallSelection(CallSelectionUse);
				
	iTelephony->GetCallInfo(CallSelection,CallInfo,RemParty);
		
	if(iCurrentStatus.iStatus == CTelephony::EStatusRinging)
	{		
		CallerNumber.Copy(RemInfoUse.iRemoteNumber.iTelNumber);
	}
	else if(iCurrentStatus.iStatus == CTelephony::EStatusDialling)
	{			
		CallerNumber.Copy(CallInfoUse.iDialledParty.iTelNumber);
	}
}

Example Project

Retrieve Number during Incoming Call in 2nd Edition FP3 using CTelephony

Related Link

Related Discussions
Thread Thread Starter Forum Replies Last Post
Problem with fetching IMEI number jp4symbian General Symbian C++ 22 2006-11-10 10:05
SymbianSigned tests dracula78 Symbian Signing, Certification and Security 7 2008-01-14 15:46
Hangup issues.. mayankkedia General Symbian C++ 2 2007-08-22 14:28
Need Help.... Asif Nazir Symbian User Interface 3 2007-11-21 09:56
Incoming call OS 9.1 kkrish General Symbian C++ 5 2006-08-01 07:00
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX