All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] emulator: fix +CLIP in case of withheld call
@ 2011-04-20 20:24 =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
  2011-04-21 21:24 ` Denis Kenzior
  0 siblings, 1 reply; 2+ messages in thread
From: =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis @ 2011-04-20 20:24 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 824 bytes --]

---
 src/emulator.c |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/emulator.c b/src/emulator.c
index 9b4647b..9055909 100644
--- a/src/emulator.c
+++ b/src/emulator.c
@@ -261,11 +261,19 @@ static void notify_ring(struct ofono_emulator *em)
 
 	c = find_call_with_status(em, CALL_STATUS_INCOMING);
 
-	if (c && c->clip_validity == CLIP_VALIDITY_VALID) {
+	if (c == NULL)
+		return;
+
+	switch (c->clip_validity) {
+	case CLIP_VALIDITY_VALID:
 		phone = phone_number_to_string(&c->phone_number);
 		sprintf(str, "+CLIP: \"%s\",%d", phone, c->phone_number.type);
-
 		g_at_server_send_unsolicited(em->server, str);
+		break;
+
+	case CLIP_VALIDITY_WITHHELD:
+		g_at_server_send_unsolicited(em->server, "+CLIP: \"\",128");
+		break;
 	}
 }
 
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] emulator: fix +CLIP in case of withheld call
  2011-04-20 20:24 [PATCH] emulator: fix +CLIP in case of withheld call =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
@ 2011-04-21 21:24 ` Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2011-04-21 21:24 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 226 bytes --]

Hi Frédéric,

On 04/20/2011 03:24 PM, Frédéric Danis wrote:
> ---
>  src/emulator.c |   12 ++++++++++--
>  1 files changed, 10 insertions(+), 2 deletions(-)
> 

Patch has been applied, thanks.

Regards,
-Denis

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-04-21 21:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-20 20:24 [PATCH] emulator: fix +CLIP in case of withheld call =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
2011-04-21 21:24 ` Denis Kenzior

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.