Rejecting call with RCall::HangUp doesn't work
| Mon, 2008-06-23 14:47 | |
|
Hi, I have recently been up to reject incoming calls (S60 3rd FP1). First I was playing with CTelephony but I wasn't quite satisfied with the first-answer-then-hangup way it offers so I tried using the ETEL API for rejection parallelly with CTelephony for other tasks. Here is an excerpt of the code: void CFooBar::RejectL()The scenario is the following: an incoming call arrives at this phone, the call enters CTelephony::EStatusRinging state, we are notified of the call status change, finally RejectL() is called. What here happens is somewhat strange: although the function returns (i.e. does not leave), it does so with an exactly 10-second delay. Same is true if I use the asynchronous RCall::HangUp(). But what I like less is that the call is not terminated. There isn't any notification about call status change either. My questions are: Thanks a lot in advance. |
|






Forum posts: 85
Update: finally I managed to reject the call without having to answer it first. The problem was that I tried to HangUp() a call name other than that of the actual incoming call. So if you want to spare some hours in vain, always open a new RCall handle to RLine::TLineInfo::iNameOfCallForAnswering! (and don't forget to do an RCall::Close() just before, otherwise it crashes...)
Forum posts: 1
Hi Ivsti,
I am having same problem trying to hangup an outgoing call. Can you please show us some sample codes on how you manage to fix this problem?
Thanks
Aires
Forum posts: 85
Well, it depends on whether you are the originator of the call and which API you are using...