Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Archived:Dialing a phone number with pause characters on Symbian

From Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

Article Metadata
Platform(s): S60 2nd Edition, S60 3rd Edition
S60 3rd Edition (initial release)
S60 2nd Edition (initial release)
Created: User:Technical writer 1 (31 Oct 2007)
Last edited: hamishwillee (15 Jun 2012)


Dialing a phone number with an extension (with, for example, characters like 'p') is not possible using CTelephony or RPhone. This can, however, be done using the CPhCltDialer and TPhCltExtPhoneDialData classes.


CTelephony and RPhone classes support only dialing a phone number (numeric only). Dialing a string, that is, a phone number with pause characters like 'p' or 'w', is not supported by CTelephony and RPhone and is possible only with CPhCltDialer and TPhCltExtPhoneDialData. These classes are not part of the public S60 2nd Edition SDK. However, the classes are exposed in S60 3rd Edition with the SDK API Plug-in.

An example of a number with the extension: 121p2

See the following code snippet for an example.




 void DialStringL( const TDesC& aNumber )
   // Load the resource into CONE environment
   // Use "z:\\resource\\PhoneClient.rsc" on S60 3rd Ed
   _LIT(KPhoneClientResourceFile, "z:\\system\\data\\PhoneClient.rsc");
   TFileName resFile(KPhoneClientResourceFile);
   BaflUtils::NearestLanguageFile(CCoeEnv::Static()->FsSession(), resFile);
   const TInt offset = CCoeEnv::Static()->AddResourceFileL(resFile);
   // You need instance of CPhCltDialer
   CPhCltDialer* dialer = CPhCltDialer::NewL();
   TPhCltTelephoneNumber phoneNumber(aNumber);
   TPhCltExtPhoneDialData& dialData = dialer->DialData();
   // Set telephone number with pause character
   // Now remove the resource file lock
This page was last modified on 15 June 2012, at 01:02.
29 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.