From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============8136977217540640483==" MIME-Version: 1.0 From: Arun Ravindran Subject: Re: [RFC PATCH 1/2] common: add long dial string support Date: Thu, 18 Nov 2010 13:38:51 +0200 Message-ID: <4CE5104B.9080305@nokia.com> In-Reply-To: <3db2789cb182bbe968fbd05e3e1fc9b482f8d85c.1289928966.git.Andras.Domokos@nokia.com> List-Id: To: ofono@ofono.org --===============8136977217540640483== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Denis, Marcel, Andras, > include/types.h | 2 +- > src/common.c | 12 ++++++------ > 2 files changed, 7 insertions(+), 7 deletions(-) > > diff --git a/include/types.h b/include/types.h > index ba2481f..b3d2247 100644 > --- a/include/types.h > +++ b/include/types.h > @@ -76,7 +76,7 @@ struct ofono_error { > int error; > }; > > -#define OFONO_MAX_PHONE_NUMBER_LENGTH 20 > +#define OFONO_MAX_PHONE_NUMBER_LENGTH 120 > > struct ofono_phone_number { > char number[OFONO_MAX_PHONE_NUMBER_LENGTH + 1]; > diff --git a/src/common.c b/src/common.c > index b5b9a6f..de5a508 100644 > --- a/src/common.c > +++ b/src/common.c > @@ -253,7 +253,7 @@ gboolean valid_phone_number_format(const char *number) > if (number[i]>=3D '0'&& number[i]<=3D '9') > continue; > > - if (number[i] =3D=3D '*' || number[i] =3D=3D '#') > + if (number[i] =3D=3D '*' || number[i] =3D=3D '#' || number[i] =3D=3D '= p') > continue; > = This function is used to check the phone number as valid in other places = too. Is it right to allow sms sending to numbers with '*', '#' and 'p' in it? = I think ofono should return an error for the sms case. Regards Arun --===============8136977217540640483==--