[sr-dev] [kamailio/kamailio] Segmentation Fault in Kamailio v4.4.5 Git-Rev. e9d576 (#1040)
Muhammad Shahzad Shafi
notifications at github.com
Tue Mar 21 14:48:50 CET 2017
Hi,
It is set only when we need to have sip trace, for example here is one of code fragments that do SIP tracing,
<pre>
...
# !define WITH_LEGAL_INTERCEPTION
...
#!ifdef WITH_LEGAL_INTERCEPTION
# check if source is marked for sip trace, this will be only set if local authentication is enabled
if ($(avp(allow_trace){s.int}) == 1) {
xlog("L_NOTICE", "[$pr:$fU@$si:$sp]: LI marking source user '$fU' for '$rm' request to '$ru' - User-Agent: '$ua' \n");
$avp(traced_user) = $fU + "_" + $avp(oexten);
setflag(FLT_LI);
sip_trace();
};
#!endif
</pre>
However as I have disabled WITH_LEGAL_INTERCEPTION flag in global section, so this should never execute, i.e. the $avp(traced_user) should be never set.
Please note i assume that adding a space between # and ! disables the #!define construct. Please confirm if i am doing it right (see above code example).
Thank you.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1040#issuecomment-288083199
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20170321/0cb95db7/attachment.html>
More information about the sr-dev
mailing list