]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip distributor: Don't send 503 response to responses. 17/1617/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:24 +0000 (12:21 -0500)
commit367972e42d1a5f73d8bb4abacd4c681fc77dcd24
tree6782f0452a4b32e1303252777658e6fab0285063
parentcd51b0aeacd6ca41da31039316e898f673686c1e
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