Browse Source

avoid duplicated pings

remove udp check as nat_traversal explicitly checks for udp
4.3
lazedo 7 years ago
committed by Luis Azedo
parent
commit
420a4281e6
1 changed files with 3 additions and 4 deletions
  1. +3
    -4
      kamailio/presence-role.cfg

+ 3
- 4
kamailio/presence-role.cfg View File

@ -11,7 +11,6 @@
#!trydef KZ_PRESENCE_REQUEST_RESUBSCRIBE_PROBE 0
#!trydef KZ_PRESENCE_REQUEST_PROBE 1
#!trydef KZ_PRESENCE_NO_TARGETS_LOG_LEVEL L_DBG
#!trydef KZ_PRESENCE_KEEPALIVE_UDP_ONLY 0
modparam("htable", "htable", "p=>size=32;autoexpire=3600;")
modparam("htable", "htable", "first=>size=32;autoexpire=3600;initval =0;updateexpire=1;")
@ -71,7 +70,6 @@ kazoo.presence_request_resubscribe_probe = KZ_PRESENCE_REQUEST_RESUBSCRIBE_PROBE
kazoo.presence_ignore_status_probe_resp = KZ_PRESENCE_IGNORE_STATUS_PROBE_RESP descr "ignore online/offline probe replies"
kazoo.presence_max_call_per_presentity = KZ_PRESENCE_MAX_CALL_PER_PRESENTITY descr "max number of calls per presentity"
kazoo.presence_no_targets_log_level = KZ_PRESENCE_NO_TARGETS_LOG_LEVEL descr "when a presence event is received and there no targets we can log at another level"
kazoo.presence_keepalive_udp_only = KZ_PRESENCE_KEEPALIVE_UDP_ONLY descr "should we keepalive nat phones for udp only"
#!include_file "presence-query.cfg"
#!include_file "presence-notify.cfg"
@ -84,8 +82,9 @@ kazoo.presence_keepalive_udp_only = KZ_PRESENCE_KEEPALIVE_UDP_ONLY descr "should
route[PRESENCE_NAT]
{
if (isflagset(FLT_NATS)) {
if(!( ($sel(cfg_get.kazoo.presence_keepalive_udp_only) == 1 && $proto != "udp")
|| ($proto =="ws" || $proto == "wss")
$xavp(regcfg=>match_received) = $su;
if(!( ($proto != "udp") ||
(registered("location", "$rz:$Au", 2, 1) == 1)
)) {
nat_keepalive();
}


Loading…
Cancel
Save