]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_session.c: Don't send extra BYE if SDP invalid. 35/3135/1
authorRichard Mudgett <rmudgett@digium.com>
Wed, 22 Jun 2016 22:26:38 +0000 (17:26 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 30 Jun 2016 20:40:39 +0000 (15:40 -0500)
commit9f2c00725409a462935f343813fb10aba0c449ca
treead13474c9e48b47204235c493c16cf4017e1063d
parent08d3b9a89ef521e84e61ea1d6110b000454076cd
res_pjsip_session.c: Don't send extra BYE if SDP invalid.

When an answer SDP is invalid we were disconnecting the outgoing call and
sending two BYE requests.  The first BYE was sent by PJPROJECT because of
the invalid SDP answer.  The second BYE was sent by Asterisk because it
thought the canceled call was the result of the RFC5407 section 3.1.2 race
condition.

* Made not send the BYE on a canceled session if the SDP negotiation is
incomplete because PJPROJECT has already sent a BYE for the failed
negotiation.

ASTERISK-25772 #close
Reported by:  Dmitriy Serov

Change-Id: I44ad0bd0605e8eeb7035c890d6f97a1331f1a836
res/res_pjsip_session.c