[Asterisk-code-review] chan_pjsip: don't use PJSIP_SC_NULL as it only exists pjproject 2.8+ (asterisk[16])
Kevin Harwell
asteriskteam at digium.com
Mon Jun 22 15:32:42 CDT 2020
Kevin Harwell has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/14571 )
Change subject: chan_pjsip: don't use PJSIP_SC_NULL as it only exists pjproject 2.8+
......................................................................
chan_pjsip: don't use PJSIP_SC_NULL as it only exists pjproject 2.8+
A patch made a reference to the PJSIP_SC_NULL enumeration value, which
was added to pjproject 2.8 and above thus making it so Asterisk would
fail to compile with prior versions of pjproject.
This patch removes the reference, and instead initializes the value
to '0'.
ASTERISK-28886 #close
Change-Id: I68491c80da1a0154b2286c9458440141c98db9d7
---
M channels/chan_pjsip.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/71/14571/1
diff --git a/channels/chan_pjsip.c b/channels/chan_pjsip.c
index 692151a..c77bced 100644
--- a/channels/chan_pjsip.c
+++ b/channels/chan_pjsip.c
@@ -1999,7 +1999,7 @@
/* Check for NOTIFY complete or error. */
pjsip_msg *msg;
pjsip_msg_body *body;
- pjsip_status_line status_line = { .code = PJSIP_SC_NULL };
+ pjsip_status_line status_line = { .code = 0 };
pj_bool_t is_last;
pj_status_t status;
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/14571
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: I68491c80da1a0154b2286c9458440141c98db9d7
Gerrit-Change-Number: 14571
Gerrit-PatchSet: 1
Gerrit-Owner: Kevin Harwell <kharwell at digium.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200622/5464c10c/attachment.html>
More information about the asterisk-code-review
mailing list