]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_t38.c: Fix crash by ignoring 1xx messages.
authorRichard Mudgett <rmudgett@digium.com>
Fri, 29 Jun 2018 23:28:26 +0000 (18:28 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Mon, 2 Jul 2018 16:41:05 +0000 (11:41 -0500)
commit140ce56f503c7bb7f6d118d3200ca5253f1bf4ad
treefa10a181f06f6c5c2f3046fee72fbdad771a5a5e
parent4ed6ab2595d0616603eebca6fb1d3b548e6610b6
res_pjsip_t38.c: Fix crash by ignoring 1xx messages.

If we initiated a T.38 reINVITE, we would crash if we received any other
1xx response message except 100 if it were followed by a 200 response.

* Made ignore any 1xx response so we do not close out the T.38 negotiation
too early.  For good measure we'll now accept any 2xx response as
acceptance of the reINVITE T.38 offer.

NOTE: In v13 we don't actually crash but we should deal with the non-final
response messages and not switch to rejected and then to enabled when the
200 comes in.

ASTERISK-27944

Change-Id: I0ca88aae708d091db7335af73f41035a212adff4
res/res_pjsip_t38.c