<div dir="ltr">OK thank you.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 29, 2016 at 9:59 PM, Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;</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>You can force whatever log level you want via xlog :<br>
         
      <a href="http://www.opensips.org/Documentation/Script-CoreFunctions-1-11#toc56" target="_blank">http://www.opensips.org/Documentation/Script-CoreFunctions-1-11#toc56</a><br>
      <br>
      Use L_ALERT to get them all the time :)<br>
      <br>
      Regards,<br>
    </tt><span class="">
    <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>
    </span><div><div class="h5"><div>On 29.04.2016 19:26, John Nash wrote:<br>
    </div>
    <blockquote type="cite">
      <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">&lt;<a href="mailto:bogdan@opensips.org" target="_blank"></a><a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;</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(&quot;10&quot;) )<br>
                        xlog(&quot;DBG: $si: $param(1) \n&quot;);<br>
                }<br>
                <br>
                And call it as:<br>
                <br>
                route(my_xlog,&quot;this is just a simple log&quot;);<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>
                  <div>On 29.04.2016 14:22, John Nash wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div>
                    <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>
    </blockquote>
    <br>
  </div></div></div>

</blockquote></div><br></div>