Module: kamailio
Branch: master
Commit: cb92c2b176dc55fb03cab172c63b115267d1bac9
URL:
https://github.com/kamailio/kamailio/commit/cb92c2b176dc55fb03cab172c63b115…
Author: lazedo <luis.azedo(a)factorlusitano.com>
Committer: lazedo <luis.azedo(a)factorlusitano.com>
Date: 2017-04-08T23:28:44+01:00
kazoo: create empty routing if not provided
---
Modified: src/modules/kazoo/kz_amqp.c
---
Diff:
https://github.com/kamailio/kamailio/commit/cb92c2b176dc55fb03cab172c63b115…
Patch:
https://github.com/kamailio/kamailio/commit/cb92c2b176dc55fb03cab172c63b115…
---
diff --git a/src/modules/kazoo/kz_amqp.c b/src/modules/kazoo/kz_amqp.c
index 46064ae..394dee2 100644
--- a/src/modules/kazoo/kz_amqp.c
+++ b/src/modules/kazoo/kz_amqp.c
@@ -1834,8 +1834,8 @@ int kz_amqp_subscribe(struct sip_msg* msg, char* payload)
}
if(routing == NULL) {
- LM_ERR("invalid routing\n");
- goto error;
+ LM_INFO("creating empty routing key : %s\n", payload_s.s);
+ routing = kz_amqp_routing_new("");
}
exchange = kz_amqp_exchange_from_json(&exchange_s, json_obj);