Increase TCP connection lifetime, PCSCF registration subscription to 10 hrs for long calls
This commit is contained in:
@@ -99,7 +99,7 @@ enable_tls=yes
|
|||||||
#!ifdef WITH_TCP
|
#!ifdef WITH_TCP
|
||||||
# life time of TCP connection when there is no traffic
|
# life time of TCP connection when there is no traffic
|
||||||
# - a bit higher than registration expires to cope with UA behind NAT
|
# - a bit higher than registration expires to cope with UA behind NAT
|
||||||
tcp_connection_lifetime=3615
|
tcp_connection_lifetime=36000
|
||||||
# If a message received over a tcp connection has "alias" in its via a new tcp
|
# If a message received over a tcp connection has "alias" in its via a new tcp
|
||||||
# alias port will be created for the connection the message came from (the
|
# alias port will be created for the connection the message came from (the
|
||||||
# alias port will be set to the via one).
|
# alias port will be set to the via one).
|
||||||
@@ -388,6 +388,8 @@ modparam("ims_registrar_pcscf", "is_registered_fallback2ip", 1)
|
|||||||
modparam("ims_registrar_pcscf", "ignore_reg_state", 1)
|
modparam("ims_registrar_pcscf", "ignore_reg_state", 1)
|
||||||
modparam("ims_registrar_pcscf", "ignore_contact_rxport_check", 1)
|
modparam("ims_registrar_pcscf", "ignore_contact_rxport_check", 1)
|
||||||
modparam("ims_registrar_pcscf", "pending_reg_expires", 30)
|
modparam("ims_registrar_pcscf", "pending_reg_expires", 30)
|
||||||
|
modparam("ims_registrar_pcscf", "subscription_expires", 36000)
|
||||||
|
modparam("ims_usrloc_pcscf", "expires_grace", 36000)
|
||||||
|
|
||||||
#!ifdef WITH_REGINFO
|
#!ifdef WITH_REGINFO
|
||||||
modparam("ims_registrar_pcscf", "subscribe_to_reginfo", 1)
|
modparam("ims_registrar_pcscf", "subscribe_to_reginfo", 1)
|
||||||
@@ -908,7 +910,7 @@ event_route[uac:reply] {
|
|||||||
$sht(natpingfail=>$uac_req(ouri)) = $sht(natpingfail=>$uac_req(ouri)) + 1;
|
$sht(natpingfail=>$uac_req(ouri)) = $sht(natpingfail=>$uac_req(ouri)) + 1;
|
||||||
}
|
}
|
||||||
xlog(" request sent to $uac_req(ruri): Fail Counter is $sht(natpingfail=>$uac_req(ouri))\n");
|
xlog(" request sent to $uac_req(ruri): Fail Counter is $sht(natpingfail=>$uac_req(ouri))\n");
|
||||||
if ($sht(natpingfail=>$uac_req(ouri)) > 5) {
|
if ($sht(natpingfail=>$uac_req(ouri)) > 30) {
|
||||||
if ($(uac_req(ouri){uri.transport}) == "tcp") {
|
if ($(uac_req(ouri){uri.transport}) == "tcp") {
|
||||||
$var(alias) = "alias="+$(uac_req(ouri){uri.host})+"~"+$(uac_req(ouri){uri.port})+"~2";
|
$var(alias) = "alias="+$(uac_req(ouri){uri.host})+"~"+$(uac_req(ouri){uri.port})+"~2";
|
||||||
} else if ($(uac_req(ouri){uri.transport}) == "tls") {
|
} else if ($(uac_req(ouri){uri.transport}) == "tls") {
|
||||||
|
|||||||
Reference in New Issue
Block a user