From: Kevin Harwell Date: Mon, 22 Jun 2020 20:27:32 +0000 (-0500) Subject: chan_pjsip: don't use PJSIP_SC_NULL as it only exists pjproject 2.8+ X-Git-Tag: 16.12.0-rc1~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2148505f09fafddcb40ffeef485cd158b6b5142f;p=thirdparty%2Fasterisk.git 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 --- diff --git a/channels/chan_pjsip.c b/channels/chan_pjsip.c index 692151a93c..c77bcedf52 100644 --- a/channels/chan_pjsip.c +++ b/channels/chan_pjsip.c @@ -1999,7 +1999,7 @@ static void xfer_client_on_evsub_state(pjsip_evsub *sub, pjsip_event *event) /* 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;