Archived:Dialing a voice call using AIW fails in Nokia N95 8GB (Known Issue)
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}}.
When a phone call is dialed using the AIW APIs, it fails with error code -6(KErrArgument).
Article Metadata
Tested with
Devices(s): Nokia N95 8GB
Compatibility
Platform(s): S60 3rd Edition, FP1
Article
Created: User:Technical writer 1
(11 Feb 2008)
Last edited: hamishwillee
(07 Sep 2012)
Note: This API is not part of the public SDK. It can be found in the SDK API Plug-in.
Description
The following code can be used to dial VoIP, video, or voice calls using the AIW API:
TAiwDialDataV1 data;
TAiwDialDataV1Pckg dataPckg( data );
data.SetTelephoneNumber(telNumber);
// CallType can be Voice, VoIP, or Video
TAiwCallType callType(EAiwVoice);
data.SetCallType( callType );
TAiwNameBuffer name(_L("Callee"));
data.SetName(name);
data.SetWindowGroup( CCoeEnv::Static()->RootWin().Identifier() );
data.SetShowNumber(ETrue);
data.SetRemoveInvalidChars(EFalse);
TPtrC8 ptr;
ptr.Set( dataPckg );
TAiwVariant variant( ptr );
TAiwGenericParam param( EGenericParamCallDialDataV1, variant );
CAiwGenericParamList& paramList = serviceHandler->InParamListL();
paramList.AppendL( param );
//Make call
serviceHandler->ExecuteServiceCmdL( KAiwCmdCall, paramList, serviceHandler->OutParamListL() );
This works fine in S60 3rd Edition and S60 3rd Edition, FP1 devices, such as the Nokia N95, but ExecuteServiceCmdL fails with error code -6 KErrArgument in the Nokia N95 8GB.
Solution
Use the 3rd Party Telephony API or Phone Client Dial APIs (part of API Plug-in package) instead of AIW (part of API Plug-in package) in the N95 8GB. This issue is expected to be fixed in future releases of the N95 8GB.

