[Asterisk-cvs] asterisk/apps app_senddtmf.c,1.2,1.3
markster at lists.digium.com
markster at lists.digium.com
Wed Apr 7 16:13:37 CDT 2004
Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv2987/apps
Modified Files:
app_senddtmf.c
Log Message:
Fix SendDTMF which was clearly not even tested before it was last committed.
Index: app_senddtmf.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_senddtmf.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- app_senddtmf.c 24 Mar 2004 03:48:18 -0000 1.2
+++ app_senddtmf.c 7 Apr 2004 20:14:19 -0000 1.3
@@ -55,18 +55,17 @@
f.frametype = AST_FRAME_DTMF;
f.subclass = digits[x];
f.src = "app_senddtmf";
- res = ast_write(chan, &f);
- if (strchr("0123456789*#abcd",digits[x])==NULL) {
- ast_log(LOG_WARNING, "Illegal DTMF character in string. (0-9*#abcd allowed)\n");
- } else {
- res = ast_write(chan, &f);
- if (res)
- break;
- /* Wait 250ms */
- res = ast_safe_sleep(chan, 250);
- if (res)
- break;
- }
+ if (strchr("0123456789*#abcd",digits[x])==NULL) {
+ ast_log(LOG_WARNING, "Illegal DTMF character in string. (0-9*#abcd allowed)\n");
+ } else {
+ res = ast_write(chan, &f);
+ if (res)
+ break;
+ /* Wait 250ms */
+ res = ast_safe_sleep(chan, 250);
+ if (res)
+ break;
+ }
}
if (!res)
if (option_verbose > 2)
More information about the svn-commits
mailing list