[sr-dev] git:4.3:18251e59: kazoo : check amqp version

lazedo luis.azedo at factorlusitano.com
Wed Nov 25 13:54:32 CET 2015


Module: kamailio
Branch: 4.3
Commit: 18251e590f22a37a0392e981987e3a46a3122cbe
URL: https://github.com/kamailio/kamailio/commit/18251e590f22a37a0392e981987e3a46a3122cbe

Author: lazedo <luis.azedo at factorlusitano.com>
Committer: lazedo <luis.azedo at factorlusitano.com>
Date: 2015-11-25T12:54:28Z

kazoo : check amqp version

manual backport from master

---

Modified: modules/kazoo/kz_amqp.c

---

Diff:  https://github.com/kamailio/kamailio/commit/18251e590f22a37a0392e981987e3a46a3122cbe.diff
Patch: https://github.com/kamailio/kamailio/commit/18251e590f22a37a0392e981987e3a46a3122cbe.patch

---

diff --git a/modules/kazoo/kz_amqp.c b/modules/kazoo/kz_amqp.c
index 9ec34e5..f7572b6 100644
--- a/modules/kazoo/kz_amqp.c
+++ b/modules/kazoo/kz_amqp.c
@@ -54,7 +54,7 @@ const amqp_table_t kz_amqp_empty_table = { 0, NULL };
 amqp_exchange_declare_ok_t * AMQP_CALL kz_amqp_exchange_declare(amqp_connection_state_t state, amqp_channel_t channel,
 			amqp_bytes_t exchange, amqp_bytes_t type,
 			amqp_boolean_t passive, amqp_boolean_t durable, amqp_table_t arguments) {
-#if AMQP_VERSION_MINOR == 5
+#if AMQP_VERSION_MAJOR == 0 && AMQP_VERSION_MINOR < 6
 	return amqp_exchange_declare(state, channel, exchange, type, passive, durable, arguments);
 #else
 	return amqp_exchange_declare(state, channel, exchange, type, passive, durable, 0, 0, arguments);




More information about the sr-dev mailing list