Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Telephone number of an outgoing call

2 replies · 4,212 views · Started 09 January 2005

Hi
I try to retrive the number which I dial to in an outgoing call.
In the EStatusDialling event I use the below code :
In the Series 60 it works !!!

In the P900 the value is empty.

PLEASE ADVISE

Thanks a lot , TE


RMobileCall iCall;
RLine::TLineInfo lineInfo;
iLine.GetInfo(lineInfo);
TInt openExisting = User::LeaveIfError(iCall.OpenExistingCall(iLine, lineInfo.iNameOfLastCallAdded));
RMobileCall::TMobileCallInfoV1 iRemotePartyInfo;
TPckg<RMobileCall::TMobileCallInfoV1> des(iRemotePartyInfo);
iCall.GetMobileCallInfo(des);
iRemotePartyInfo = des();
TBuf<100> telNumber;
// Tried this also - telNumber.Append(iRemotePartyInfo.iRemoteParty.iRemoteNumber.iTelNumber);
telNumber.Append(iRemotePartyInfo.iDialledParty.iTelNumber);

Hai,

This is regarding control over outgoing call issue, I would like to convey the exact problem which Iam facing.

In Symbain 7.0s iam using the bleow mentioned code

TRequestStatus status;
TName callName;
line.NotifyCallAdded(status, callName); (line is RMobileLine instance)

User::WaitForRequest(status);

// Now we have detected a new call, open the call from it's name

User::LeaveIfError(call.OpenExistingCall(line, callName)); (call is RMobilecall instance)

User::WaitForRequest(status);

call.HangUp(status);

User::LeaveIfError(server.UnloadPhoneModule(KTsyName));
call.Close();
line.Close();
phone.Close();
server.Close();

When use this code the in a application iam able to disconnect or hang-up the call only for the first time from the next call onwards iam not able to hanup the call because the call control is not coming to my application to use call.HangUp(status) .Can you tell me how to use this NotifyCallAdded ,OpenExistingCall api's will work . Will these apis will continuously in listening mode when the call is initiated or do we need to make them listen in continuos mode,if so what is the procedure.

As i have to retrieve the outgoing number i tried using the apis(RMobileCall::GetMobileCallInfo) function after hanging up the call but the phone is getting rebooted(6600) . Iam unable to use the function GetCallInfoL of CTelephonyFunctions(etel3rdParty) due to header files mismatch. These functions i have tried according to Nishaat guide lines. I have used CLogViewRecent class to retrieve the phone number but the application is getting hanged

In Symbain 6.1 OS i have tried to get the control over outgoing call using active object .But the active object is not returning exact state of the call.I have used NotifyStatusChange api.