summaryrefslogtreecommitdiff
path: root/tpsip
diff options
context:
space:
mode:
authorMikhail Zabaluev <mikhail.zabaluev@nokia.com>2009-11-10 17:56:48 +0200
committerMikhail Zabaluev <mikhail.zabaluev@nokia.com>2009-11-10 17:56:48 +0200
commit38ac51ea75d283793bfc9935da5995cf2c464edd (patch)
tree6a047303d272018feca079269cbe831adaf9aed1 /tpsip
parent95274f0599cf928992277b0fdc405095a4a5ac46 (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.c2
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);