RMobileCall::HangUp does not disconnect the Video Call when it is in progress(connected state) (Known Issue)
RMobileCall::HangUp() API does not work when the call is in progress, though it works when the call is in ringing state but not answered.
Article Metadata
Tested with
Devices(s): N8, E7
Compatibility
Platform(s): Symbian^3
Platform Security
Signing Required: DevCert
Capabilities: SwEvent
Article
Created: debjit.roy
(14 Mar 2012)
Last edited: hamishwillee
(15 Mar 2012)
Description
Opening a new call:
RMobileCall iCall;
iCall.OpenNewCall( iLine ); // RMobileLine iLine
iCall.Dial( iStatus, iDataPckg, iNumber ); //RMobileCall::TMobileHscsdCallParamsV1Pckg iDataPckg;
The code snippet used to hang up a video call:
void CVtEngTestCall::EndVideoCallL()
{
if ( iCall.SubSessionHandle() == 0 )
{
User::Leave( KErrBadHandle );
}
if ( iState == EDialling )
{
Cancel();
return;
}
iCall.HangUp( iStatus );
SetActive();
iState = EHangingUp;
}
Closing the call:
iCall.Close();
iLine.Close();
This snippet should actually hang up the call, and it does in the following scenario:
- Make video call through application.
- Call is in ringing state.
- Hang the call from the application using RMobileCall::HangUp() API.
But once the call is connected, hang up from the application using RMobileCall::HangUp() API does not work.
- Make video call through application
- Answer the call (now call is Connected)
- Hang the call from the application using RMobileCall::HangUp() API.
Solution
One workaround could be simulating the red key to hang up the call. Snippet is as follows:
RWsSession ws;
ws.Connect();
TRawEvent ev1;
ev1.Set(TRawEvent::EKeyDown, EStdKeyNo); // Simulating red key
ws.SimulateRawEvent(ev1); // CAPABILITY Req. SwEvent
Defect tracking
This defect can be tracked on Nokia Developer Defect tracking system: 863


Debjit.roy -
A bug has been raised on this issue. External link to bug: http://www.developer.nokia.com/bugs/show_bug.cgi?id=863debjit.roy 15:00, 14 March 2012 (EET)
Hamishwillee - Thanks Debjit
Worth putting this into the article itself, which I have done. FYI, also added category Telephony, and version category Symbian^3hamishwillee 04:48, 15 March 2012 (EET)