Browse Source

KAZOO-5414 Part 2 (#158)

* enable consistent_hash_exchange

* handle retransmissions also for request within dialog

from kamailio project

* add a-leg to replaces header
KAZOO-5650
lazedo 9 years ago
committed by bitbashing
parent
commit
0b79979b09
3 changed files with 13 additions and 5 deletions
  1. +6
    -3
      kamailio/default.cfg
  2. +6
    -1
      kamailio/fast-pickup-role.cfg
  3. +1
    -1
      rabbitmq/enabled_plugins

+ 6
- 3
kamailio/default.cfg View File

@ -344,10 +344,13 @@ route
route[CHECK_RETRANS] route[CHECK_RETRANS]
{ {
# handle retransmissions
if(t_precheck_trans()) {
# handle retransmissions
if (!is_method("ACK")) {
if(t_precheck_trans()) {
t_check_trans();
exit;
}
t_check_trans(); t_check_trans();
exit;
} }
} }


+ 6
- 1
kamailio/fast-pickup-role.cfg View File

@ -44,7 +44,12 @@ route[FAST_PICKUP_ATTEMPT]
if(kazoo_query("callevt", $var(amqp_routing_key), $var(amqp_payload_request))) { if(kazoo_query("callevt", $var(amqp_routing_key), $var(amqp_payload_request))) {
$du = $(kzR{kz.json,Switch-URL}); $du = $(kzR{kz.json,Switch-URL});
if($du != $null) { if($du != $null) {
xlog("L_INFO", "$ci|log|call-id $var(replaced_call_id) found redirecting call to $du\n");
if($(ru{uri.user}) =~ "\*") {
xlog("L_INFO", "$ci|log|adding a-leg to replaces header\n");
remove_hf_re("^Replaces");
append_hf("Replaces: $var(replaced_call_id);a-leg=true\r\n");
}
xlog("L_INFO", "$ci|log|call-id $var(replaced_call_id) found redirecting call ($(ru{uri.user})) to $du\n");
route(EXTERNAL_TO_INTERNAL_RELAY); route(EXTERNAL_TO_INTERNAL_RELAY);
exit(); exit();
} else { } else {


+ 1
- 1
rabbitmq/enabled_plugins View File

@ -1 +1 @@
[rabbitmq_management].
[rabbitmq_management, rabbitmq_consistent_hash_exchange].

Loading…
Cancel
Save