<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Hi Daniel,<br>
      <br>
      It's not a limitation, but rather a performance optimization which
      kills some of the user experience :)<br>
      <br>
      You can still do stateless forwarding to various destinations by
      setting the Request-URI ahead:<br>
      <br>
      force_send_socket(sctp:10.12.8.108:5060)<br>
      $ru = "sctp:" + $od + ":" + $op;<br>
      forward();<br>
    </tt>
    <pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS 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 22.03.2016 22:23, Daniel Moreira
      Yokoyama wrote:<br>
    </div>
    <blockquote
cite="mid:CAEG3oNT+9BvkqgXr3WT1okTxiuQf5exKmvwtEdrndnOL5eFqcg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi everyone.
        <div><br>
        </div>
        <div>I'm still trying to undestand why I can't use t_relay(dest)
          or forward(dest) passing a variable instead of a literal.</div>
        <div><br>
        </div>
        <div>In my scenario, all I have to do is to receive a UDP
          message from a client and relay it on SCTP to the remote
          endpoint.</div>
        <div><br>
        </div>
        <div>The way I'm trying to achieve this is by:</div>
        <div><br>
        </div>
        <div>
          <div> force_send_socket(sctp:<a moz-do-not-send="true"
              href="http://10.12.8.108:5060">10.12.8.108:5060</a>); </div>
          <div> forward("sctp:$od:$op");                                </div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>But Opensips doesn't even start up, complaining that the
          domain and the port are invalid.</div>
        <div><br>
        </div>
        <div>I only works in my tests when I put the literal value
           (e.g: "sctp:<a moz-do-not-send="true"
            href="http://10.0.8.104:5060">10.0.8.104:5060</a>").</div>
        <div><br>
        </div>
        <div>I don't get it. Why would it restrict something like this?</div>
        <div><br>
        </div>
        <div>Anyone can give me any guidance?</div>
        <div><br>
        </div>
        <div>Thanks a lot.</div>
        <div><br clear="all">
          <div>
            <div class="gmail_signature">
              <div dir="ltr">
                <div>
                  <div dir="ltr">
                    <div><br>
                    </div>
                    <div>
                      <div style="font-size:small">Atenciosamente,<br>
                        <br>
                        Daniel Moreira Yokoyama.</div>
                      <div style="font-size:small">@dmyoko</div>
                      <div style="font-size:small"><a
                          moz-do-not-send="true"
                          href="http://twitter.com/dmyoko"
                          style="color:rgb(17,85,204)" target="_blank"><a class="moz-txt-link-freetext" href="http://twitter.com/dmyoko">http://twitter.com/dmyoko</a></a></div>
                      <div style="font-size:small"> </div>
                      <div style="font-size:small">TrafficTalks<br>
                        Um podcast sobre cinema feito a partir de
                        conversas de trânsito.</div>
                      <div style="font-size:small"><a
                          moz-do-not-send="true"
                          href="http://traffictalks.com.br"
                          target="_blank"><a class="moz-txt-link-freetext" href="http://traffictalks.com.br">http://traffictalks.com.br</a></a></div>
                    </div>
                    <div><br>
                    </div>
                  </div>
                </div>
              </div>
            </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>