[Asterisk-code-review] chan_pjsip.c: Add parameters to frame in indicate. (asterisk[18])

Benjamin Keith Ford asteriskteam at digium.com
Mon Jan 11 14:27:41 CST 2021


Benjamin Keith Ford has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/15343 )


Change subject: chan_pjsip.c: Add parameters to frame in indicate.
......................................................................

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
---
M channels/chan_pjsip.c
1 file changed, 3 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/43/15343/1

diff --git a/channels/chan_pjsip.c b/channels/chan_pjsip.c
index 46fa327..7776a95 100644
--- a/channels/chan_pjsip.c
+++ b/channels/chan_pjsip.c
@@ -1623,7 +1623,9 @@
 		.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),

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/15343
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 18
Gerrit-Change-Id: Ia51be086a0708be905e73d1f433572c49c7e38f8
Gerrit-Change-Number: 15343
Gerrit-PatchSet: 1
Gerrit-Owner: Benjamin Keith Ford <bford at digium.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20210111/2df457ab/attachment.html>


More information about the asterisk-code-review mailing list