diff options
author | Mikhail Zabaluev <mikhail.zabaluev@nokia.com> | 2009-11-10 17:56:48 +0200 |
---|---|---|
committer | Mikhail Zabaluev <mikhail.zabaluev@nokia.com> | 2009-11-10 17:56:48 +0200 |
commit | 38ac51ea75d283793bfc9935da5995cf2c464edd (patch) | |
tree | 6a047303d272018feca079269cbe831adaf9aed1 /tpsip | |
parent | 95274f0599cf928992277b0fdc405095a4a5ac46 (diff) |
Anchor the match for DTMF events list at the beginning of the string
Diffstat (limited to 'tpsip')
-rw-r--r-- | tpsip/codec-param-formats.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tpsip/codec-param-formats.c b/tpsip/codec-param-formats.c index 3119def..c271492 100644 --- a/tpsip/codec-param-formats.c +++ b/tpsip/codec-param-formats.c @@ -318,7 +318,7 @@ tpsip_codec_param_formats_init () #define DTMF_RANGE "[0-9]+(-[0-9]+)?" dtmf_events_regex = g_regex_new ( - "(" DTMF_RANGE "(," DTMF_RANGE ")*)\\s*(;|$)", + "^(" DTMF_RANGE "(," DTMF_RANGE ")*)\\s*(;|$)", G_REGEX_RAW | G_REGEX_OPTIMIZE, 0, NULL); g_assert (dtmf_events_regex != NULL); |