<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Hi Kneeoh,<br>
<br>
Did you remember to set these important module parameters?<br>
<br>
modparam("siptrace", "trace_on", 1)<br>
modparam("siptrace", "trace_flag", "TRACE_FLAG")<br>
<br>
If I remember correctly, in 1.11 you should also set the
"TRACE_FLAG" - seflag(TRACE_FLAG) - before calling trace_dialog().<br>
</tt>
<pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 28.03.2016 20:50, Kneeoh wrote:<br>
</div>
<blockquote
cite="mid:379385936.1227443.1459187433355.JavaMail.yahoo@mail.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff;
font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial,
Lucida Grande, sans-serif;font-size:16px">
<div id="yui_3_16_0_ym18_1_1459180806441_6814" dir="ltr">I need
a little help figuring out why my implementation of the
siptrace module isn't working as expected. I've placed:</div>
<div id="yui_3_16_0_ym18_1_1459180806441_6815" dir="ltr"># Trace
this dialog<br>
trace_dialog();</div>
<div id="yui_3_16_0_ym18_1_1459180806441_6881" dir="ltr"><br>
</div>
<div id="yui_3_16_0_ym18_1_1459180806441_6824" dir="ltr">In my
main route block right after:</div>
<div id="yui_3_16_0_ym18_1_1459180806441_6872" dir="ltr">if (
!create_dialog("B") ) {<br>
xlog("L_INFO", "Unable to create dialog \n");<br>
send_reply("500","Internal Server Error");<br>
exit;<br>
<br>
} <br>
</div>
<div id="yui_3_16_0_ym18_1_1459180806441_6790"><br>
</div>
<div id="yui_3_16_0_ym18_1_1459180806441_6905">When I place a
call and tcpdump the destination host defined in:</div>
<div dir="ltr" id="yui_3_16_0_ym18_1_1459180806441_6910">modparam("siptrace",
"duplicate_uri", "sip:192.168.2.142:9060")</div>
<div id="yui_3_16_0_ym18_1_1459180806441_6954" dir="ltr"><br>
</div>
<div id="yui_3_16_0_ym18_1_1459180806441_6949" dir="ltr">I do
not see any packets heading towards that host. I've run a
debug 4 and am getting the following output. Which is
confusing me, since I've established a dialog and have issued
the trace_dialog command. There should be "something to trace
here". Where am I going wrong? I'm on 1.11.5<br>
</div>
<div id="yui_3_16_0_ym18_1_1459180806441_6916"><br>
</div>
DBG:siptrace:trace_dialog: Nothing to trace here<br>
DBG:siptrace:trace_sl_onreply_out: trace slonreply out<br>
DBG:siptrace:trace_sl_onreply_out: nothing to trace...<br>
DBG:siptrace:trace_onreq_in: trace on req in<br>
DBG:siptrace:trace_onreq_in: nothing to trace...<br>
DBG:siptrace:trace_msg_out: trace off...<br>
<div id="yui_3_16_0_ym18_1_1459180806441_6680"><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>