[sr-dev] git:master:e46875c9: nsq: regenerated the readme file

Daniel-Constantin Mierla miconda at gmail.com
Fri Apr 29 09:03:26 CEST 2016


Module: kamailio
Branch: master
Commit: e46875c9c75a402966512251c9847eca14c9db44
URL: https://github.com/kamailio/kamailio/commit/e46875c9c75a402966512251c9847eca14c9db44

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-04-29T00:23:40+02:00

nsq: regenerated the readme file

---

Modified: modules/nsq/README

---

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

---

diff --git a/modules/nsq/README b/modules/nsq/README
index 40c7c03..f4f135f 100644
--- a/modules/nsq/README
+++ b/modules/nsq/README
@@ -10,7 +10,7 @@ Emmanuel Schmidbauer
 
    <emmanuel at getweave.com>
 
-   Copyright © 2016 Weave Communications
+   Copyright © 2016 Weave Communications
      __________________________________________________________________
 
    Table of Contents
@@ -313,7 +313,7 @@ modparam("nsq", "consumer_use_nsqd", 1)
    The default name of the field in json payload to compose the event name
    1st part
 
-   Default value is "Event-Category".
+   Default value is “Event-Category”.
 
    Example 1.7. Set consumer_event_key parameter
 ...
@@ -325,7 +325,7 @@ modparam("nsq", "consumer_event_key", "My-JSON-Field-Name")
    The default name of the field in json payload to compose the event name
    2nd part
 
-   Default value is "Event-Name".
+   Default value is “Event-Name”.
 
    Example 1.8. Set consumer_event_sub_key parameter
 ...
@@ -357,11 +357,11 @@ modparam("nsq", "consumer_workers", 2)
 
 4.1.10. topic_channel(str)
 
-   The NSQ Topic and Channel. Delimiter-separated by ":". It be set
+   The NSQ Topic and Channel. Delimiter-separated by “:”. It be set
    multiple times to subscribe to multiple topics and channels. The value
    of consumer_workers is allocated per topic_channel.
 
-   Default value is "Kamailio-Topic:Kamailio-Channel".
+   Default value is “Kamailio-Topic:Kamailio-Channel”.
 
    Example 1.11. Set topic_channel parameter
 ...
@@ -378,7 +378,7 @@ modparam("nsq", "topic_channel", "My-NSQ-Topic-2:My-NSQ-Channel-2")
    If set, the nsq_pua_publish function will update the presentity status
    in the database.
 
-   Default value is "NULL".
+   Default value is “NULL”.
 
    Example 1.12. Set db_url parameter
 ...
@@ -389,7 +389,7 @@ modparam("nsq", "db_url", "mysql://kamailio:kamailiorw@localhost/kamailio")
 
    The name of the presentity table in the database.
 
-   Default value is "presentity".
+   Default value is “presentity”.
 
    Example 1.13. Set presentity_table parameter
 ...
@@ -404,7 +404,7 @@ modparam("nsq", "presentity_table", "my_presentity_table")
 
 5.1. Presence Pelated
 
-5.1.1. nsq_pua_publish(json_payload)
+5.1.1.  nsq_pua_publish(json_payload)
 
    The function build presentity state from json_payload and updates
    presentity table.
@@ -433,10 +433,8 @@ ackage})", 1);
      * json
        Example 1.15. nsq.json usage
 ...
-#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)");
 }
 ...




More information about the sr-dev mailing list