res_pjsip: Deny requests when threadpool queue is backed up.
[asterisk/asterisk.git] / main / threadpool.c
index 46de9b7..60e1e9a 100644 (file)
@@ -1397,3 +1397,8 @@ struct ast_taskprocessor *ast_threadpool_serializer(const char *name, struct ast
 {
        return ast_threadpool_serializer_group(name, pool, NULL);
 }
+
+long ast_threadpool_queue_size(struct ast_threadpool *pool)
+{
+       return ast_taskprocessor_size(pool->tps);
+}