res_pjsip: Deny requests when threadpool queue is backed up.
[asterisk/asterisk.git] / res / res_pjsip.c
index cdaed4e..9d0540d 100644 (file)
@@ -3809,6 +3809,11 @@ static void remove_request_headers(pjsip_endpoint *endpt)
        }
 }
 
+long ast_sip_threadpool_queue_size(void)
+{
+       return ast_threadpool_queue_size(sip_threadpool);
+}
+
 AST_TEST_DEFINE(xml_sanitization_end_null)
 {
        char sanitized[8];