summaryrefslogtreecommitdiffstats
path: root/src/ussd.c
diff options
context:
space:
mode:
authorPekka Pessi <Pekka.Pessi@nokia.com>2010-10-06 17:52:16 +0300
committerDenis Kenzior <denkenz@gmail.com>2010-10-10 05:48:25 -0500
commit919e305aa157f2f283f46ec83d47f11415a96fac (patch)
treec5d53a938555a5b1c09788db444be4b3a9ea7247 /src/ussd.c
parent10299facac8a8efe6f6fa683eee0a852e9ec3681 (diff)
downloadofono-919e305aa157f2f283f46ec83d47f11415a96fac.tar.bz2
common: fixup logic of valid_ussd_string()
The logic of valid_ussd_string was not quite correct as it didn't take care of size 1 USSD strings. In addition, call_in_progress parameter is passed in to take care of size 2 USSD strings which might start with a '1' according to the rules of 22.030. The comment about USSD routing is removed, it is out of scope of oFono. The cellular network routes the USSD requests based on the rules laid out in the 22.090, however, any string that can be encoded according to the rules of 23.030 is valid USSD.
Diffstat (limited to 'src/ussd.c')
-rw-r--r--src/ussd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ussd.c b/src/ussd.c
index c80d2473..42e547a0 100644
--- a/src/ussd.c
+++ b/src/ussd.c
@@ -565,7 +565,7 @@ static DBusMessage *ussd_initiate(DBusConnection *conn, DBusMessage *msg,
return NULL;
DBG("No.., checking if this is a USSD string");
- if (!valid_ussd_string(str))
+ if (!valid_ussd_string(str, FALSE))
return __ofono_error_invalid_format(msg);
if (!ussd_encode(str, &num_packed, buf))