Archived:Sending USSD messages using Symbian C++
Archived: 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
Compatibility
Platform(s): S60 3rd Edition, Feature Pack 2
Article
Created: User:Technical writer 1
(12 Jun 2008)
Last edited: hamishwillee
(02 Jul 2012)
Description
The SDK API Plug-in package for S60 3rd Edition, Feature Pack 2 includes the Archived:Phone Client USSD API. The Phone Client USSD API enables programmatically sending USSD (Unstructured Supplementary Service Data) requests.
Solution
#include <CPhCltUssd.h> // link against phoneclient.lib
// Construct CPhCltUssd and pass ETrue
// as parameter (notes are shown on screen)
CPhCltUssd* ussdClient = CPhCltUssd::NewL( ETrue );
CleanupStack::PushL( ussdClient );
TBuf<16> aMessage;
aMessage.Copy( _L("*101#") ); // USSD code for checking prepaid balance
TInt result = ussdClient->SendUssd( aMessage );
...
CleanupStack::PopAndDestroy( ussdClient );


Please provide link to download this API. I also need to know how to write a program which can capture all USSD messages irrespective of where initiated by the same program of initiated by network.
This feature can not work on "S60 3rd FP2", can you tell me why? thanks
PallaviMajgaokar - Use "Phone Release"
To build, use the "Phone Release" or "Phone Debug" mode. It does not work for "Emulator Debug" mode... Use network control Capability.PallaviMajgaokar 11:47, 16 June 2011 (EEST)
Hosseineghbal - this example for java
hi i need this example for symbian java sdk
tnxhosseineghbal 09:42, 16 February 2013 (EET)
Hamishwillee - This article is archived.
And only applies to Symbian C++hamishwillee 05:06, 15 May 2013 (EEST)