]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_session.c: Don't send extra BYE if SDP invalid. 30/3130/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 17:27:20 +0000 (12:27 -0500)
commit359134c8d3a0720baee28e1f7054609875018535
tree919e4bd36d603d5a634ff09964a5051c7fd8804c
parent5fabcf2ca1d66ce6dbaac26eb3f0cf619e539454
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