<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body 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 class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and 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 29.04.2016 14:22, John Nash wrote:<br>
</div>
<blockquote
cite="mid:CAA4rGPxzFydexHCOHGb=yd9FA6zf1wPx1_ZSuWg5pSdgscW+QA@mail.gmail.com"
type="cite">
<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 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>