Browse code

modules: readme files regenerated - kazoo ... [skip ci]

Kamailio Dev authored on 19/11/2021 11:46:21
Showing 1 changed files
... ...
@@ -67,10 +67,10 @@ Luis Azedo
67 67
               5.1. amqp related
68 68
 
69 69
                     5.1.1. kazoo_publish(exchange, routing_key,
70
-                            json_payload)
70
+                            json_payload [, amqp_headers])
71 71
 
72 72
                     5.1.2. kazoo_query(exchange, routing_key, json_payload
73
-                            [, target_var])
73
+                            [, target_var] [, amqp_headers])
74 74
 
75 75
                     5.1.3. kazoo_subscribe(exchange, exchange_type, queue,
76 76
                             routing_key)
... ...
@@ -175,9 +175,11 @@ Chapter 1. Admin Guide
175 175
 
176 176
         5.1. amqp related
177 177
 
178
-              5.1.1. kazoo_publish(exchange, routing_key, json_payload)
178
+              5.1.1. kazoo_publish(exchange, routing_key, json_payload [,
179
+                      amqp_headers])
180
+
179 181
               5.1.2. kazoo_query(exchange, routing_key, json_payload [,
180
-                      target_var])
182
+                      target_var] [, amqp_headers])
181 183
 
182 184
               5.1.3. kazoo_subscribe(exchange, exchange_type, queue,
183 185
                       routing_key)
... ...
@@ -623,9 +625,11 @@ modparam("kazoo", "pua_mode", 0)
623 625
 
624 626
    5.1. amqp related
625 627
 
626
-        5.1.1. kazoo_publish(exchange, routing_key, json_payload)
628
+        5.1.1. kazoo_publish(exchange, routing_key, json_payload [,
629
+                amqp_headers])
630
+
627 631
         5.1.2. kazoo_query(exchange, routing_key, json_payload [,
628
-                target_var])
632
+                target_var] [, amqp_headers])
629 633
 
630 634
         5.1.3. kazoo_subscribe(exchange, exchange_type, queue,
631 635
                 routing_key)
... ...
@@ -643,10 +647,11 @@ modparam("kazoo", "pua_mode", 0)
643 647
 
644 648
 5.1. amqp related
645 649
 
646
-5.1.1.  kazoo_publish(exchange, routing_key, json_payload)
650
+5.1.1.  kazoo_publish(exchange, routing_key, json_payload [, amqp_headers])
647 651
 
648 652
    The function publishes a json payload to rabbitmq. The routing_key
649
-   parameter should be encoded.
653
+   parameter should be encoded. Optional AMQP-Headers are specified in the
654
+   format key1=value1;key2=value2
650 655
 
651 656
    This function can be used from ANY ROUTE.
652 657
 
... ...
@@ -661,12 +666,14 @@ $var(amqp_routing_key) = "registration.success." + $(fd{kz.encode}) + "." + $fU;
661 666
 kazoo_publish("callmgr", $var(amqp_routing_key), $var(amqp_payload_request));
662 667
 ...
663 668
 
664
-5.1.2.  kazoo_query(exchange, routing_key, json_payload [, target_var])
669
+5.1.2.  kazoo_query(exchange, routing_key, json_payload [, target_var] [,
670
+amqp_headers])
665 671
 
666 672
    The function publishes a json payload to rabbitmq, waits for a
667 673
    correlated messageand puts the result in target_var. The routing_key
668 674
    parameter should be encoded. target_var is optional as the function
669
-   also puts the result in pseudo-variable $kzR.
675
+   also puts the result in pseudo-variable $kzR. Optional AMQP-Headers are
676
+   specified in the format key1=value1;key2=value2
670 677
 
671 678
    This function can be used from ANY ROUTE.
672 679