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/dialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dialog.cpp') diff --git a/src/dialog.cpp b/src/dialog.cpp index f6e1790..b6e58f5 100644 --- a/src/dialog.cpp +++ b/src/dialog.cpp @@ -1268,7 +1268,7 @@ void t_dialog::process_info(t_request *r, t_tuid tuid, t_tid tid) { } char dtmf_signal = ((t_sip_body_dtmf_relay *)r->body)->signal; - if (!VALID_DTMF_SYM(dtmf_signal)) { + if (!is_valid_dtmf_sym(dtmf_signal)) { resp = r->create_response(R_400_BAD_REQUEST, "Invalid DTMF signal"); line->send_response(resp, tuid, tid); MEMMAN_DELETE(resp); -- cgit v1.2.3