Browse Source

Add NAT_UAC_TEST as config option in local.cfg and defs.cfg

drop_requests
Noah Mehl 8 years ago
committed by lazedo
parent
commit
278f42d5ae
3 changed files with 13 additions and 1 deletions
  1. +4
    -0
      kamailio/defs.cfg
  2. +8
    -0
      kamailio/local.cfg
  3. +1
    -1
      kamailio/nat-traversal-role.cfg

+ 4
- 0
kamailio/defs.cfg View File

@ -99,6 +99,10 @@
#!define KZ_PRESENCE_REQUEST_PROBE 1
#!endif
#!ifndef NAT_UAC_TEST_LEVEL
#!substdef "!NAT_UAC_TEST_LEVEL!3!g"
#!endif
#################################
## Defs related to SIP_TRACE_ROLE
##


+ 8
- 0
kamailio/local.cfg View File

@ -106,6 +106,14 @@ mhomed=0
##!define KZ_UDP_REGISTRAR_PORT 7000
##!define KZ_TCP_REGISTRAR_PORT 7000
################################################################################
## NAT
################################################################################
## These parameters are OPTIONAL.
## It allows overriding the nat_uac_test with a different value than "3"
## (default) as it is proven that it fixes the issue reported here:
## https://lists.kamailio.org/pipermail/sr-users/2016-August/094211.html
# # #!substdef "!NAT_UAC_TEST_LEVEL!1!g"
################################################################################
## SIP traffic mirroring to SIP_TRACE server


+ 1
- 1
kamailio/nat-traversal-role.cfg View File

@ -32,7 +32,7 @@ route[NAT_TEST_AND_CORRECT]
return();
}
if (nat_uac_test("3")) {
if (nat_uac_test("NAT_UAC_TEST_LEVEL")) {
force_rport();
fix_nated_contact();
}


Loading…
Cancel
Save