<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Daniel,<br>
      <br>
      mhomed works only for UDP transport protocol.<br>
      <br>
      For other protocols, consider selecting the proper outbound
      interface based on your routing logic, from script, via the
      force_send_socket() function:<br>
         
      <a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Script-CoreFunctions-2-1#toc16">http://www.opensips.org/Documentation/Script-CoreFunctions-2-1#toc16</a><br>
      or (same effect) by setting the $fs (forced socket) variable:<br>
          <a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Script-CoreVar-2-1#toc44">http://www.opensips.org/Documentation/Script-CoreVar-2-1#toc44</a><br>
      <br>
      The socket you are forcing must be one of the opensips listeners.<br>
      <br>
      Best <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 04.02.2016 18:32, Moreira Yokoyama,
      Daniel wrote:<br>
    </div>
    <blockquote
      cite="mid:2FC1C77D6244054287AF20F84C2DA0475AB045@SOM-EXCH03.nuance.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span
style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222;background:white"
            lang="EN-US">Hi.</span><span lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US">I'm trying to set Opensips to work on SCTP
            Symetric Multi Home.<o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US">To do this, I've set two endpoints:<o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US">listen=sctp:</span><span
style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"><a
              moz-do-not-send="true" href="http://10.0.0.1:5070/"
              target="_blank"><span style="color:#1155CC" lang="EN-US">10.0.0.1:5070</span></a></span><span
style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US">listen=sctp:</span><span
style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"><a
              moz-do-not-send="true" href="http://10.0.0.2:5070/"
              target="_blank"><span style="color:#1155CC" lang="EN-US">10.0.0.2:5070</span></a></span><span
style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US">and set mhomed<o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US">mhomed=1<o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US">Using SIPp to make some tests, I could see the
            association being successfully stablished, and as I turn
            down one of the client's network adapter it manages to
            successfully use other path with the another adapter.
            Problem is when I turn off one of the opensips adapter
            (10.0.0.1, for instance).<o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US">When I run the tcpdump I can notice that the
            heartbeat doesn't aknowledge the 10.0.0.2 to the
            association. But when searching on the internet I find a
            post on the list asking about multi home, whether it is
            supported or not, and the answer is that it does support,
            althought there is some lack of guidance to figure out how
            to set it up.<o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US">Looking through the source code, it seems that
            for each listen setting, it creates a separate socket
            association... what I need is to set a single socket and add
            both addresses to the same association (setting a multi home
            association).<o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US">The question is:<o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US">Does opensips really support this feature?<o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US">In case it does, what am I doing wrong to set
            it up?<o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US">Thanks.<o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US">Best regards.<o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
            style="font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US">Atenciosamente,<br>
            <br>
            Daniel Moreira Yokoyama.<o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
            style="font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
            style="font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
            style="font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US">PS: Moderator, I apologize for the duplicated
            message. But the first one was sent by another address than
            this one and I assume it was blocked. Thank you.</span><span
style="font-size:12.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"
            lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
      </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>