Browse Source

use booleans for bindings

update-rsyslog-config
lazedo 7 years ago
parent
commit
264a7259a5
3 changed files with 4 additions and 4 deletions
  1. +1
    -1
      kamailio/message-role.cfg
  2. +1
    -1
      kamailio/nodes-role.cfg
  3. +2
    -2
      kamailio/presence-role.cfg

+ 1
- 1
kamailio/message-role.cfg View File

@ -54,7 +54,7 @@ route[MESSAGE_REPLY]
route[MESSAGE_BINDINGS] route[MESSAGE_BINDINGS]
{ {
$var(key) = "kamailio@MY_HOSTNAME"; $var(key) = "kamailio@MY_HOSTNAME";
$var(payload) = $_s({"name": "sms", "exchange": "sms", "type": "topic", "queue": "MSG-QUEUE-MY_HOSTNAME", "routing": "message.route.$(var(key){kz.encode}).*", "no_ack": 0 });
$var(payload) = $_s({"name": "sms", "exchange": "sms", "type": "topic", "queue": "MSG-QUEUE-MY_HOSTNAME", "routing": "message.route.$(var(key){kz.encode}).*", "no_ack": false });
kazoo_subscribe("$var(payload)"); kazoo_subscribe("$var(payload)");
} }


+ 1
- 1
kamailio/nodes-role.cfg View File

@ -207,7 +207,7 @@ route[MEDIA_SERVER_RESTART]
#!ifndef NODES_CUSTOM_BINDINGS #!ifndef NODES_CUSTOM_BINDINGS
route[NODES_BINDINGS] route[NODES_BINDINGS]
{ {
$var(payload) = $_s({"name": "nodes", "exchange" : "nodes" , "type" : "fanout", "queue" : "nodes-MY_HOSTNAME", "exclusive":0, "federate":1 });
$var(payload) = $_s({"name": "nodes", "exchange" : "nodes" , "type" : "fanout", "queue" : "nodes-MY_HOSTNAME", "exclusive": false, "federate": true });
kazoo_subscribe("$var(payload)"); kazoo_subscribe("$var(payload)");
} }
#!endif #!endif


+ 2
- 2
kamailio/presence-role.cfg View File

@ -546,7 +546,7 @@ route[PRESENCE_BINDINGS]
#!import_file "presence-custom-bindings.cfg" #!import_file "presence-custom-bindings.cfg"
#!ifndef PRESENCE_CUSTOM_BINDINGS #!ifndef PRESENCE_CUSTOM_BINDINGS
$var(payload) = $_s({ "name" : "presence", "exchange" : "presence", "type" : "topic", "queue" : "presence-dialog-MY_HOSTNAME", "routing" : ["dialog.*.*", "update.*.*", "mwi_updates.*.*"], "exclusive" : 0, "federate" : 1 });
$var(payload) = $_s({ "name" : "presence", "exchange" : "presence", "type" : "topic", "queue" : "presence-dialog-MY_HOSTNAME", "routing" : ["dialog.*.*", "update.*.*", "mwi_updates.*.*"], "exclusive" : false, "federate" : true });
kazoo_subscribe("$var(payload)"); kazoo_subscribe("$var(payload)");
#!endif #!endif
@ -561,7 +561,7 @@ route[PRESENCE_API_BINDINGS]
#!import_file "presence-api-custom-bindings.cfg" #!import_file "presence-api-custom-bindings.cfg"
#!ifndef PRESENCE_API_CUSTOM_BINDINGS #!ifndef PRESENCE_API_CUSTOM_BINDINGS
$var(payload) = $_s({"name": "presence-api", "exchange": "presence", "type": "topic", "queue": "presence-api-MY_HOSTNAME", "routing": ["presence.search_req.*", "presence.reset.*.*"], "exclusive": 0, "federate": 1 });
$var(payload) = $_s({"name": "presence-api", "exchange": "presence", "type": "topic", "queue": "presence-api-MY_HOSTNAME", "routing": ["presence.search_req.*", "presence.reset.*.*"], "exclusive": false, "federate": true });
kazoo_subscribe("$var(payload)"); kazoo_subscribe("$var(payload)");
#!endif #!endif


Loading…
Cancel
Save