Hi! I'm currently working on an application that will listen for incoming calls. However, I'm not quite successful with this.
I added this line so that I get notified everytime there is an incoming call on a line.
iLine.NotifyIncomingCall(iStatus, iCallName);
SetActive();
Then after receiving a notification on an incoming call I open the existing call and request for notification on the call status. Which can be ringing, hangup,answering ... and so on.
User::LeaveIfError(iCall.OpenExistingCall(iLine, iCallName));
iCall.NotifyStatusChange(iStatus, iCallStatus);
SetActive();
This is where I'm having a problem, whenever the application gets notified of the call status change, the application just close. I don't know why. Is it ok for one active objects to have multiple request. I mean do I have to call iLine.NotifyIncomingCallCancel() before calling for iCall.NotifyStatusChange(iStatus, iCallStatus)? And do I have to call User::LeaveIfError(iCall.OpenExistingCall(iLine, iCallName)) before calling iCall.NotifyStatusChange(iStatus, iCallStatus)?
Please shed some light on this. Thanks.

Reply With Quote

oCancel()

