diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-10 12:24:11 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-10 12:24:11 +0000 |
commit | 91ad35ce5445a2f9c958968672338869bd4ce8a5 (patch) | |
tree | 503e8c1d20f6c0594ff9ceebe29a789bcc3ebc4b /channels/chan_vpb.c | |
parent | 8abb5a32f2e1226a24279c81b71cbd63456aad34 (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: http://svn.digium.com/svn/asterisk/trunk@26417 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_vpb.c')
-rw-r--r-- | channels/chan_vpb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_vpb.c b/channels/chan_vpb.c index a9dcaceca..c88765b3f 100644 --- a/channels/chan_vpb.c +++ b/channels/chan_vpb.c @@ -349,7 +349,7 @@ static int vpb_answer(struct ast_channel *ast); static struct ast_frame *vpb_read(struct ast_channel *ast); static int vpb_write(struct ast_channel *ast, struct ast_frame *frame); static enum ast_bridge_result ast_vpb_bridge(struct ast_channel *c0, struct ast_channel *c1, int flags, struct ast_frame **fo, struct ast_channel **rc, int timeoutms); -static int vpb_indicate(struct ast_channel *ast, int condition); +static int vpb_indicate(struct ast_channel *ast, int condition, const void *data, size_t datalen); static int vpb_fixup(struct ast_channel *oldchan, struct ast_channel *newchan); static struct ast_channel_tech vpb_tech = { @@ -1720,7 +1720,7 @@ static struct vpb_pvt *mkif(int board, int channel, int mode, int gains, float t return tmp; } -static int vpb_indicate(struct ast_channel *ast, int condition) +static int vpb_indicate(struct ast_channel *ast, int condition, const void *data, size_t datalen) { struct vpb_pvt *p = (struct vpb_pvt *)ast->tech_pvt; int res = 0; @@ -1818,7 +1818,7 @@ static int vpb_fixup(struct ast_channel *oldchan, struct ast_channel *newchan) else { if (option_verbose > 3) ast_verbose(VERBOSE_PREFIX_4 "%s: vpb_fixup Calling vpb_indicate\n", p->dev); - vpb_indicate(newchan, AST_CONTROL_RINGING); + vpb_indicate(newchan, AST_CONTROL_RINGING, NULL, 0); } } |