]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip distributor: Don't send 503 response to responses. 18/1618/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:21:29 +0000 (12:21 -0500)
commit2fc3267677bb9f85bfca58060e31ba50c641c482
tree8c38b08ff57b83ed4e11234743e58c62e91ac2ab
parent99c8d5c17f8be380b253095b99a322d0bfc98259
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