Skip to contentSkip to conversation

stemodem: Fix for MT call not working when caller id is hidden.

PATCH Superseded Marit Henriksen 2 participants 3 messages Jan 4, 2011

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 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, and set number type to 128, unknown number type.

---
 drivers/stemodem/voicecall.c |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)
drivers/stemodem/voicecall.c +10 -5
index bf68f52..7f0a19f 100644
@@ -1,4 +1,4 @@
-/*
+e/*
  *
  *  oFono - Open Source Telephony
  *
@@ -442,10 +442,15 @@ static void ecav_notify(GAtResult *result, gpointer user_data)
 	if (status == CALL_STATUS_DIALING ||
 			status == CALL_STATUS_WAITING ||
 			status == CALL_STATUS_INCOMING) {
-		if (!g_at_result_iter_next_string(&iter, &num))
-			return;
-
-		if (!g_at_result_iter_next_number(&iter, &num_type))
+		/*
+		 * 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)) {
+			num = "";
+			num_type = 128;
+		} else if (!g_at_result_iter_next_number(&iter, &num_type))
 			return;
 	}
 
Signature · 1 line
1.7.1
#1 lore raw

Hi Marit,

Quoted 12 lines

In *ECAV, the number will not be included if caller id is hidden. Set it to an empty string in that case, and set number type to 128, unknown number type.

---
 drivers/stemodem/voicecall.c |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)
drivers/stemodem/voicecall.c +0 -0
index bf68f52..7f0a19f 100644

drivers/stemodem/voicecall.c line 1

Quoted 2 lines
drivers/stemodem/voicecall.c +1 -1
@@ -1,4 +1,4 @@
-/*
+e/*

What is this ;)

Regards

Marcel

#2 lore raw

2011/1/4 Marcel Holtmann <[email protected]>

Quoted 19 lines

Hi Marit,

Quoted 12 lines

In *ECAV, the number will not be included if caller id is hidden. Set it to an empty string in that case, and set number type to 128, unknown number type.

---
 drivers/stemodem/voicecall.c |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)
drivers/stemodem/voicecall.c +0 -0
index bf68f52..7f0a19f 100644

drivers/stemodem/voicecall.c line 1

Quoted 2 lines
drivers/stemodem/voicecall.c +1 -1
@@ -1,4 +1,4 @@
-/*
+e/*

What is this ;)

Quoted 1 line

Hmm, certainly something that shouldn't have been there... :( I'll send a

new version. Thank's for your patience, and the reviews. br Marit

Regards

Quoted 9 lines

Marcel

_______________________________________________
ofono mailing list
ofono(a)ofono.org
http://lists.ofono.org/listinfo/ofono