[sr-dev] git:master:aef56c53: kazoo : check amqp version
lazedo
luis.azedo at factorlusitano.com
Wed Nov 25 13:51:26 CET 2015
Module: kamailio
Branch: master
Commit: aef56c53f014a29ae4d7e1a7142b2dd9e9232c31
URL: https://github.com/kamailio/kamailio/commit/aef56c53f014a29ae4d7e1a7142b2dd9e9232c31
Author: lazedo <luis.azedo at factorlusitano.com>
Committer: lazedo <luis.azedo at factorlusitano.com>
Date: 2015-11-25T12:51:22Z
kazoo : check amqp version
---
Modified: modules/kazoo/kz_amqp.c
---
Diff: https://github.com/kamailio/kamailio/commit/aef56c53f014a29ae4d7e1a7142b2dd9e9232c31.diff
Patch: https://github.com/kamailio/kamailio/commit/aef56c53f014a29ae4d7e1a7142b2dd9e9232c31.patch
---
diff --git a/modules/kazoo/kz_amqp.c b/modules/kazoo/kz_amqp.c
index 24f817f..535c5a5 100644
--- a/modules/kazoo/kz_amqp.c
+++ b/modules/kazoo/kz_amqp.c
@@ -51,7 +51,7 @@ kz_amqp_zone_ptr kz_primary_zone = 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