mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 18:58:22 +00:00
Fix SendDTMF which was clearly not even tested before it was last committed.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2657 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -55,7 +55,6 @@ static int senddtmf_exec(struct ast_channel *chan, void *data)
|
|||||||
f.frametype = AST_FRAME_DTMF;
|
f.frametype = AST_FRAME_DTMF;
|
||||||
f.subclass = digits[x];
|
f.subclass = digits[x];
|
||||||
f.src = "app_senddtmf";
|
f.src = "app_senddtmf";
|
||||||
res = ast_write(chan, &f);
|
|
||||||
if (strchr("0123456789*#abcd",digits[x])==NULL) {
|
if (strchr("0123456789*#abcd",digits[x])==NULL) {
|
||||||
ast_log(LOG_WARNING, "Illegal DTMF character in string. (0-9*#abcd allowed)\n");
|
ast_log(LOG_WARNING, "Illegal DTMF character in string. (0-9*#abcd allowed)\n");
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user