summaryrefslogtreecommitdiffstats
path: root/src/dialog.cpp
diff options
context:
space:
mode:
authorMichal Kubecek <mkubecek@suse.cz>2016-05-20 09:48:18 +0200
committerMichal Kubecek <mkubecek@suse.cz>2016-05-20 09:48:18 +0200
commit77eeffe564e5a82b2b419ed8129e6d151d139086 (patch)
treec6dccee5b5e5902490bb228835bc4c8c862a7911 /src/dialog.cpp
parent4627d49d5e2d75030c0200c7770ea258cdb42a69 (diff)
downloadtwinkle-77eeffe564e5a82b2b419ed8129e6d151d139086.tar
twinkle-77eeffe564e5a82b2b419ed8129e6d151d139086.tar.gz
twinkle-77eeffe564e5a82b2b419ed8129e6d151d139086.tar.lz
twinkle-77eeffe564e5a82b2b419ed8129e6d151d139086.tar.xz
twinkle-77eeffe564e5a82b2b419ed8129e6d151d139086.zip
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.
Diffstat (limited to 'src/dialog.cpp')
-rw-r--r--src/dialog.cpp2
1 files changed, 1 insertions, 1 deletions
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);