From b53a68484361c9581a26f6b090a58b0803bd412d Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 22 Feb 2011 18:35:54 -0600 Subject: [PATCH] fix bug in switch_itodtmf from a8f5bf60a87fb27420846bd9d9af5e61f1f947d6 --- src/include/switch_utils.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/include/switch_utils.h b/src/include/switch_utils.h index a1a93c6ac8..7fcb1e8c75 100644 --- a/src/include/switch_utils.h +++ b/src/include/switch_utils.h @@ -189,10 +189,12 @@ static inline char switch_itodtmf(char i) char r = i; if (i > 9 && i < 14) { - r = i + 55; + r += 55; + } else { + r += 48; } - return r + 48; + return r; } static inline int switch_dtmftoi(char *s)