[Asterisk-code-review] chan_pjsip.c: Add parameters to frame in indicate. (asterisk[16])
Benjamin Keith Ford
asteriskteam at digium.com
Mon Jan 11 14:27:14 CST 2021
Benjamin Keith Ford has uploaded this change for review. ( 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(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/23/15323/1
diff --git a/channels/chan_pjsip.c b/channels/chan_pjsip.c
index 274d37c..3c23b46 100644
--- a/channels/chan_pjsip.c
+++ b/channels/chan_pjsip.c
@@ -1605,7 +1605,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: 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/048f15a1/attachment-0001.html>
More information about the asterisk-code-review
mailing list