<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Stas,<br>
      <br>
      You are not allowed to do a SIP signaling operation from the local
      route. The local route is triggered by a "send out" signaling
      event and after it is run, the message will simply be forwarded
      automatically to the given destination.<br>
      <br>
      Regards,</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 04.06.2015 19:13, Stas Kobzar wrote:<br>
    </div>
    <blockquote
cite="mid:CAMYcjooveikDFEhMrNW3FcMmLyd9DOktOCX4t1Sw2egO+Em8Vg@mail.gmail.com"
      type="cite">
      <div dir="ltr">nice trick ))
        <div><br>
        </div>
        <div>Well, lookup works with this trick, but t_relay does not. I
          have:</div>
        <div>CRITICAL:tm:w_t_relay: unsupported route type: 32<br>
        </div>
        <div><br>
        </div>
        <div>When I replaced t_relay with forward, I have:</div>
        <div>ERROR:core:forward_reply: no 2nd via found in reply<br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Well, since you can not reproduce it on both OpenSIPS
          version, I conciser it as my configuration problem.</div>
        <div>I will check again and may be will find something.</div>
        <div><br>
        </div>
        <div>Thank you for your help!</div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Thu, Jun 4, 2015 at 11:45 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>Trick - put the
                lookup in a sub-route and call it from local route :)<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 04.06.2015 16:20, Stas Kobzar wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">Yes, I had the same idea first, but
                      lookup function is not available in local_route.
                      <div><br>
                      </div>
                      <div>Thanks, </div>
                    </div>
                    <br>
                  </blockquote>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>