mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
chan_pjsip.c: Add parameters to frame in indicate.
There are a couple of parameters (datalen and data) that do not get set in chan_pjsip_indicate which could cause an Invalid message to pop up for things such as fax. This patch adds them to the frame. Change-Id: Ia51be086a0708be905e73d1f433572c49c7e38f8
This commit is contained in:
@@ -1607,7 +1607,9 @@ static int chan_pjsip_indicate(struct ast_channel *ast, int condition, const voi
|
|||||||
.frametype = AST_FRAME_CONTROL,
|
.frametype = AST_FRAME_CONTROL,
|
||||||
.subclass = {
|
.subclass = {
|
||||||
.integer = condition
|
.integer = condition
|
||||||
}
|
},
|
||||||
|
.datalen = datalen,
|
||||||
|
.data.ptr = (void *)data,
|
||||||
};
|
};
|
||||||
char condition_name[256];
|
char condition_name[256];
|
||||||
SCOPE_ENTER(3, "%s: Indicated %s\n", ast_channel_name(ast),
|
SCOPE_ENTER(3, "%s: Indicated %s\n", ast_channel_name(ast),
|
||||||
|
Reference in New Issue
Block a user