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

Author: lazedo <[email protected]>
Committer: lazedo <[email protected]>
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);


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to