lynxis lazus has submitted this change. ( https://gerrit.osmocom.org/c/osmo-sip-connector/+/38039?usp=email )
Change subject: sip.c: permit early media with both 183 and 180 ......................................................................
sip.c: permit early media with both 183 and 180
So far we only attempted to extract SDP (and hence enable early media) when receiving a status code 183. However, SDP can also be provided with 180, see for example https://developer.signalwire.com/freeswitch/FreeSWITCH-Explained/Codecs-and-...
Change-Id: Ia0072080c2e0bfb8b2bf751a248d3410a7723e79 Closes: OS#6559 --- M src/sip.c 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Jenkins Builder: Verified lynxis lazus: Looks good to me, approved
diff --git a/src/sip.c b/src/sip.c index 99bab9f..3e262f9 100644 --- a/src/sip.c +++ b/src/sip.c @@ -82,7 +82,7 @@ return;
/* Extract SDP for session in progress with matching codec */ - if (status == 183) + if ((status == 180 || status == 183) && sip->sip_payload && sip->sip_payload->pl_data) sdp_extract_sdp(leg, sip, false);
LOGP(DSIP, LOGL_INFO, "leg(%p) is now progressing.\n", leg);