[sr-dev] git:5.5:3b523ff4: modules: readme files regenerated - modules ... [skip ci]

Kamailio Dev kamailio.dev at kamailio.org
Wed Sep 22 08:46:45 CEST 2021


Module: kamailio
Branch: 5.5
Commit: 3b523ff4d0bc276ece043f4d4d613662afc0a0d4
URL: https://github.com/kamailio/kamailio/commit/3b523ff4d0bc276ece043f4d4d613662afc0a0d4

Author: Kamailio Dev <kamailio.dev at kamailio.org>
Committer: Kamailio Dev <kamailio.dev at kamailio.org>
Date: 2021-09-22T08:46:41+02:00

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

---

Modified: src/modules/kazoo/README

---

Diff:  https://github.com/kamailio/kamailio/commit/3b523ff4d0bc276ece043f4d4d613662afc0a0d4.diff
Patch: https://github.com/kamailio/kamailio/commit/3b523ff4d0bc276ece043f4d4d613662afc0a0d4.patch

---

diff --git a/src/modules/kazoo/README b/src/modules/kazoo/README
index ab9206a243..7497dd20e8 100644
--- a/src/modules/kazoo/README
+++ b/src/modules/kazoo/README
@@ -443,9 +443,9 @@ modparam("kazoo", "amqp_connection", "kazoo://guest:guest@otherhost:5672")
    handles control to the next sub-loop.
 ...
 while(true) // main  loop
- while(ACK or timeout)  // acknowledge from worker process
- while(SEND or timeout) // anything to send ?
- while(CONSUME or timeout) // any data on consumed exchanges ?
+while(ACK or timeout)  // acknowledge from worker process
+while(SEND or timeout) // anything to send ?
+while(CONSUME or timeout) // any data on consumed exchanges ?
 ...
 
 4.2.1. amqp_consumer_loop_count(int)
@@ -652,11 +652,11 @@ modparam("kazoo", "pua_mode", 0)
 
    Example 1.22. kazoo_publish usage
 ...
-$var(amqp_payload_request) = "{'Event-Category' : 'directory', 'Event-Name' : 'r
-eg_success', 'Contact' : '" + $var(fs_contact) + "', 'Call-ID' : '" + $ci + "',
-'Realm' : '" + $fd +"', 'Username' : '" + $fU + "', 'From-User' : '" + $fU + "',
- 'From-Host' : '" + $fd + "', 'To-User' : '" + $tU +"', 'To-Host' : '" + $td + "
-', 'User-Agent' : '" + $ua +"' ," + $var(register_contants)+ " }";
+$var(amqp_payload_request) = $_s({"Event-Category" : "directory", "Event-Name" :
+ "reg_success", "Contact" : "$(ct{s.escape.common}{s.replace,\','}{s.replace,$$,
+})", "Call-ID" : "$ci", "Realm" : "$fd", "Username" : "$fU", "From-User" : "$fU"
+, "From-Host" : "$fd", "To-User" : "$tU", "To-Host" : "$td", "User-Agent" : "$(u
+a{s.escape.common}{s.replace,\','}{s.replace,$$,})" });
 $var(amqp_routing_key) = "registration.success." + $(fd{kz.encode}) + "." + $fU;
 kazoo_publish("callmgr", $var(amqp_routing_key), $var(amqp_payload_request));
 ...




More information about the sr-dev mailing list