Module: kamailio
Branch: master
Commit: 3dee74bbb7eca8339108ce3dc89c1f76b4d560cc
URL:
https://github.com/kamailio/kamailio/commit/3dee74bbb7eca8339108ce3dc89c1f7…
Author: Emmanuel Schmidbauer <emmanuel(a)getweave.com>
Committer: Emmanuel Schmidbauer <emmanuel(a)getweave.com>
Date: 2016-04-28T09:40:11-04:00
nsq: updated doc
- corrected transformations section, nsq.json usage
---
Modified: modules/nsq/doc/nsq_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/3dee74bbb7eca8339108ce3dc89c1f7…
Patch:
https://github.com/kamailio/kamailio/commit/3dee74bbb7eca8339108ce3dc89c1f7…
---
diff --git a/modules/nsq/doc/nsq_admin.xml b/modules/nsq/doc/nsq_admin.xml
index 0116c75..9bef82a 100644
--- a/modules/nsq/doc/nsq_admin.xml
+++ b/modules/nsq/doc/nsq_admin.xml
@@ -471,11 +471,9 @@ event_route[nsq:consumer-event-presence-update]
<title><function>nsq.json</function> usage</title>
<programlisting format="linespecific">
...
-#nsq_json("$var(amqp_result)", "Channels[0].switch_url",
"$du");
-$du = $nsqE{nsq.json,Channels[0].switch_url};
-if($du != $null) {
- xlog("L_INFO", "$ci|log|user channels found redirecting call to
$du");
- return;
+$var(Custom-Data) = $(nsqE{nsq.json,Custom-Data});
+if($var(Custom-Data) != $null) {
+ xlog("L_INFO", "$ci|log|custom data: $var(Custom-Data)");
}
...
</programlisting>