<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>You can force whatever log level you want via xlog :<br>
         
      <a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Script-CoreFunctions-1-11#toc56">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>
    <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 19:26, John Nash wrote:<br>
    </div>
    <blockquote
cite="mid:CAA4rGPyW-k9YpwGY1Oo9jWTK=DMzsirOfpzhn0Dd7arQcYq27Q@mail.gmail.com"
      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
              moz-do-not-send="true" href="mailto:bogdan@opensips.org"
              target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a></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("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 moz-do-not-send="true" 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 moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" 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>
  </body>
</html>