|
|
@ -4,6 +4,7 @@ |
|
|
#!trydef KZ_TRACE 0 |
|
|
#!trydef KZ_TRACE 0 |
|
|
#!trydef KZ_TRACE_INTERNAL 1 |
|
|
#!trydef KZ_TRACE_INTERNAL 1 |
|
|
#!trydef KZ_TRACE_EXTERNAL 1 |
|
|
#!trydef KZ_TRACE_EXTERNAL 1 |
|
|
|
|
|
#!trydef KZ_TRACE_LOCAL 1 |
|
|
#!trydef KZ_TRACE_INTERNAL_INCOMING 1 |
|
|
#!trydef KZ_TRACE_INTERNAL_INCOMING 1 |
|
|
#!trydef KZ_TRACE_INTERNAL_OUTGOING 1 |
|
|
#!trydef KZ_TRACE_INTERNAL_OUTGOING 1 |
|
|
#!trydef KZ_TRACE_EXTERNAL_INCOMING 1 |
|
|
#!trydef KZ_TRACE_EXTERNAL_INCOMING 1 |
|
|
@ -19,6 +20,7 @@ |
|
|
|
|
|
|
|
|
kazoo.trace_external = KZ_TRACE_EXTERNAL descr "activates tracing from external sources" |
|
|
kazoo.trace_external = KZ_TRACE_EXTERNAL descr "activates tracing from external sources" |
|
|
kazoo.trace_internal = KZ_TRACE_INTERNAL descr "activates tracing from internal sources" |
|
|
kazoo.trace_internal = KZ_TRACE_INTERNAL descr "activates tracing from internal sources" |
|
|
|
|
|
kazoo.trace_local = KZ_TRACE_LOCAL descr "activates tracing for local requests" |
|
|
|
|
|
|
|
|
kazoo.trace_internal_incoming = KZ_TRACE_INTERNAL_INCOMING descr "traces the original request as received from internal sources" |
|
|
kazoo.trace_internal_incoming = KZ_TRACE_INTERNAL_INCOMING descr "traces the original request as received from internal sources" |
|
|
kazoo.trace_internal_outgoing = KZ_TRACE_INTERNAL_OUTGOING descr "traces the outgoing request to external sources after possible modification" |
|
|
kazoo.trace_internal_outgoing = KZ_TRACE_INTERNAL_OUTGOING descr "traces the outgoing request to external sources after possible modification" |
|
|
@ -63,10 +65,20 @@ route[SIP_TRACE_EXTERNAL] |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
route[SEND_SIP_TRACE] |
|
|
|
|
|
|
|
|
route[SIP_TRACE_LOCAL] |
|
|
|
|
|
{ |
|
|
|
|
|
if($sel(cfg_get.kazoo.trace_local) == 0) { |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
sip_trace(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
route[SIP_TRACE] |
|
|
{ |
|
|
{ |
|
|
if (isflagset(FLAG_INTERNALLY_SOURCED)) { |
|
|
if (isflagset(FLAG_INTERNALLY_SOURCED)) { |
|
|
route(SIP_TRACE_INTERNAL); |
|
|
route(SIP_TRACE_INTERNAL); |
|
|
|
|
|
} else if (isflagset(FLAG_LOCAL_REQUEST)) { |
|
|
|
|
|
route(SIP_TRACE_LOCAL); |
|
|
} else { |
|
|
} else { |
|
|
route(SIP_TRACE_EXTERNAL); |
|
|
route(SIP_TRACE_EXTERNAL); |
|
|
} |
|
|
} |
|
|
|