From 87a35f8e945b5ba3beecfaac8c7cd2a3ff912e6c Mon Sep 17 00:00:00 2001 From: Ben Ford Date: Mon, 11 Jan 2021 14:25:09 -0600 Subject: [PATCH] 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 --- channels/chan_pjsip.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/channels/chan_pjsip.c b/channels/chan_pjsip.c index f4409de4a7..483cd3ef00 100644 --- a/channels/chan_pjsip.c +++ b/channels/chan_pjsip.c @@ -1623,7 +1623,9 @@ static int chan_pjsip_indicate(struct ast_channel *ast, int condition, const voi .frametype = AST_FRAME_CONTROL, .subclass = { .integer = condition - } + }, + .datalen = datalen, + .data.ptr = (void *)data, }; char condition_name[256]; SCOPE_ENTER(3, "%s: Indicated %s\n", ast_channel_name(ast), -- 2.47.2