|
|
@ -1,6 +1,10 @@ |
|
|
######## Generic Hash Table container in shared memory ######## |
|
|
######## Generic Hash Table container in shared memory ######## |
|
|
modparam("htable", "htable", "failover=>size=16;autoexpire=120") |
|
|
modparam("htable", "htable", "failover=>size=16;autoexpire=120") |
|
|
|
|
|
|
|
|
|
|
|
#!ifdef CALL-PARK-REDIRECT-ROLE |
|
|
|
|
|
modparam("htable", "htable", "park=>size=4;autoexpire=600") |
|
|
|
|
|
#!endif |
|
|
|
|
|
|
|
|
####### Dispatcher module ######## |
|
|
####### Dispatcher module ######## |
|
|
loadmodule "dispatcher.so" |
|
|
loadmodule "dispatcher.so" |
|
|
modparam("dispatcher", "list_file", "/etc/kazoo/kamailio/dbtext/dispatcher") |
|
|
modparam("dispatcher", "list_file", "/etc/kazoo/kamailio/dbtext/dispatcher") |
|
|
@ -69,6 +73,7 @@ route[DISPATCHER_FIND_ROUTES] |
|
|
#!endif |
|
|
#!endif |
|
|
|
|
|
|
|
|
if (is_method("INVITE")) { |
|
|
if (is_method("INVITE")) { |
|
|
|
|
|
|
|
|
if($hdr(Replaces)!= $null) { |
|
|
if($hdr(Replaces)!= $null) { |
|
|
$var(replaced_call_id) = $(hdr(Replaces){s.select,0,;}); |
|
|
$var(replaced_call_id) = $(hdr(Replaces){s.select,0,;}); |
|
|
xlog("L_INFO", "$ci|log|replaces call-id $var(replaced_call_id)"); |
|
|
xlog("L_INFO", "$ci|log|replaces call-id $var(replaced_call_id)"); |
|
|
@ -82,6 +87,17 @@ route[DISPATCHER_FIND_ROUTES] |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
##### CALL-PARK #### |
|
|
|
|
|
#!ifdef CALL-PARK-REDIRECT-ROLE |
|
|
|
|
|
if($(ru{uri.user}) =~ "\*3" && $sht(park=>$(ru{uri.user})@$(ru{uri.domain})) != $null) { |
|
|
|
|
|
$du = $sht(park=>$(ru{uri.user})@$(ruri{uri.domain})); |
|
|
|
|
|
$sht(park=>$(ru{uri.user})@$(ruri{uri.domain})) = $null; |
|
|
|
|
|
xlog("L_INFO", "$ci|log|redirecting park request to $du"); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
#!endif |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (!ds_select_dst("$var(ds_group)", "0") || $(avp(ds_dst)[0]) == $null) { |
|
|
if (!ds_select_dst("$var(ds_group)", "0") || $(avp(ds_dst)[0]) == $null) { |
|
|
|