Преглед на файлове

nsq: regenerated the readme file

Daniel-Constantin Mierla преди 9 години
родител
ревизия
e46875c9c7
променени са 1 файла, в които са добавени 11 реда и са изтрити 13 реда
  1. 11 13
      modules/nsq/README

+ 11 - 13
modules/nsq/README

@@ -10,7 +10,7 @@ Emmanuel Schmidbauer
 
 
    <[email protected]>
    <[email protected]>
 
 
-   Copyright © 2016 Weave Communications
+   Copyright © 2016 Weave Communications
      __________________________________________________________________
      __________________________________________________________________
 
 
    Table of Contents
    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
    The default name of the field in json payload to compose the event name
    1st part
    1st part
 
 
-   Default value is "Event-Category".
+   Default value is “Event-Category�.
 
 
    Example 1.7. Set consumer_event_key parameter
    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
    The default name of the field in json payload to compose the event name
    2nd part
    2nd part
 
 
-   Default value is "Event-Name".
+   Default value is “Event-Name�.
 
 
    Example 1.8. Set consumer_event_sub_key parameter
    Example 1.8. Set consumer_event_sub_key parameter
 ...
 ...
@@ -357,11 +357,11 @@ modparam("nsq", "consumer_workers", 2)
 
 
 4.1.10. topic_channel(str)
 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
    multiple times to subscribe to multiple topics and channels. The value
    of consumer_workers is allocated per topic_channel.
    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
    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
    If set, the nsq_pua_publish function will update the presentity status
    in the database.
    in the database.
 
 
-   Default value is "NULL".
+   Default value is “NULL�.
 
 
    Example 1.12. Set db_url parameter
    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.
    The name of the presentity table in the database.
 
 
-   Default value is "presentity".
+   Default value is “presentity�.
 
 
    Example 1.13. Set presentity_table parameter
    Example 1.13. Set presentity_table parameter
 ...
 ...
@@ -404,7 +404,7 @@ modparam("nsq", "presentity_table", "my_presentity_table")
 
 
 5.1. Presence Pelated
 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
    The function build presentity state from json_payload and updates
    presentity table.
    presentity table.
@@ -433,10 +433,8 @@ ackage})", 1);
      * json
      * json
        Example 1.15. nsq.json usage
        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)");
 }
 }
 ...
 ...