]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip distributor: Don't send 503 response to responses. 16/1616/1
authorMark Michelson <mmichelson@digium.com>
Thu, 12 Nov 2015 17:17:51 +0000 (11:17 -0600)
committerMark Michelson <mmichelson@digium.com>
Thu, 12 Nov 2015 17:17:51 +0000 (11:17 -0600)
commit40b58a5d2b2acddc8ff616b4c0fbdc808e16a9da
tree8404a4565cf98f91d25060a3d106a0b2f186b663
parent6879ce7fba6de293c538c80a4eb273396c0e4d9c
res_pjsip distributor: Don't send 503 response to responses.

When the SIP threadpool is backed up with tasks, we send 503 responses
to ensure that we don't try to overload ourselves. The problem is that
we were not insuring that we were not trying to send a 503 to an
incoming SIP response.

This change makes it so that we only send the 503 on incoming requests.

Change-Id: Ie2b418d89c0e453cc6c2b5c7d543651c981e1404
res/res_pjsip/pjsip_distributor.c