diff options
author | Marco Bascetta <marco.bascetta@sadel.it> | 2015-05-06 12:36:54 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2015-08-02 10:39:47 +0200 |
commit | 65a64c924860eb41fa10c1eba5baf309f0ea2447 (patch) | |
tree | 2c2afa24ef5732789c146ce4285176844874c0b8 /src | |
parent | ae7292203105de918b979c88dbceb169ae11913d (diff) |
core: set number of incoming call
Diffstat (limited to 'src')
-rw-r--r-- | src/mm-broadband-modem.c | 2 | ||||
-rw-r--r-- | src/mm-modem-helpers.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/mm-broadband-modem.c b/src/mm-broadband-modem.c index a3e69c08..e917b036 100644 --- a/src/mm-broadband-modem.c +++ b/src/mm-broadband-modem.c @@ -6309,7 +6309,7 @@ clip_received (MMPortSerialAt *port, /* The match info gives us in which storage the index applies */ gchar *str = mm_get_string_unquoted_from_match_info (info, 1); - if( !str ) { + if( str ) { guint validity = 0; guint type = 0; diff --git a/src/mm-modem-helpers.c b/src/mm-modem-helpers.c index 7ba00f9e..48685bcf 100644 --- a/src/mm-modem-helpers.c +++ b/src/mm-modem-helpers.c @@ -355,8 +355,7 @@ mm_voice_clip_regex_get (void) * <CR><LF>+CLIP: "+393351391306",145,,,,0<CR><LF> * \_ Number \_ Type \_ Validity */ - - return g_regex_new ("\\r\\n\\+CLIP:\\s*\"(\\S+)\",\\s*(\\d+),\\s*,\\s*,\\s*,\\s*(\\d+)\\r\\n", + return g_regex_new ("\\r\\n\\+CLIP:\\s*(\\S+),\\s*(\\d+),\\s*,\\s*,\\s*,\\s*(\\d+)\\r\\n", G_REGEX_RAW | G_REGEX_OPTIMIZE, 0, NULL); |