Browse Source

allow exchage configuration for registrar

4.3
lazedo 7 years ago
committed by Luis Azedo
parent
commit
429a42a6b3
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      kamailio/registrar-role.cfg

+ 2
- 1
kamailio/registrar-role.cfg View File

@ -26,6 +26,7 @@
#!trydef REGISTRAR_FORCE_FAILOVER 0 #!trydef REGISTRAR_FORCE_FAILOVER 0
#!trydef REGISTRAR_CHECK_AMQP_AVAILABILITY 1 #!trydef REGISTRAR_CHECK_AMQP_AVAILABILITY 1
#!trydef KZ_REGISTRAR_KEEPALIVE_UDP_ONLY 0 #!trydef KZ_REGISTRAR_KEEPALIVE_UDP_ONLY 0
#!trydef REGISTRAR_AMQP_EXCHANGE callmgr
######## Generic Hash Table container in shared memory ######## ######## Generic Hash Table container in shared memory ########
modparam("htable", "htable", "auth_cache=>size=16;autoexpire=7200;") modparam("htable", "htable", "auth_cache=>size=16;autoexpire=7200;")
@ -183,7 +184,7 @@ route[HANDLE_REGISTER]
$avp(kz_timeout) = $sel(cfg_get.kazoo.registrar_query_timeout_ms); $avp(kz_timeout) = $sel(cfg_get.kazoo.registrar_query_timeout_ms);
$xavp(deltas=>query) = $(TV(Sn){s.replace,.,}); $xavp(deltas=>query) = $(TV(Sn){s.replace,.,});
if(kazoo_async_query("callmgr", $var(amqp_routing_key), $var(amqp_payload_request), "KZ_AUTHORIZATION_REPLY", "KZ_AUTHORIZATION_TIMEOUT") != 1) {
if(kazoo_async_query("$def(REGISTRAR_AMQP_EXCHANGE)", $var(amqp_routing_key), $var(amqp_payload_request), "KZ_AUTHORIZATION_REPLY", "KZ_AUTHORIZATION_TIMEOUT") != 1) {
xlog("L_INFO", "$ci|log|failed to send registrar query for authentication credentials for $Au $si:$sp\n"); xlog("L_INFO", "$ci|log|failed to send registrar query for authentication credentials for $Au $si:$sp\n");
t_drop(); t_drop();
} }


Loading…
Cancel
Save