mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-08 19:08:14 +00:00
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
This commit is contained in:
@@ -101,7 +101,7 @@ static int features_hangup(struct ast_channel *ast);
|
||||
static int features_answer(struct ast_channel *ast);
|
||||
static struct ast_frame *features_read(struct ast_channel *ast);
|
||||
static int features_write(struct ast_channel *ast, struct ast_frame *f);
|
||||
static int features_indicate(struct ast_channel *ast, int condition);
|
||||
static int features_indicate(struct ast_channel *ast, int condition, const void *data, size_t datalen);
|
||||
static int features_fixup(struct ast_channel *oldchan, struct ast_channel *newchan);
|
||||
|
||||
static const struct ast_channel_tech features_tech = {
|
||||
@@ -285,7 +285,7 @@ static int features_fixup(struct ast_channel *oldchan, struct ast_channel *newch
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int features_indicate(struct ast_channel *ast, int condition)
|
||||
static int features_indicate(struct ast_channel *ast, int condition, const void *data, size_t datalen)
|
||||
{
|
||||
struct feature_pvt *p = ast->tech_pvt;
|
||||
int res = -1;
|
||||
|
||||
Reference in New Issue
Block a user