From 77eeffe564e5a82b2b419ed8129e6d151d139086 Mon Sep 17 00:00:00 2001 From: Michal Kubecek Date: Fri, 20 May 2016 09:48:18 +0200 Subject: DTMF event type cleanup DTMF event constants handling is a bit messy as three different types are used in different source files, triggering various compiler warnings. Introduce t_dtmf_ev type and use it everywhere, also replace helper macros by inline functions. --- src/parser/sip_body.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/parser') diff --git a/src/parser/sip_body.cpp b/src/parser/sip_body.cpp index cc95f85..2ee455b 100644 --- a/src/parser/sip_body.cpp +++ b/src/parser/sip_body.cpp @@ -247,7 +247,7 @@ bool t_sip_body_dtmf_relay::parse(const string &s) { if (value.empty()) continue; if (parameter == "signal") { - if (!VALID_DTMF_SYM(value[0])) return false; + if (!is_valid_dtmf_sym(value[0])) return false; signal = value[0]; valid = true; } else if (parameter == "duration") { -- cgit v1.2.3