All About Symbian - Nokia (S60) and Sony Ericsson (UIQ) smartphones unwrapped

Old 15-11-2007, 05:41 AM
white_dragon white_dragon is offline
Registered User
Join Date: Apr 2004
Posts: 66
white_dragon is on a distinguished road
dial a number after hangup

on 3rd edition:
below is code I use in an active class to detect a dialing event,
hangup the call and call a different number instead.

I encounter 2 problems:
1) Some times the call I initiate using DialNewCall (after hanging up a call) doesnt actually make a real call - I can see the dialing notification but no dialing occures.

2) When DialNewCall succeeds ,if for some reason I get an Idle event (for e.g if dest is shut down),I use CancelAsync(),DialCancel() and than Close() the call,but many times the device gets stuck after doing that.

What would you suggest me to change in order to make this code more stable? (without the device getting stuck and calls that doesn't work)

Thank you

RLine::TLineInfo lineInfo; 
TInt openExisting = User::LeaveIfError(iCall.OpenExistingCall(iLine,lineInfo.iNameOfLastCallAdded));
RMobileCall::TMobileCallInfoV1 iRemotePartyInfo;  
RMobileCall::TMobileCallInfoV1Pckg des(iRemotePartyInfo);
iRemotePartyInfo = des(); 
TBuf<30> callerNumber;
	//Hangup the call (from AppUi class):
	TKeyEvent key2;
	TRawEvent ev1;
	TRawEvent ev2;
	RWsSession ws;
	key2.iCode =EKeyNo;
	key2.iModifiers = 0; 
	key2.iRepeats = 0;
	key2.iScanCode =EStdKeyNo;
	ev1.Set(TRawEvent::EKeyDown, EStdKeyNo);
	ev2.Set(TRawEvent::EKeyUp, EStdKeyNo);

//Event:Idle - make a new call
TBuf <100> newCallName;
User::LeaveIfError(iCall.OpenNewCall(iLine, newCallName)
CTelephony::TTelNumber telNumber(tsdNum->Des());
CTelephony::TCallParamsV1 callParams;
callParams.iIdRestrict = CTelephony::ESendMyId;
CTelephony::TCallParamsV1Pckg callParamsPckg(callParams);

//if I dont get connecting event (number not available)

Old 18-11-2007, 04:10 PM
white_dragon white_dragon is offline
Registered User
Join Date: Apr 2004
Posts: 66
white_dragon is on a distinguished road
it seems that these problems occures on Dual mode.
switching to GSM is not a good solution cause I need this code to work also in Dual.

Have a great Week !

Old 18-11-2007, 04:30 PM
white_dragon white_dragon is offline
Registered User
Join Date: Apr 2004
Posts: 66
white_dragon is on a distinguished road
I think that maybe "restarting" the active object after the call hangs up would solve many problems.
Does it sound like a possible solution?
if it is a possible solution,the question is how do I restart the Active object from the active object itself?
Any tips would help


dial, hangup, number

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chanhe default answerphone number - speed dial 1? BasiBabes Nokia N95 and N95 8GB 2 18-05-2007 02:21 PM
Long delay before Truphone starts to dial a number meirionwyllt Nokia N80 0 15-01-2007 02:37 PM
Unable to send number datas (dial tone) during a call. riannn Nokia Eseries S60 3.0 phones (E50, E60, E62, E61, E61i, E70) 8 13-06-2006 03:15 PM
Change voice mail number (speed dial) TerminalAddict Nokia 6630, 6680, 6681 and 6682 3 15-02-2006 02:48 AM
Searcg Contacts by Number? Mark0824 Nokia 7610 and 6670 2 29-09-2004 12:00 AM

All times are GMT. The time now is 01:59 PM.

vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright Notes || Contact Us || Privacy Policy