diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-08-31 01:59:02 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-08-31 01:59:02 +0000 |
commit | 3f22aa53af0a7bb3efb280a1adda11f00a7f68fc (patch) | |
tree | 95a924d57b906428b26d398758facf98b92bdcb2 /channels/chan_jingle.c | |
parent | 0fcb352fba60344329a582f891ddd4433f48c6fa (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: http://svn.digium.com/svn/asterisk/trunk@41507 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_jingle.c')
-rw-r--r-- | channels/chan_jingle.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/channels/chan_jingle.c b/channels/chan_jingle.c index b3d7ea68a..a44b42085 100644 --- a/channels/chan_jingle.c +++ b/channels/chan_jingle.c @@ -171,7 +171,8 @@ AST_MUTEX_DEFINE_STATIC(jinglelock); /*!< Protect the interface list (of jingle_ /* Forward declarations */ static struct ast_channel *jingle_request(const char *type, int format, void *data, int *cause); -static int jingle_digit(struct ast_channel *ast, char digit); +static int jingle_digit_begin(struct ast_channel *ast, char digit); +static int jingle_digit_end(struct ast_channel *ast, char digit); static int jingle_call(struct ast_channel *ast, char *dest, int timeout); static int jingle_hangup(struct ast_channel *ast); static int jingle_answer(struct ast_channel *ast); @@ -194,7 +195,8 @@ static const struct ast_channel_tech jingle_tech = { .description = "Jingle Channel Driver", .capabilities = ((AST_FORMAT_MAX_AUDIO << 1) - 1), .requester = jingle_request, - .send_digit = jingle_digit, + .send_digit_begin = jingle_digit_begin, + .send_digit_end = jingle_digit_end, .bridge = ast_rtp_bridge, .call = jingle_call, .hangup = jingle_hangup, @@ -1181,7 +1183,13 @@ static int jingle_indicate(struct ast_channel *ast, int condition, const void *d return res; } -static int jingle_digit(struct ast_channel *ast, char digit) +static int jingle_digit_begin(struct ast_channel *chan, char digit) +{ + /* XXX Does jingle have a concept of the length of a dtmf digit ? */ + return 0; +} + +static int jingle_digit_end(struct ast_channel *ast, char digit) { struct jingle_pvt *p = ast->tech_pvt; struct jingle *client = p->parent; |