summaryrefslogtreecommitdiff
path: root/main/app.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2006-08-31 01:59:02 +0000
committerJoshua Colp <jcolp@digium.com>2006-08-31 01:59:02 +0000
commitc6977b9983db4f58446bfbc65a5b028cda8244ee (patch)
tree95a924d57b906428b26d398758facf98b92bdcb2 /main/app.c
parent5418a7a1a8326544f2275819c93649c97261a5f3 (diff)
Merge in VLDTMF support with Zaptel/Core done by the ever great Darumkilla Russell Bryant and the RTP portion done by myself, Muffinlicious Joshua Colp. This has gone through so many discussions/revisions it's not funny but we finally have it!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41507 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/app.c')
-rw-r--r--main/app.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/main/app.c b/main/app.c
index 1099feaea..b6a7f73a9 100644
--- a/main/app.c
+++ b/main/app.c
@@ -212,10 +212,6 @@ int ast_dtmf_stream(struct ast_channel *chan, struct ast_channel *peer, const ch
{
const char *ptr;
int res = 0;
- struct ast_frame f = {
- .frametype = AST_FRAME_DTMF,
- .src = "ast_dtmf_stream"
- };
if (!between)
between = 100;
@@ -240,11 +236,8 @@ int ast_dtmf_stream(struct ast_channel *chan, struct ast_channel *peer, const ch
if (*ptr == 'f' || *ptr == 'F') {
/* ignore return values if not supported by channel */
ast_indicate(chan, AST_CONTROL_FLASH);
- } else {
- f.subclass = *ptr;
- if ((res = ast_write(chan, &f)))
- break;
- }
+ } else
+ ast_senddigit(chan, *ptr);
/* pause between digits */
if ((res = ast_safe_sleep(chan, between)))
break;