<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi All,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Anyone can help me out for the below issues and questions I have?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Agalya<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> users-bounces@lists.opensips.org [mailto:users-bounces@lists.opensips.org]
<b>On Behalf Of </b>Ramachandran, Agalya (Contractor)<br>
<b>Sent:</b> Thursday, March 17, 2016 10:28 AM<br>
<b>To:</b> users@lists.opensips.org<br>
<b>Subject:</b> [OpenSIPS-Users] Query about avp in siptrace module<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:blue">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Am Agalya and we are using opensips for our project and using “<b>siptrace”
</b>module to trace and duplicate the sip packets to another server. <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">When trying to do so, am getting the below error.<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:red">Mar 2 14:48:21 poc-opensip-cmc-e-001 /usr/local/sbin/opensips[27754]: DBG:siptrace:trace_onreq_in: trace on req in<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red">Mar 2 14:48:21 poc-opensip-cmc-e-001 /usr/local/sbin/opensips[27754]: DBG:siptrace:trace_onreq_in: nothing to trace...<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:blue">I thought adding <b>“traced_user_avp”</b> parameter might solve the issue. I have added the below line and tested the same.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">But I didn’t get through the error and was still seeing the same error.<o:p></o:p></span></p>
<p class="MsoNormal"><i><span style="color:blue">modparam("siptrace", "traced_user_avp", "$avp(traced_user)")<o:p></o:p></span></i></p>
<p class="MsoNormal"><span style="color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:blue">As a workaround, I commented the below lines in
<b>“siptrace.c”</b> file in function <b>trace_onreq_in()</b>, and it worked for me.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Packets are sent to another server. Following the same I have commented the same line of code wherever it is failing for me.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">By adding some debugging statements I found
</span><b><span style="color:red">AVP is NULL and (!flag_trace_is_set(msg)) returns 1</span><span style="color:blue">.</span></b><span style="color:blue"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red">/*if( (avp==NULL) && !flag_trace_is_set(msg))<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red"> {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red"> LM_DBG("nothing to trace...\n");<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red"> return;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red"> }*/<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Query : What is avp? And when avp is returned NULL?
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"> What should I do in order to avoid that error without commenting the code?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"> Why is “traced_user_avp” parameter is used in config file?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:blue">It would be great if you help me to come out of this issue. Also am curious what causes this error message.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue">Agalya<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>