From fc2992fe7b05f4a51d7b91bc3bfb8243f9b81f24 Mon Sep 17 00:00:00 2001 From: Aleksei Khabuliak Date: Sun, 8 Jan 2023 20:53:14 -0800 Subject: [PATCH] added logs if we don't have enough aux connections --- src/mod/event_handlers/mod_amqp/mod_amqp_xml_handler.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mod/event_handlers/mod_amqp/mod_amqp_xml_handler.c b/src/mod/event_handlers/mod_amqp/mod_amqp_xml_handler.c index 663206b0f8..5cd1248fc9 100644 --- a/src/mod/event_handlers/mod_amqp/mod_amqp_xml_handler.c +++ b/src/mod/event_handlers/mod_amqp/mod_amqp_xml_handler.c @@ -239,6 +239,8 @@ static switch_xml_t xml_amqp_fetch(const char *section, const char *tag_name, co switch_safe_free(amqp_body); amqp_bytes_free(props.reply_to); amqp_destroy_envelope(&envelope); + } else { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "No more aux amqp connections(%d). Increase max-temp-conn\n", i); } } done: