<div dir="ltr">OK. Any way to use Xlog to print DBG messages even if script has debug level as ERR ?</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 29, 2016 at 9:29 PM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<tt>Hi Nash,<br>
<br>
You can do a small route in your script for logging to combine
filtering (maybe based on src address check or dialplan for usernames
or acls, etc</tt><tt>) and xlog() :<br>
<br>
route[my_xlog]<br>
{<br>
if ( check_source_address("10") )<br>
xlog("DBG: $si: $param(1) \n");<br>
}<br>
<br>
And call it as:<br>
<br>
route(my_xlog,"this is just a simple log");<br>
<br>
Regards,<br>
</tt>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre><div><div class="h5">
<div>On 29.04.2016 14:22, John Nash wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">Is there any way to log messages (Custom messages
and SIP trace) from script for a given parameter say IP or ruri.
<div><br>
</div>
<div>A crude way can be to store say user in local cache and
match with the user in script and log else pass but ..</div>
<div><br>
</div>
<div>1- I am not sure if any other smart way to do it</div>
<div>2- How can I dunp SIP messages</div>
<div><br>
</div>
<div> </div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
</blockquote></div><br></div>