]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix bug in switch_itodtmf from a8f5bf60a87fb27420846bd9d9af5e61f1f947d6
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 23 Feb 2011 00:35:54 +0000 (18:35 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 23 Feb 2011 00:36:02 +0000 (18:36 -0600)
src/include/switch_utils.h

index a1a93c6ac8b2668e46eb5d33087d69138b939f88..7fcb1e8c75cd5b5e0c606e6e863b5475cdaad653 100644 (file)
@@ -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)