From c6977b9983db4f58446bfbc65a5b028cda8244ee Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Thu, 31 Aug 2006 01:59:02 +0000 Subject: 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 --- channels/chan_h323.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'channels/chan_h323.c') diff --git a/channels/chan_h323.c b/channels/chan_h323.c index 6b956e517..dc498a2d9 100644 --- a/channels/chan_h323.c +++ b/channels/chan_h323.c @@ -220,7 +220,8 @@ static int restart_monitor(void); static int h323_do_reload(void); static struct ast_channel *oh323_request(const char *type, int format, void *data, int *cause); -static int oh323_digit(struct ast_channel *c, char digit); +static int oh323_digit_begin(struct ast_channel *c, char digit); +static int oh323_digit_end(struct ast_channel *c, char digit); static int oh323_call(struct ast_channel *c, char *dest, int timeout); static int oh323_hangup(struct ast_channel *c); static int oh323_answer(struct ast_channel *c); @@ -235,7 +236,8 @@ static const struct ast_channel_tech oh323_tech = { .capabilities = ((AST_FORMAT_MAX_AUDIO << 1) - 1), .properties = AST_CHAN_TP_WANTSJITTER | AST_CHAN_TP_CREATESJITTER, .requester = oh323_request, - .send_digit = oh323_digit, + .send_digit_begin = oh323_digit_begin, + .send_digit_end = oh323_digit_end, .call = oh323_call, .hangup = oh323_hangup, .answer = oh323_answer, @@ -381,11 +383,17 @@ static void oh323_destroy(struct oh323_pvt *pvt) ast_mutex_unlock(&iflock); } +static int oh323_digit_begin(struct ast_channel *chan, char digit) +{ + /* XXX Implement me, plz, kthx */ + return 0; +} + /** * Send (play) the specified digit to the channel. * */ -static int oh323_digit(struct ast_channel *c, char digit) +static int oh323_digit_end(struct ast_channel *c, char digit) { struct oh323_pvt *pvt = (struct oh323_pvt *) c->tech_pvt; char *token; -- cgit v1.2.3