AnswerIncommingcall issue
| Tue, 2006-10-10 13:39 | |
|
Hi,
I am developing an application which displays an user friendly screen when an incomming call comes . when i call iTelephony->AnswerIncomingCall(iStatus, iCallId); application is giving Panic EUser 46. So when i called SetActive() after iTelephony->AnswerIncomingCall(iStatus, iCallId); Incomming call is being answered but the phone hangs. This is my code void CActiveIncomingCallObserver::RunL() { if(iStatus==KErrNone) { if(!iCallActive) { iObserver->iWinGroup.EnableReceiptOfFocus(ETrue); iObserver->iWinGroup.SetOrdinalPosition(0, KMaxTInt); iObserver->iWinGroup.DefaultOwningWindow(); CEikonEnv::Static()->BringOwnerToFront(); iObserver->iWinGroup.SetOrdinalPosition(0, KMaxTInt); _LIT(KMyAppWindowGroup, "*cityid*"); TInt wgId = CEikonEnv::Static()->WsSession().FindWindowGroupIdentifier(0, KMyAppWindowGroup, 0); CEikonEnv::Static()->WsSession().SetWindowGroupOrdinalPosition(wgId, 0); TApaTask iTask(CEikonEnv::Static()->WsSession()); iTask.SetWgId(CEikonEnv::Static()->RootWin().Identifier()); iTask.BringToForeground(); iObserver->IncomingCallObserverInterface_HandleItL1(); iCallActive = ETrue; iCallSelectionV1.iLine = CTelephony::EVoiceLine; iCallSelectionV1.iSelect = CTelephony::EInProgressCall ; TInt rVal = iTelephony->GetCallInfo( iCallSelectionV1Pckg, iCallInfoV1Pckg, iRemotePartyInfoV1Pckg ); if(iRemotePartyInfoV1.iRemoteIdStatus == CTelephony::ERemoteIdentityAvailable) { TBuf<64> iNumber; iNumber = iRemotePartyInfoV1.iRemoteNumber.iTelNumber; iObserver->IncomingCallObserverInterface_HandleItL(iNumber); } } } } void CActiveIncomingCallObserver::ContinueWithCall() { if (iCallActive) { CTelephony::TCallId iCallId; iTelephony->AnswerIncomingCall(iStatus, iCallId); SetActive(); //User::WaitForRequest(iStatus); } }\ I don't understand where i am wrong. Any help will be appriciated. Thanks |
|






Forum posts: 1
when i call iTelephony->AnswerIncomingCall(iStatus, iCallId);
application is giving Panic EUser 46.
So when i called SetActive() after iTelephony->AnswerIncomingCall(iStatus, iCallId);
Incomming call is being answered but the phone hangs.
RunL has to return quickly, cause this cannot be Pre-empted. Code as little as possible in this section. .... May be this is the reason ur app hangs
Forum posts: 8
--------------------------------------------------------------------------------
Hi
Iam developing an application which answers the call automatically without the user notice,i acheived one task by answering the call,now i need to cancel the calling dialog box ,that is if the call comes my application have to handle it without the users notification.
Anyone give me idea how to suppress the calling dialog box
THANKS®ARDS
Preethi
HAve Great Day
Forum posts: 45
application is giving Panic EUser 46.
So when i called SetActive() after iTelephony->AnswerIncomingCall(iStatus, iCallId);
Incomming call is being answered but the phone hangs.
Hi shine_jp,
I have a problem similar to you. After answering the call my phone hangs. I have to remove the battery to stop that. Did you solved your problem ?
Please help me .
Thanks in advance,
Tushar
Tushar Bhattacharyya
Forum posts: 8
I am fetching same problem.
Could some one has solved it?
If so please give the example code or give some special topics to do it.