diff options
Diffstat (limited to 'src/mm-modem-helpers.c')
-rw-r--r-- | src/mm-modem-helpers.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/mm-modem-helpers.c b/src/mm-modem-helpers.c index 926b1997..d69951be 100644 --- a/src/mm-modem-helpers.c +++ b/src/mm-modem-helpers.c @@ -483,6 +483,24 @@ mm_at_quote_string (const gchar *input) /*****************************************************************************/ GRegex * +mm_call_end_regex_get (void) +{ + /* Example: + * <CR><LF>NO ANSWER<CR><LF> + * <LF>NO CARRIER<CR><LF> + * <CR><LF>BUSY<CR><LF> + * + * Some Sierra devices omit the leading <CR> for in-call responses. + */ + return g_regex_new ("(\\r)?\\n(NO CARRIER)|(BUSY)|(NO ANSWER)|(NO DIALTONE)\\r\\n", + G_REGEX_DOLLAR_ENDONLY | G_REGEX_RAW | G_REGEX_OPTIMIZE, + 0, + NULL); +} + +/*****************************************************************************/ + +GRegex * mm_voice_ring_regex_get (void) { /* Example: |