stemodem: Fix for MT call not working when caller id is hidden.
PATCH 1/1 stemodem: Fix for MT call not working when caller id is hidden.
From: Marit Henriksen <[email protected]>
In *ECAV, the number will not be included if caller id is hidden. Set it to an empty string in that case.
--- drivers/stemodem/voicecall.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-)
drivers/stemodem/voicecall.c +7 -3
@@ -442,10 +442,14 @@ static void ecav_notify(GAtResult *result, gpointer user_data)if (status ==CALL_STATUS_DIALING || status ==CALL_STATUS_WAITING || status ==CALL_STATUS_INCOMING ) { +/* +* If caller uses hidden id, the number and +* number type might not be present. Don't +* look for type if number is not present. +*/ if (!g_at_result_iter_next_string (&iter, &num)) -return ; - -if (!g_at_result_iter_next_number (&iter, &num_type)) + num ="" ; +else if (!g_at_result_iter_next_number (&iter, &num_type))return ; }
Signature · 1 line
1.7.1
Hi Marit,
Quoted 18 lines · Marit Henriksen
From: Marit Henriksen <[email protected]>
In *ECAV, the number will not be included if caller id is hidden. Set it to an empty string in that case.
--- drivers/stemodem/voicecall.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-)drivers/stemodem/voicecall.c +2
-0@@ -442,10 +442,14 @@ static void ecav_notify(GAtResult *result, gpointer user_data)if (status ==CALL_STATUS_DIALING || status ==CALL_STATUS_WAITING || status ==CALL_STATUS_INCOMING ) { +/* +* If caller uses hidden id, the number and
drivers/stemodem/voicecall.c static void ecav_notify(GAtResult *result, gpointer user_data) · line 453
Quoted 10 lines
drivers/stemodem/voicecall.c +5
-3+* number type might not be present. Don't +* look for type if number is not present. +*/ if (!g_at_result_iter_next_string (&iter, &num)) -return ; - -if (!g_at_result_iter_next_number (&iter, &num_type)) + num ="" ; +else if (!g_at_result_iter_next_number (&iter, &num_type))return ;
One small nitpick, but you're not initializing num_type if the number is missing. While this probably works out, I'd rather be a bit more pedantic inside the driver. Can you initialize it to unknown number type (I think 128 is preferred by 27.007) in this case?
drivers/stemodem/voicecall.c static void ecav_notify(GAtResult *result, gpointer user_data) · line 455
Quoted 2 lines
drivers/stemodem/voicecall.c +0
-0}
I also notice that you're not ever able to report the clip_validity == 1 case (e.g. number withheld). Since oFono does make a distinction between the various clip_validity types, it would be nice if there was a way around this limitation.
Regards,
-Denis
2010/12/17 Denis Kenzior <[email protected]>
Quoted 33 lines
Hi Marit,
drivers/stemodem/voicecall.c static void ecav_notify(GAtResult *result, gpointer
Quoted 13 lines · Marit Henriksen
From: Marit Henriksen <[email protected]>
In *ECAV, the number will not be included if caller id is hidden. Set it to an empty string in that case.
--- drivers/stemodem/voicecall.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-)drivers/stemodem/voicecall.c +0
-0@@ -442,10 +442,14 @@ static void ecav_notify(GAtResult *result, gpointer
user_data)Quoted 5 lines
drivers/stemodem/voicecall.c +2
-0if (status ==CALL_STATUS_DIALING || status ==CALL_STATUS_WAITING || status ==CALL_STATUS_INCOMING ) { +/* +* If caller uses hidden id, the number and drivers/stemodem/voicecall.c static void ecav_notify(GAtResult *result, gpointer user_data) · line 453
Quoted 10 lines
drivers/stemodem/voicecall.c +5
-3+* number type might not be present. Don't +* look for type if number is not present. +*/ if (!g_at_result_iter_next_string (&iter, &num)) -return ; - -if (!g_at_result_iter_next_number (&iter, &num_type)) + num ="" ; +else if (!g_at_result_iter_next_number (&iter, &num_type))return ;
Quoted 6 lines
One small nitpick, but you're not initializing
num_typeif the number is missing. While this probably works out, I'd rather be a bit more pedantic inside the driver. Can you initialize it to unknown number type (I think 128 is preferred by 27.007) in this case?
OK, I will fix this and send a new version of the patch.
Quoted 9 lines
}Quoted 1 line
I also notice that you're not ever able to report the
clip_validity== 1 case (e.g. number withheld). Since oFono does make a distinction between the variousclip_validitytypes, it would be nice if there was a way around this limitation.
I will look into that, but I would like to keep it out of this fix, and rather do it as an improvement, OK?
regards, Marit
Regards,
Quoted 2 lines
-Denis
Hi Marit,
Quoted 2 lines
I will look into that, but I would like to keep it out of this fix, and rather do it as an improvement, OK?
That's fine.
Regards,
-Denis