Browse Source

config tweaks

3.17
karl anderson 12 years ago
parent
commit
5e16640224
5 changed files with 8 additions and 2 deletions
  1. +2
    -2
      kamailio/default.cfg
  2. +1
    -0
      kamailio/dispatcher-role.cfg
  3. +2
    -0
      kamailio/presence-role.cfg
  4. +2
    -0
      kamailio/registrar-role.cfg
  5. +1
    -0
      system/rsyslog.d/90-2600hzPlatform.conf

+ 2
- 2
kamailio/default.cfg View File

@ -508,9 +508,9 @@ failure_route[INTERNAL_FAULT]
## get_redirects("*"); ## get_redirects("*");
if($T_rpl($hdr(X-Redirect-Server)) != $null) { if($T_rpl($hdr(X-Redirect-Server)) != $null) {
$var(contact_uri) = @from.uri.user + "@" + @from.uri.host;
$var(from_uri) = @from.uri.user + "@" + @from.uri.host;
$sht(associations=>$var(contact_uri)) = $T_rpl($hdr(X-Redirect-Server));
$sht(associations=>$var(from_uri)) = $T_rpl($hdr(X-Redirect-Server));
xlog("L_INFO", "$ci|log|stored redirect mapping for $var(contact_uri) to $T_rpl($hdr(X-Redirect-Server))"); xlog("L_INFO", "$ci|log|stored redirect mapping for $var(contact_uri) to $T_rpl($hdr(X-Redirect-Server))");


+ 1
- 0
kamailio/dispatcher-role.cfg View File

@ -87,6 +87,7 @@ route[DISPATCHER_FIND_ROUTES]
$var(prefered_route) = $sht(associations=>$var(association)); $var(prefered_route) = $sht(associations=>$var(association));
xlog("L_INFO", "$ci|log|from uri $var(from_uri) associated with media server $var(prefered_route)"); xlog("L_INFO", "$ci|log|from uri $var(from_uri) associated with media server $var(prefered_route)");
route(DISPATCHER_REORDER_ROUTES); route(DISPATCHER_REORDER_ROUTES);
$sht(associations=>$var(from_uri)) = $null;
} else if ($sht(associations=>$var(contact_uri)) != $null) { } else if ($sht(associations=>$var(contact_uri)) != $null) {
$var(association) = $var(contact_uri); $var(association) = $var(contact_uri);
$var(prefered_route) = $sht(associations=>$var(association)); $var(prefered_route) = $sht(associations=>$var(association));


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

@ -6,6 +6,8 @@ modparam("htable", "htable", "dbkp=>size=16;autoexpire=7200")
######## Presence User Agent module ######## ######## Presence User Agent module ########
loadmodule "pua_dialoginfo.so" loadmodule "pua_dialoginfo.so"
modparam("pua_dialoginfo", "library_mode", 1) modparam("pua_dialoginfo", "library_mode", 1)
modparam("pua", "min_expires", 300)
modparam("pua", "max_expires", 3600)
######## Presence server module ######## ######## Presence server module ########
loadmodule "presence.so" loadmodule "presence.so"


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

@ -33,6 +33,8 @@ modparam("nathelper", "sipping_bflag", FLB_NATSIPPING)
####### SIP Registrar implementation module ########## ####### SIP Registrar implementation module ##########
loadmodule "registrar.so" loadmodule "registrar.so"
modparam("registrar", "received_avp", "$avp(AVP_RECV_PARAM)") modparam("registrar", "received_avp", "$avp(AVP_RECV_PARAM)")
modparam("registrar", "min_expires", 300)
modparam("registrar", "max_expires", 3600)
####### Registrar Logic ######## ####### Registrar Logic ########
route[HANDLE_REGISTER] route[HANDLE_REGISTER]


+ 1
- 0
system/rsyslog.d/90-2600hzPlatform.conf View File

@ -1 +1,2 @@
local0.* /var/log/2600hz-platform.log local0.* /var/log/2600hz-platform.log
& ~

Loading…
Cancel
Save