Categories: S60 | Symbian C++ | Telephony | VoIP | Code Examples
This page was last modified 14:56, 24 June 2008.
Phone Client Dial API
From Forum Nokia Wiki
| Note! |
|---|
|
Purpose
The main purpose of phone client dial API is to make a call which will be aware of the native phone application settings. It has been observed that when using the CTelephony class to make voice calls, the phone settings like setting “send my callerID” to “no” are not reflected in the call which is made, where as the calls made from phone client dial API will be aware of these phone settings.
Use cases
How to make a voice call using Phone client dial API?
To dial a string with pause characters
Example code
aNumber is a string containing the number including DTMF codes
The API needs resources loaded into CONE environment...
Nokia have not made the resource file API for this module public so you will need to roll your own
_LIT(KPhoneClientResourceFile, "z:\\resource\\PhoneClient.rsc"); TFileName resFile(KPhoneClientResourceFile); BaflUtils::NearestLanguageFile(CCoeEnv::Static()->FsSession(), resFile); TInt offset = CCoeEnv::Static()->AddResourceFileL(resFile); TPhCltTelephoneNumber phoneNumber(aNumber);
As nokia have not made the API to remove invalid characters public you will need to roll your own code to remove the invalid characters
// Now set the fields CPhCltDialer* dialer = CPhCltDialer::NewL(); TPhCltExtPhoneDialData& dialData = dialer->DialData(); dialData.SetTelephoneNumber(phoneNumber); dialData.SetSendKeyPressed(EFalse); dialData.SetContactId(KPhCltNoContact); dialData.SetWindowGroup(KPhCltGoToIdle); dialer->ExecuteLD();
// Now remove the resource file lock - NB could leak as noted above CCoeEnv::Static()->DeleteResourceFile(offset);
Where to get the header files and libraries
At least: -Network Control (Currently Manufacturer set!!!!) -Network Services -Read Device Data -Read User Data -Write Device Data -Write User Data -maybe more...
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| symbian有没有语音拨号方面的例子? | CCKYLIN | Symbian | 3 | 2004-02-09 06:18 |
| Profile for AT Commands | rajuk_2004 | Bluetooth Technology | 1 | 2007-05-23 12:13 |
| Dialconnection with 6310 | msick | Bluetooth Technology | 1 | 2002-10-21 19:17 |
| client-server | rajesh1410 | General Symbian C++ | 15 | 2007-02-13 09:07 |
| Dial back problems with 6210 and windows 2000 | steve_slater | PC Suite API and PC Connectivity SDK | 1 | 2003-05-16 14:25 |
