diff --git a/kamailio/default.cfg b/kamailio/default.cfg index 3a2b17d..41498c7 100644 --- a/kamailio/default.cfg +++ b/kamailio/default.cfg @@ -887,7 +887,7 @@ onsend_route { } #!ifdef SIP_TRACE_ROLE - if (is_method("ACK")) { + if (is_method("ACK") && isflagset(FLAG_SIP_TRACE)) { sip_trace(); } #!endif