<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>That's because I just copy-pasted your example and adapted it
      without thinking. It should be:<br>
    </tt><br>
    <tt>force_send_socket(sctp:<a moz-do-not-send="true"
        href="http://10.12.8.108:5060" target="_blank">10.12.8.108:5060</a>)<br>
      $ru = "sip:" + $od + ":" + $op + ";transport=sctp";<br>
      forward();</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 23.03.2016 15:36, Daniel Moreira
      Yokoyama wrote:<br>
    </div>
    <blockquote
cite="mid:CAEG3oNRJZ_mtqDhuABU8u9s58JZG4u0_fiBB13x+MYBsaGS8jA@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi Liviu.
        <div><br>
        </div>
        <div>I did the change and Opensips started up ok. But when I run
          my tests, no message get to the UAS.</div>
        <div><br>
        </div>
        <div>When I check the dump there's a lot of Destination
          Unreachable error for messages in UDP. It didn't change the
          transport protocol.</div>
        <div><br>
        </div>
        <div>Thanks anyway.</div>
      </div>
      <div class="gmail_extra"><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>
        <br>
        <div class="gmail_quote">2016-03-23 6:57 GMT-03:00 Liviu Chircu
          <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:liviu@opensips.org" target="_blank">liviu@opensips.org</a>&gt;</span>:<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 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:<a moz-do-not-send="true"
                  href="http://10.12.8.108:5060" target="_blank">10.12.8.108:5060</a>)<br>
                $ru = "sctp:" + $od + ":" + $op;<br>
                forward();<br>
              </tt>
              <pre cols="72">Liviu Chircu
OpenSIPS 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 22.03.2016 22:23, Daniel Moreira Yokoyama
                    wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <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"
                            target="_blank">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" target="_blank">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>
                            <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"
                                        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></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>
            <br>
            _______________________________________________<br>
            Users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
              rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </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>