let ppl do info dtmf wrong

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10443 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-11-18 22:15:02 +00:00
parent c71d8268ad
commit 03a9bbe63a
1 changed files with 3 additions and 0 deletions

View File

@ -1128,6 +1128,9 @@ SWITCH_DECLARE(int) switch_build_uri(char *uri,
SWITCH_DECLARE(char) switch_rfc2833_to_char(int event)
{
if (event > -1 && event < (int32_t) sizeof(RFC2833_CHARS)) {
if (is_dtmf(event)) {
return (char) event;
}
return RFC2833_CHARS[event];
}
return '\0';