diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2006-05-10 12:24:11 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2006-05-10 12:24:11 +0000 |
commit | fdcfd6469bc41e123c44e520add8fac221651ddb (patch) | |
tree | 503e8c1d20f6c0594ff9ceebe29a789bcc3ebc4b /channels/chan_oss.c | |
parent | 1904069f71db2133fb2c87b4481adf80a4caf95a (diff) |
ensure that control frames with payload can be sent to channel drivers via ->indicate()
update iax2_indicate to pass control frame payload to the connected channel
add an API call for sending an indication with payload, and use it for control frames with payload
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26417 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_oss.c')
-rw-r--r-- | channels/chan_oss.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_oss.c b/channels/chan_oss.c index 5d6203e51..415539a83 100644 --- a/channels/chan_oss.c +++ b/channels/chan_oss.c @@ -373,7 +373,7 @@ static int oss_answer(struct ast_channel *c); static struct ast_frame *oss_read(struct ast_channel *chan); static int oss_call(struct ast_channel *c, char *dest, int timeout); static int oss_write(struct ast_channel *chan, struct ast_frame *f); -static int oss_indicate(struct ast_channel *chan, int cond); +static int oss_indicate(struct ast_channel *chan, int cond, const void *data, size_t datalen); static int oss_fixup(struct ast_channel *oldchan, struct ast_channel *newchan); static char tdesc[] = "OSS Console Channel Driver"; @@ -901,7 +901,7 @@ static int oss_fixup(struct ast_channel *oldchan, struct ast_channel *newchan) return 0; } -static int oss_indicate(struct ast_channel *c, int cond) +static int oss_indicate(struct ast_channel *c, int cond, const void *data, size_t datalen) { struct chan_oss_pvt *o = c->tech_pvt; int res; |