<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Hi Jason,<br>
      <br>
      As you log everything on L_DBG, be sure you set debug level 4 in
      your cfg.<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 28.09.2015 23:21, Jason Bedward
      wrote:<br>
    </div>
    <blockquote
cite="mid:CANHADwNn3-iz71HPx3uHFotNAO+zMoK46BWFFco=Erq3n3D8Ng@mail.gmail.com"
      type="cite">
      <div dir="ltr">I have the below but I dont see much in log....
        <div><br>
        </div>
        <div>
          <div>####### Routing Logic ########</div>
          <div><br>
          </div>
          <div># main request routing logic</div>
          <div>    route {</div>
          <div>       <span class="" style="white-space:pre"> </span>#
            log the basic info regarding this call</div>
          <div>    xlog("L_DBG", "$ci|start|recieved $oP request $rm
            $ou");</div>
          <div>    xlog("L_DBG", "$ci|log|source $si:$sp");</div>
          <div>    xlog("L_DBG", "$ci|log|from $fu");</div>
          <div>    xlog("L_DBG", "$ci|log|to $tu");</div>
          <div>script_trace( 1, "$rm from $si, ruri=$ru", "me");</div>
          <div>if(is_method("OPTIONS")) {</div>
          <div>            # send reply for each options request</div>
          <div>            sl_send_reply("200", "ok");</div>
          <div>            exit();</div>
          <div>       <span class="" style="white-space:pre"> </span>}</div>
          <div>       <span class="" style="white-space:pre"> </span>else
            if (!mf_process_maxfwd_header("10")) {</div>
          <div>               <span class="" style="white-space:pre"> </span>sl_send_reply("483","Too
            Many Hops");</div>
          <div>               <span class="" style="white-space:pre"> </span>exit;</div>
          <div>       <span class="" style="white-space:pre"> </span>}</div>
          <div><br>
          </div>
          <div>        if (has_totag()) {</div>
          <div>               <span class="" style="white-space:pre"> </span>#
            sequential requests within a dialog should</div>
          <div>               <span class="" style="white-space:pre"> </span>#
            take the path determined by record-routing</div>
          <div>                if (loose_route()) {</div>
          <div><br>
          </div>
          <div>                        if (is_method("BYE")) {</div>
          <div>                                setflag(1); # do
            accounting ...</div>
          <div>                                setflag(3); # ... even if
            the transaction fails</div>
          <div>                        }</div>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Mon, Sep 28, 2015 at 9:19 PM,
          Bogdan-Andrei Iancu <span dir="ltr">&lt;<a
              moz-do-not-send="true" 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 text="#000000" bgcolor="#FFFFFF"> <tt>Hi Jason,<br>
                <br>
                That command is not available in 1.7.x <br>
                <br>
                Consider placing some xlog()'s in your script and to
                enable debug level 4 to get an idea of what is going on
                with your processing.<br>
                <br>
                Regards,<br>
              </tt><span class="">
                <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>
              </span>
              <div>
                <div class="h5">
                  <div>On 28.09.2015 21:48, Jason Bedward wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">Hi,
                      <div><br>
                      </div>
                      <div>Thanks, tried this but get the below. I'm
                        using 1.7.1</div>
                      <div><br>
                      </div>
                      <div>unknown command &lt;script_trace&gt;, missing
                        loadmodule?<br>
                      </div>
                      <div><br>
                      </div>
                      <div>Thanks</div>
                    </div>
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">On Mon, Sep 28, 2015 at
                        10:44 AM, Bogdan-Andrei Iancu <span dir="ltr">&lt;<a
                            moz-do-not-send="true"
                            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 text="#000000" bgcolor="#FFFFFF"> <tt>Hi
                              Jason,<br>
                              <br>
                              Try to follow the processing through your
                              script by using the script_trace()
                              function:<br>
                                  <a moz-do-not-send="true"
href="http://www.opensips.org/Documentation/Script-CoreFunctions-1-11#toc42"
                                target="_blank">http://www.opensips.org/Documentation/Script-CoreFunctions-1-11#toc42</a><br>
                              <br>
                              Put it in the very beginning of your
                              script.<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>
                                <div>On 27.09.2015 14:03, Jason Bedward
                                  wrote:<br>
                                </div>
                              </div>
                            </div>
                            <blockquote type="cite">
                              <div>
                                <div>
                                  <div dir="ltr">Hi
                                    <div><br>
                                    </div>
                                    <div>I have the below but when
                                      traffic is coming into my server
                                      its not responding with 200.
                                      Opensips is listening server is on
                                      Amazon EC2. Please help...<br>
                                      <div><br>
                                      </div>
                                      <div>
                                        <div>####### Routing Logic
                                          ########</div>
                                        <div><br>
                                        </div>
                                        <div># main request routing
                                          logic</div>
                                        <div>    route {</div>
                                        <div><span
                                            style="white-space:pre-wrap">
                                          </span># log the basic info
                                          regarding this call</div>
                                        <div>    xlog("L_DBG",
                                          "$ci|start|recieved $oP
                                          request $rm $ou");</div>
                                        <div>    xlog("L_DBG",
                                          "$ci|log|source $si:$sp");</div>
                                        <div>    xlog("L_DBG",
                                          "$ci|log|from $fu");</div>
                                        <div>    xlog("L_DBG",
                                          "$ci|log|to $tu");</div>
                                        <div><br>
                                        </div>
                                        <div>if(is_method("OPTIONS")) {</div>
                                        <div>            # send reply
                                          for each options request</div>
                                        <div>           
                                          sl_send_reply("200", "ok");</div>
                                        <div>            exit();</div>
                                        <div>       <span
                                            style="white-space:pre-wrap">
                                          </span>}</div>
                                        <div>       <span
                                            style="white-space:pre-wrap">
                                          </span>else if
                                          (!mf_process_maxfwd_header("10"))
                                          {</div>
                                        <div>               <span
                                            style="white-space:pre-wrap">
                                          </span>sl_send_reply("483","Too

                                          Many Hops");</div>
                                        <div>               <span
                                            style="white-space:pre-wrap">
                                          </span>exit;</div>
                                        <div>       <span
                                            style="white-space:pre-wrap">
                                          </span>}</div>
                                      </div>
                                    </div>
                                  </div>
                                  <br>
                                  <fieldset></fieldset>
                                  <br>
                                </div>
                              </div>
                              <pre>_______________________________________________
Devel mailing list
<a moz-do-not-send="true" href="mailto:Devel@lists.opensips.org" target="_blank">Devel@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/devel" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/devel</a>
</pre>
                            </blockquote>
                            <br>
                          </div>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                  </blockquote>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>