Browse code

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

Kamailio Dev authored on 22/09/2021 06:46:41
Showing 1 changed files
... ...
@@ -443,9 +443,9 @@ modparam("kazoo", "amqp_connection", "kazoo://guest:guest@otherhost:5672")
443 443
    handles control to the next sub-loop.
444 444
 ...
445 445
 while(true) // main  loop
446
- while(ACK or timeout)  // acknowledge from worker process
447
- while(SEND or timeout) // anything to send ?
448
- while(CONSUME or timeout) // any data on consumed exchanges ?
446
+while(ACK or timeout)  // acknowledge from worker process
447
+while(SEND or timeout) // anything to send ?
448
+while(CONSUME or timeout) // any data on consumed exchanges ?
449 449
 ...
450 450
 
451 451
 4.2.1. amqp_consumer_loop_count(int)
... ...
@@ -652,11 +652,11 @@ modparam("kazoo", "pua_mode", 0)
652 652
 
653 653
    Example 1.22. kazoo_publish usage
654 654
 ...
655
-$var(amqp_payload_request) = "{'Event-Category' : 'directory', 'Event-Name' : 'r
656
-eg_success', 'Contact' : '" + $var(fs_contact) + "', 'Call-ID' : '" + $ci + "',
657
-'Realm' : '" + $fd +"', 'Username' : '" + $fU + "', 'From-User' : '" + $fU + "',
658
- 'From-Host' : '" + $fd + "', 'To-User' : '" + $tU +"', 'To-Host' : '" + $td + "
659
-', 'User-Agent' : '" + $ua +"' ," + $var(register_contants)+ " }";
655
+$var(amqp_payload_request) = $_s({"Event-Category" : "directory", "Event-Name" :
656
+ "reg_success", "Contact" : "$(ct{s.escape.common}{s.replace,\','}{s.replace,$$,
657
+})", "Call-ID" : "$ci", "Realm" : "$fd", "Username" : "$fU", "From-User" : "$fU"
658
+, "From-Host" : "$fd", "To-User" : "$tU", "To-Host" : "$td", "User-Agent" : "$(u
659
+a{s.escape.common}{s.replace,\','}{s.replace,$$,})" });
660 660
 $var(amqp_routing_key) = "registration.success." + $(fd{kz.encode}) + "." + $fU;
661 661
 kazoo_publish("callmgr", $var(amqp_routing_key), $var(amqp_payload_request));
662 662
 ...