diff options
author | Joshua Colp <jcolp@digium.com> | 2006-08-31 01:59:02 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2006-08-31 01:59:02 +0000 |
commit | c6977b9983db4f58446bfbc65a5b028cda8244ee (patch) | |
tree | 95a924d57b906428b26d398758facf98b92bdcb2 /channels/chan_oss.c | |
parent | 5418a7a1a8326544f2275819c93649c97261a5f3 (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 'channels/chan_oss.c')
-rw-r--r-- | channels/chan_oss.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/channels/chan_oss.c b/channels/chan_oss.c index b2981463c..e40aacb0f 100644 --- a/channels/chan_oss.c +++ b/channels/chan_oss.c @@ -407,7 +407,8 @@ static int setformat(struct chan_oss_pvt *o, int mode); static struct ast_channel *oss_request(const char *type, int format, void *data , int *cause); -static int oss_digit(struct ast_channel *c, char digit); +static int oss_digit_begin(struct ast_channel *c, char digit); +static int oss_digit_end(struct ast_channel *c, char digit); static int oss_text(struct ast_channel *c, const char *text); static int oss_hangup(struct ast_channel *c); static int oss_answer(struct ast_channel *c); @@ -423,7 +424,8 @@ static const struct ast_channel_tech oss_tech = { .description = tdesc, .capabilities = AST_FORMAT_SLINEAR, .requester = oss_request, - .send_digit = oss_digit, + .send_digit_begin = oss_digit_begin, + .send_digit_end = oss_digit_end, .send_text = oss_text, .hangup = oss_hangup, .answer = oss_answer, @@ -757,7 +759,12 @@ static int setformat(struct chan_oss_pvt *o, int mode) /* * some of the standard methods supported by channels. */ -static int oss_digit(struct ast_channel *c, char digit) +static int oss_digit_begin(struct ast_channel *c, char digit) +{ + return 0; +} + +static int oss_digit_end(struct ast_channel *c, char digit) { /* no better use for received digits than print them */ ast_verbose( " << Console Received digit %c >> \n", digit); |