summaryrefslogtreecommitdiff
path: root/channels/chan_mgcp.c
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2006-05-10 12:24:11 +0000
committerKevin P. Fleming <kpfleming@digium.com>2006-05-10 12:24:11 +0000
commitfdcfd6469bc41e123c44e520add8fac221651ddb (patch)
tree503e8c1d20f6c0594ff9ceebe29a789bcc3ebc4b /channels/chan_mgcp.c
parent1904069f71db2133fb2c87b4481adf80a4caf95a (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_mgcp.c')
-rw-r--r--channels/chan_mgcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c
index 30605fc04..9aec2e818 100644
--- a/channels/chan_mgcp.c
+++ b/channels/chan_mgcp.c
@@ -494,7 +494,7 @@ static int mgcp_hangup(struct ast_channel *ast);
static int mgcp_answer(struct ast_channel *ast);
static struct ast_frame *mgcp_read(struct ast_channel *ast);
static int mgcp_write(struct ast_channel *ast, struct ast_frame *frame);
-static int mgcp_indicate(struct ast_channel *ast, int ind);
+static int mgcp_indicate(struct ast_channel *ast, int ind, const void *data, size_t datalen);
static int mgcp_fixup(struct ast_channel *oldchan, struct ast_channel *newchan);
static int mgcp_senddigit(struct ast_channel *ast, char digit);
static int mgcp_devicestate(void *data);
@@ -1401,7 +1401,7 @@ static char *control2str(int ind) {
return "UNKNOWN";
}
-static int mgcp_indicate(struct ast_channel *ast, int ind)
+static int mgcp_indicate(struct ast_channel *ast, int ind, const void *data, size_t datalen)
{
struct mgcp_subchannel *sub = ast->tech_pvt;
int res = 0;