* [PATCH 2/4] Fix: No need to put active call on hold
@ 2009-11-16 14:11 Zhenhua Zhang
2009-11-16 17:26 ` Denis Kenzior
0 siblings, 1 reply; 3+ messages in thread
From: Zhenhua Zhang @ 2009-11-16 14:11 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1203 bytes --]
First, call->status should be 1 stead of 2 in the loop. Second,
it's incorrect to set status to hold because later callheld=1
will swap call status back. So active->hold->active again is
not correct.
---
drivers/hfpmodem/voicecall.c | 12 ------------
1 files changed, 0 insertions(+), 12 deletions(-)
diff --git a/drivers/hfpmodem/voicecall.c b/drivers/hfpmodem/voicecall.c
index ba4b4d5..d9c3c2a 100644
--- a/drivers/hfpmodem/voicecall.c
+++ b/drivers/hfpmodem/voicecall.c
@@ -285,7 +285,6 @@ static void atd_cb(gboolean ok, GAtResult *result,
gpointer user_data)
int validity = 2;
struct ofono_error error;
struct ofono_call *call;
- GSList *l;
dump_response("atd_cb", ok, result);
@@ -294,17 +293,6 @@ static void atd_cb(gboolean ok, GAtResult *result,
gpointer user_data)
if (!ok)
goto out;
- /* On a success, make sure to put all active calls on hold */
- for (l = vd->calls; l; l = l->next) {
- call = l->data;
-
- if (call->status != 0)
- continue;
-
- call->status = 2;
- ofono_voicecall_notify(vc, call);
- }
-
call = create_call(vd, 0, 0, CALL_STATUS_DIALING, NULL, type,
validity);
if (!call) {
--
1.6.2.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 2/4] Fix: No need to put active call on hold
2009-11-16 14:11 [PATCH 2/4] Fix: No need to put active call on hold Zhenhua Zhang
@ 2009-11-16 17:26 ` Denis Kenzior
2009-11-17 0:39 ` Zhang, Zhenhua
0 siblings, 1 reply; 3+ messages in thread
From: Denis Kenzior @ 2009-11-16 17:26 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 491 bytes --]
Hi Zhenhua,
> First, call->status should be 1 stead of 2 in the loop. Second,
> it's incorrect to set status to hold because later callheld=1
> will swap call status back. So active->hold->active again is
> not correct.
Unfortunately we do need to put the calls on hold otherwise the core might
pick the wrong call as the 'dialed' call. Instead we now ignore the
callheld=1 indicator in this situation. Let me know if this still doesn't fix
this issue.
Regards,
-Denis
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH 2/4] Fix: No need to put active call on hold
2009-11-16 17:26 ` Denis Kenzior
@ 2009-11-17 0:39 ` Zhang, Zhenhua
0 siblings, 0 replies; 3+ messages in thread
From: Zhang, Zhenhua @ 2009-11-17 0:39 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 935 bytes --]
Hi Denis,
Denis Kenzior wrote:
> Hi Zhenhua,
>
>> First, call->status should be 1 stead of 2 in the loop. Second, it's
>> incorrect to set status to hold because later callheld=1 will swap
>> call status back. So active->hold->active again is not correct.
>
> Unfortunately we do need to put the calls on hold otherwise
> the core might pick the wrong call as the 'dialed' call. Instead we
> now ignore the callheld=1 indicator in this situation. Let me know
> if this still doesn't fix this issue.
Ok. So let's extend the ignore_callheld_1 to another case. If we already
put current active call on hold, user dial out another call from phone,
we also need set ignore_callheld_1 as TRUE so the held call won't
be active again.
> Regards,
> -Denis
> _______________________________________________
> ofono mailing list
> ofono(a)ofono.org
> http://lists.ofono.org/listinfo/ofono
Regards,
Zhenhua
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-11-17 0:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-16 14:11 [PATCH 2/4] Fix: No need to put active call on hold Zhenhua Zhang
2009-11-16 17:26 ` Denis Kenzior
2009-11-17 0:39 ` Zhang, Zhenhua
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.