From: Anthony Minessale Date: Wed, 23 Feb 2011 00:35:54 +0000 (-0600) Subject: fix bug in switch_itodtmf from a8f5bf60a87fb27420846bd9d9af5e61f1f947d6 X-Git-Tag: v1.2-rc1~181^2~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b53a68484361c9581a26f6b090a58b0803bd412d;p=thirdparty%2Ffreeswitch.git fix bug in switch_itodtmf from a8f5bf60a87fb27420846bd9d9af5e61f1f947d6 --- 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)