Skip to contentSkip to conversation

Fix: No need to put active call on hold

PATCH Applied Zhenhua Zhang 3 participants 3 messages Nov 16, 2009 – Nov 17, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 2/4 Fix: No need to put active call on hold

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(-)
drivers/hfpmodem/voicecall.c +0 -0
index ba4b4d5..d9c3c2a 100644
@@ -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) {

Signature · 1 line
1.6.2.5
#1 lore raw

Hi Zhenhua,

Quoted 4 lines

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

#2 lore raw

Hi Denis,

Quoted 10 lines · Denis Kenzior

Hi Zhenhua,

Quoted 3 lines

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.

Quoted 6 lines

Regards,
-Denis
_______________________________________________
ofono mailing list
ofono(a)ofono.org
http://lists.ofono.org/listinfo/ofono

Regards,
Zhenhua