summaryrefslogtreecommitdiffstats
path: root/src/common.h
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/common.h
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/common.h')
-rw-r--r--src/common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.h b/src/common.h
index c43e46d7..8b5798a0 100644
--- a/src/common.h
+++ b/src/common.h
@@ -130,7 +130,7 @@ void string_to_phone_number(const char *str, struct ofono_phone_number *ph);
int mmi_service_code_to_bearer_class(int code);
-gboolean valid_ussd_string(const char *str);
+gboolean valid_ussd_string(const char *str, gboolean call_in_progress);
gboolean parse_ss_control_string(char *str, int *ss_type,
char **sc, char **sia,