]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_session: Fixed wrong session termination
authorSungtae Kim <sungtae@messagebird.com>
Fri, 14 Feb 2020 08:45:33 +0000 (08:45 +0000)
committerJoshua Colp <jcolp@sangoma.com>
Wed, 25 Mar 2020 12:55:02 +0000 (07:55 -0500)
commitb58dfbc68ac18786b68a29fb6aa730b2dc475d7e
treed80b6ad7937b5e8f23084c999f11834c3e82eb0d
parent6706af0d5be43dc4d382e082d9ef6b695512f64d
res_pjsip_session: Fixed wrong session termination

When the Asterisk receives 200 OK with invalid SDP,
the Asterisk/PJPROJECT terminating the session.
But if the channel was in the Bridge, Asterisk tries send
the Re-Invite before terminating the session.
And when the Asterisk sending the Re-Invite, it doesn't check
the SDP is NULL or not. This crashes the Asterisk.

Fixed it to close the session correctly if the UAS sends the
200 OK with wrong SDP.

ASTERISK-28743

Change-Id: Ifa864e0e125b1a7ed2f3abd4164187e1dddc56da
res/res_pjsip_session.c