Module: kamailio
Branch: master
Commit: 38ba61170abdfeb189f7b05d6daf19f15378fab9
URL:
https://github.com/kamailio/kamailio/commit/38ba61170abdfeb189f7b05d6daf19f…
Author: Sergey Safarov <s.safarov(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-09-21T20:56:55+02:00
kazoo: fixed json body in example
---
Modified: src/modules/kazoo/doc/kazoo_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/38ba61170abdfeb189f7b05d6daf19f…
Patch:
https://github.com/kamailio/kamailio/commit/38ba61170abdfeb189f7b05d6daf19f…
---
diff --git a/src/modules/kazoo/doc/kazoo_admin.xml
b/src/modules/kazoo/doc/kazoo_admin.xml
index 6b236ed50a..ef3b41890b 100644
--- a/src/modules/kazoo/doc/kazoo_admin.xml
+++ b/src/modules/kazoo/doc/kazoo_admin.xml
@@ -624,7 +624,7 @@ modparam("kazoo", "pua_mode", 0)
<title><function>kazoo_publish</function> usage</title>
<programlisting format="linespecific">
...
-$var(amqp_payload_request) = "{'Event-Category' : 'directory',
'Event-Name' : 'reg_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" :
"$(ua{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));
...