Leave SupplementaryServices/USSD validation to oFono.
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Mon, 20 Aug 2012 15:01:23 +0000 (12:01 -0300)
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Mon, 20 Aug 2012 15:01:23 +0000 (12:01 -0300)
According to Denis the rules are fairly complex and the check for a
trailing '#' is not valid. For instance the short strings (1-2
numbers) are valid USSD.

To solve this, always call oFono and let it reply if it was recognized
or not.

dialer/keypad.c

index bfaca4a..e9265fc 100644 (file)
@@ -356,11 +356,6 @@ static void _call(Keypad *ctx)
        if (len < 1)
                return;
 
-       if (number[len - 1] != '#') {
-               _dial(ctx);
-               return;
-       }
-
        if (ctx->ss_popup)
                evas_object_del(ctx->ss_popup);