Module: kamailio Branch: master Commit: aef56c53f014a29ae4d7e1a7142b2dd9e9232c31 URL: https://github.com/kamailio/kamailio/commit/aef56c53f014a29ae4d7e1a7142b2dd9e9232c31
Author: lazedo <[email protected]> Committer: lazedo <[email protected]> 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); _______________________________________________ sr-dev mailing list [email protected] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
