via: b53a68484361c9581a26f6b090a58b0803bd412d (commit)
from: e0a0a56f240ec397d2074cf28d3c9976ab3bfd83 (commit)
= COMMIT LOG ===========================================================
committer: Anthony Minessale
comments:
fix bug in switch_itodtmf from a8f5bf60a87fb27420846bd9d9af5e61f1f947d6
diff --git a/src/include/switch_utils.h b/src/include/switch_utils.h
index a1a93c6..7fcb1e8 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)
Summary of changes: src/include/switch_utils.h | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
this email was generated because of /git/your-repo.git/hooks/post-receive by the file /git-core/contrib/hooks/post-receive-email
For more info, see http://blog.chomperstomp.com/?p=630
--
FreeSWITCH Source