From 9410d7c602cc770bf3cdafdd205624251da7e54f Mon Sep 17 00:00:00 2001 From: William King Date: Thu, 11 Jun 2015 12:33:11 -0700 Subject: [PATCH] FS-7623 Fix param name ordering bug in mod_amqp due to exposing these params --- src/mod/event_handlers/mod_amqp/mod_amqp_producer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/event_handlers/mod_amqp/mod_amqp_producer.c b/src/mod/event_handlers/mod_amqp/mod_amqp_producer.c index b2bf964463..0afc281e19 100644 --- a/src/mod/event_handlers/mod_amqp/mod_amqp_producer.c +++ b/src/mod/event_handlers/mod_amqp/mod_amqp_producer.c @@ -252,10 +252,10 @@ switch_status_t mod_amqp_producer_create(char *name, switch_xml_t cfg) if ( interval && interval > 0 ) { profile->enable_fallback_format_fields = 1; } - } else if (!strncmp(var, "exchange", 8)) { - exchange = switch_core_strdup(profile->pool, val); } else if (!strncmp(var, "exchange_type", 13)) { exchange_type = switch_core_strdup(profile->pool, val); + } else if (!strncmp(var, "exchange", 8)) { + exchange = switch_core_strdup(profile->pool, val); } else if (!strncmp(var, "format_fields", 13)) { int size = 0; if ((size = mod_amqp_count_chars(val, ',')) >= MAX_ROUTING_KEY_FORMAT_FIELDS) {