Hi,
Following is the code to mute cellular microphone in my application on S60 3rd Edition FP1.
User::LeaveIfError( iPhoneClientServer.Connect() ); //RPhCltServer iPhoneClientServer;
User::LeaveIfError( iLibrary.Load(KPhoneCltExDllName) ); //RLibrary iLibrary;
TInt res = iLibrary.Lookup(1)();
CPhCltExtFactory* phCltExtFactory = reinterpret_cast<CPhCltExtFactory*>( res );
iPhCommandHandler = phCltExtFactory->CPhCltCommandHandlerLD(); //CPhCltCommandHandler* iPhCommandHandler;
User::LeaveIfError( iPhCommandHandler->Open(iPhoneClientServer) );
TRequestStatus lStatus;
iPhCommandHandler->MuteMicrophone( lStatus, aMicMode );
User::WaitForRequest( lStatus ); // Sometimes application hangs on this line and never returns
lResult = lStatus.Int();
iPhCommandHandler->Close();
iLibrary.Close();
iPhoneClientServer.Close();
What can be the reason for this kind of issue? Is it a known issue of Nokia? Does use of active object instead of WaitForRequest() help? Is there any alternate or internal API available to mute/unmute cell mic & enable/disable loudspeaker?
Thanks
Rajat





