Open Source Telephony
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: ofono@ofono.org
Subject: Re: [PATCHv2] stemodem: Fix for MT call not working when caller id is hidden.
Date: Mon, 03 Jan 2011 12:24:54 -0800	[thread overview]
Message-ID: <1294086294.5852.7.camel@aeonflux> (raw)
In-Reply-To: <1294059582-1801-1-git-send-email-maritsofie.henriksen8@gmail.com>

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

Hi Marit,

> 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 |   16 +++++++++++-----
>  1 files changed, 11 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/stemodem/voicecall.c b/drivers/stemodem/voicecall.c
> index bf68f52..4964fb7 100644
> --- a/drivers/stemodem/voicecall.c
> +++ b/drivers/stemodem/voicecall.c
> @@ -1,4 +1,4 @@
> -/*
> +e/*
>   *
>   *  oFono - Open Source Telephony
>   *
> @@ -442,10 +442,16 @@ 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.
> +		*/

please fix the comment according coding style. See M2.

> +		if (!g_at_result_iter_next_string(&iter, &num)) {
> +			num="";

This needs to be num = ""; btw.

> +			num_type = 128;
> +		}
> +		else if (!g_at_result_iter_next_number(&iter, &num_type))
>  			return;

And the else here should be on the same line as with the }.

Regards

Marcel



      reply	other threads:[~2011-01-03 20:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-03 12:59 [PATCHv2] stemodem: Fix for MT call not working when caller id is hidden Marit Henriksen
2011-01-03 20:24 ` Marcel Holtmann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1294086294.5852.7.camel@aeonflux \
    --to=marcel@holtmann.org \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox