提交 257bb5c6 authored 作者: William King's avatar William King

FS-7623 allow for custom exchange name and type for mod_amqp producers

上级 6484c6fc
...@@ -253,9 +253,9 @@ switch_status_t mod_amqp_producer_create(char *name, switch_xml_t cfg) ...@@ -253,9 +253,9 @@ switch_status_t mod_amqp_producer_create(char *name, switch_xml_t cfg)
profile->enable_fallback_format_fields = 1; profile->enable_fallback_format_fields = 1;
} }
} else if (!strncmp(var, "exchange", 8)) { } else if (!strncmp(var, "exchange", 8)) {
exchange = switch_core_strdup(profile->pool, "TAP.Events"); exchange = switch_core_strdup(profile->pool, val);
} else if (!strncmp(var, "exchange_type", 13)) { } else if (!strncmp(var, "exchange_type", 13)) {
exchange_type = switch_core_strdup(profile->pool, "topic"); exchange_type = switch_core_strdup(profile->pool, val);
} else if (!strncmp(var, "format_fields", 13)) { } else if (!strncmp(var, "format_fields", 13)) {
int size = 0; int size = 0;
if ((size = mod_amqp_count_chars(val, ',')) >= MAX_ROUTING_KEY_FORMAT_FIELDS) { if ((size = mod_amqp_count_chars(val, ',')) >= MAX_ROUTING_KEY_FORMAT_FIELDS) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论