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

Joshua Colp asteriskteam at digium.com
Mon Jan 18 09:59:27 CST 2021


Joshua Colp has submitted this change. ( https://gerrit.asterisk.org/c/asterisk/+/15323 )

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(-)

Approvals:
  Joshua Colp: Looks good to me, but someone else must approve; Approved for Submit
  Sean Bright: Looks good to me, but someone else must approve
  George Joseph: Looks good to me, approved



diff --git a/channels/chan_pjsip.c b/channels/chan_pjsip.c
index f37ec3d..e0c0eeb 100644
--- a/channels/chan_pjsip.c
+++ b/channels/chan_pjsip.c
@@ -1607,7 +1607,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/+/15323
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: Ia51be086a0708be905e73d1f433572c49c7e38f8
Gerrit-Change-Number: 15323
Gerrit-PatchSet: 2
Gerrit-Owner: Benjamin Keith Ford <bford at digium.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-Reviewer: Sean Bright <sean.bright at gmail.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20210118/c346d78c/attachment.html>


More information about the asterisk-code-review mailing list