<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">so without the condition if(avp_db_load("$fu","$avp(trace)")) <br><br>//Binan<br><br>--- On <b>Sat, 8/25/12, Engineer voip <i>&lt;forvoip4@gmail.com&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Engineer voip &lt;forvoip4@gmail.com&gt;<br>Subject: Re: [OpenSIPS-Users] sip_trace on opensips-cp<br>To: "OpenSIPS users mailling list" &lt;users@lists.opensips.org&gt;<br>Date: Saturday, August 25, 2012, 3:51 AM<br><br><div class="plainMail">Hi,<br>Thank you for the response but it seems this solution is for to do<br>siptrace of a spefiy user that we mut create in usr_preferences table.<br><br>but i want to have siptrace of all the users do the calls by my opensips!<br><br>have you an idea to do that?<br><br>2012/8/25, Binan AL Halabi &lt;<a ymailto="mailto:binanalhalabi@yahoo.com"
 href="/mc/compose?to=binanalhalabi@yahoo.com">binanalhalabi@yahoo.com</a>&gt;:<br>&gt; add the following instructions to your script:<br>&gt; loadmodule "siptrace.so"<br>&gt; modparam("siptrace", "db_url",<br>&gt; "mysql://opensips:fedora13579@localhost/opensips")<br>&gt; modparam("siptrace", "trace_flag", 22)<br>&gt; modparam("siptrace","trace_on",1)<br>&gt; modparam("siptrace", "traced_user_avp", "$avp(traceuser)")<br>&gt; modparam("siptrace", "trace_local_ip", "IP Address of your Server:Port")<br>&gt;<br>&gt; put following code in route in opensips script<br>&gt; if(avp_db_load("$fu","$avp(trace)")) {<br>&gt; &nbsp;&nbsp;&nbsp;&nbsp; $avp(s:traceuser)=$fu;<br>&gt; &nbsp;&nbsp;&nbsp;&nbsp; setflag(22);<br>&gt; &nbsp;&nbsp;&nbsp;&nbsp; sip_trace();<br>&gt; &nbsp;&nbsp;&nbsp;&nbsp; xlog("L_INFO","User $fu being traced");<br>&gt; }<br>&gt;<br>&gt; The $avp(s:trace) will be loaded from usr_references table<br>&gt; so you have to add the user :<br>&gt;
 opensipsctl avp add –T usr_preferences user@youripaddress trace 0 1<br>&gt;<br>&gt; finally start siptrace :<br>&gt; opensipsctl fifo sip_trace on<br>&gt; then make a call from the user you already added.<br>&gt;<br>&gt; --- On Fri, 8/24/12, Engineer voip &lt;<a ymailto="mailto:forvoip4@gmail.com" href="/mc/compose?to=forvoip4@gmail.com">forvoip4@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt; From: Engineer voip &lt;<a ymailto="mailto:forvoip4@gmail.com" href="/mc/compose?to=forvoip4@gmail.com">forvoip4@gmail.com</a>&gt;<br>&gt; Subject: [OpenSIPS-Users] sip_trace on opensips-cp<br>&gt; To: "OpenSIPS users mailling list" &lt;<a ymailto="mailto:users@lists.opensips.org" href="/mc/compose?to=users@lists.opensips.org">users@lists.opensips.org</a>&gt;,<br>&gt; "users-request" &lt;<a ymailto="mailto:users-request@lists.opensips.org" href="/mc/compose?to=users-request@lists.opensips.org">users-request@lists.opensips.org</a>&gt;<br>&gt; Date: Friday, August 24,
 2012, 4:17 PM<br>&gt;<br>&gt; Hello All,<br>&gt;<br>&gt; I want to get siptrace from opensips 1.8 using OCP but i haven't no<br>&gt; idea to use SIPTRACE<br>&gt;<br>&gt; module.<br>&gt;<br>&gt; someone have an idea to do that, please?<br>&gt;<br>&gt; Best Regards.<br>&gt;<br>&gt; _______________________________________________<br>&gt; Users mailing list<br>&gt; <a ymailto="mailto:Users@lists.opensips.org" href="/mc/compose?to=Users@lists.opensips.org">Users@lists.opensips.org</a><br>&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>&gt;<br><br>_______________________________________________<br>Users mailing list<br><a ymailto="mailto:Users@lists.opensips.org" href="/mc/compose?to=Users@lists.opensips.org">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
 target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br></div></blockquote></td></tr></table>