Browse code

kazoo: fix kemi export due to changed function prototype

- change done in dcb8e1650204c9453457871515ab5c7ec2d497f1

Daniel-Constantin Mierla authored on 14/12/2021 19:42:02
Showing 2 changed files
... ...
@@ -1262,10 +1262,10 @@ int kz_amqp_publish_ex(struct sip_msg* msg, char* exchange, char* routing_key, c
1262 1262
 			headers_s.s = "";
1263 1263
 		}
1264 1264
 
1265
-		return ki_kz_amqp_publish(msg, &exchange_s, &routing_key_s, &pl_s, &headers_s);
1265
+		return ki_kz_amqp_publish_hdrs(msg, &exchange_s, &routing_key_s, &pl_s, &headers_s);
1266 1266
 };
1267 1267
 
1268
-int ki_kz_amqp_publish(sip_msg_t* msg, str* exchange, str* routing_key, str* payload, str* headers)
1268
+int ki_kz_amqp_publish_hdrs(sip_msg_t* msg, str* exchange, str* routing_key, str* payload, str* headers)
1269 1269
 {
1270 1270
 	  char *pl = ((str*)payload)->s;
1271 1271
 	  struct json_object *j = json_tokener_parse(pl);
... ...
@@ -1279,6 +1279,11 @@ int ki_kz_amqp_publish(sip_msg_t* msg, str* exchange, str* routing_key, str* pay
1279 1279
 	  return kz_amqp_pipe_send(exchange, routing_key, payload, headers);
1280 1280
 }
1281 1281
 
1282
+int ki_kz_amqp_publish(sip_msg_t* msg, str* exchange, str* routing_key, str* payload)
1283
+{
1284
+	return ki_kz_amqp_publish_hdrs(msg, exchange, routing_key, payload, NULL);
1285
+}
1286
+
1282 1287
 int kz_amqp_publish(struct sip_msg* msg, char* exchange, char* routing_key, char* payload)
1283 1288
 {
1284 1289
 	return kz_amqp_publish_ex(msg, exchange, routing_key, payload, NULL);
... ...
@@ -276,6 +276,7 @@ int kz_amqp_add_connection(modparam_t type, void* val);
276 276
 int kz_amqp_publish(struct sip_msg* msg, char* exchange, char* routing_key, char* payload);
277 277
 int kz_amqp_publish_ex(struct sip_msg* msg, char* exchange, char* routing_key, char* payload, char* headers);
278 278
 int ki_kz_amqp_publish(sip_msg_t* msg, str* exchange, str* routing_key, str* payload, str* headers);
279
+int ki_kz_amqp_publish_hdrs(sip_msg_t* msg, str* exchange, str* routing_key, str* payload);
279 280
 int kz_amqp_query(struct sip_msg* msg, char* exchange, char* routing_key, char* payload, char* dst, char* headers);
280 281
 int kz_amqp_query_ex(struct sip_msg* msg, char* exchange, char* routing_key, char* payload, char* headers);
281 282
 int kz_amqp_subscribe(struct sip_msg* msg, char* payload);