<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><forvoip4@gmail.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Engineer voip <forvoip4@gmail.com><br>Subject: Re: [OpenSIPS-Users] sip_trace on opensips-cp<br>To: "OpenSIPS users mailling list" <users@lists.opensips.org><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 <<a ymailto="mailto:binanalhalabi@yahoo.com"
href="/mc/compose?to=binanalhalabi@yahoo.com">binanalhalabi@yahoo.com</a>>:<br>> add the following instructions to your script:<br>> loadmodule "siptrace.so"<br>> modparam("siptrace", "db_url",<br>> "mysql://opensips:fedora13579@localhost/opensips")<br>> modparam("siptrace", "trace_flag", 22)<br>> modparam("siptrace","trace_on",1)<br>> modparam("siptrace", "traced_user_avp", "$avp(traceuser)")<br>> modparam("siptrace", "trace_local_ip", "IP Address of your Server:Port")<br>><br>> put following code in route in opensips script<br>> if(avp_db_load("$fu","$avp(trace)")) {<br>> $avp(s:traceuser)=$fu;<br>> setflag(22);<br>> sip_trace();<br>> xlog("L_INFO","User $fu being traced");<br>> }<br>><br>> The $avp(s:trace) will be loaded from usr_references table<br>> so you have to add the user :<br>>
opensipsctl avp add –T usr_preferences user@youripaddress trace 0 1<br>><br>> finally start siptrace :<br>> opensipsctl fifo sip_trace on<br>> then make a call from the user you already added.<br>><br>> --- On Fri, 8/24/12, Engineer voip <<a ymailto="mailto:forvoip4@gmail.com" href="/mc/compose?to=forvoip4@gmail.com">forvoip4@gmail.com</a>> wrote:<br>><br>> From: Engineer voip <<a ymailto="mailto:forvoip4@gmail.com" href="/mc/compose?to=forvoip4@gmail.com">forvoip4@gmail.com</a>><br>> Subject: [OpenSIPS-Users] sip_trace on opensips-cp<br>> To: "OpenSIPS users mailling list" <<a ymailto="mailto:users@lists.opensips.org" href="/mc/compose?to=users@lists.opensips.org">users@lists.opensips.org</a>>,<br>> "users-request" <<a ymailto="mailto:users-request@lists.opensips.org" href="/mc/compose?to=users-request@lists.opensips.org">users-request@lists.opensips.org</a>><br>> Date: Friday, August 24,
2012, 4:17 PM<br>><br>> Hello All,<br>><br>> I want to get siptrace from opensips 1.8 using OCP but i haven't no<br>> idea to use SIPTRACE<br>><br>> module.<br>><br>> someone have an idea to do that, please?<br>><br>> Best Regards.<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>><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>