Hi all
I want to make a call for symbian ver 9.1 by using CTelephony API,
Here is the simple code:
CDialler::CDialler(): CActive(EPriorityStandard), iTelephony(NULL)
{
}
void CDialler::ConstructL()
{
iTelephony = CTelephony::NewL();
}
CDialler::~CDialler()
{
Cancel();
delete iTelephony;
}
void CDialler::SomeFunction()
{
CActiveScheduler::Add(this);
CTelephony::TTelNumber telNumber(KTheNumber);
CTelephony::TCallParamsV1 callParams;
callParams.iIdRestrict = CTelephony::ESendMyId;
CTelephony::TCallParamsV1Pckg callParamsPckg(callParams);
iTelephony->DialNewCall(iStatus, callParamsPckg, telNumber, iCallId);
SetActive();
}
void CDialler::RunL()
{
if(iStatus==KErrNone)
{
}
}
void CDialler:oCancel()
{
iTelephony->CancelAsync(CTelephony::EDialNewCallCancel);
}
=======
and I call the method in this way:
CDialler* iDialer = new (ELeave) CDialler();
CleanupStack::PushL(iDialer);
iDialer -> ConstructL();
iDialer -> SomeFunction();
CleanupStack::Pop(iDialer);
but no event without any error messages occures!
what should I do?
tnx

oCancel()
Reply With Quote


