<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>If you have the same kind of network constraints (UAC behind
      NAT), then in it not work for UDP either. If the UAC is nated, in
      99% of the cases, it is able to be reached back only by the SIP
      node the UAC is registering with.<br>
      <br>
      So you have to re-think the internal design of your cluster.<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>

OpenSIPS Bootcamp 2017, Houston, US
  <a class="moz-txt-link-freetext" href="http://opensips.org/training/OpenSIPS_Bootcamp_2017.html">http://opensips.org/training/OpenSIPS_Bootcamp_2017.html</a>
</pre>
    <div class="moz-cite-prefix">On 07/25/2017 04:16 PM, Sasmita Panda
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CALf-Q47Wvvu0dQ5Mnrutq0vpWEBTGXbSGUe8ewJV5h6zh9H-OA@mail.gmail.com">
      <div dir="ltr">I got your point . I understand why 477 send failed
        message is coming .
        <div><br>
        </div>
        <div>Lets I am not using TCP . I am using UDP . my question is
          how I will use a single DB behind a cluster of opensips . Is
          this possible in UDP . I dont think so . In UDP i may get "408
          request timeout"  message from opensips node . </div>
        <div><br>
        </div>
        <div>Lets say . I have a client and I have given a domain to
          that . against that domain there are 2 opensips node and both
          sharing same DB and running in db_only mode . My UAC is behind
          NAT off-course . </div>
        <div><br>
        </div>
        <div>     According to you I cant use this scenario if my UAC is
          behind NAT . If opensips nodes and UAC can communicate
          internally inside a LAN then its possible .</div>
        <div><br>
        </div>
        <div>     Please correct me if I am wrong .</div>
      </div>
      <div class="gmail_extra"><br clear="all">
        <div>
          <div class="gmail_signature" data-smartmail="gmail_signature">
            <div dir="ltr"><b><i>Thanks & Regards</i></b>
              <div><i>Sasmita Panda</i></div>
              <div><i>Network Testing and Software Engineer</i></div>
              <div><i>3CLogic , ph:07827611765</i></div>
            </div>
          </div>
        </div>
        <br>
        <div class="gmail_quote">On Tue, Jul 25, 2017 at 6:38 PM,
          Bogdan-Andrei Iancu <span dir="ltr"><<a
              href="mailto:bogdan@opensips.org" target="_blank"
              moz-do-not-send="true">bogdan@opensips.org</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> <tt>Sasmita,<br>
                <br>
                OpenSIPS can open a new TCP connection towards an UAC
                IF:<br>
                    1) the registered IP is public<br>
                    2) the UAC is not behind a NAT.<br>
                <br>
                The 477 reply is generated by the inability of OpenSIPS
                to open a TCP connection - you can see some error
                messages into the logs too.<br>
                <br>
                Regards,<br>
              </tt><span class="">
                <pre class="m_7770776998653843531moz-signature" cols="72">Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  <a class="m_7770776998653843531moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank" moz-do-not-send="true">http://www.opensips-solutions.<wbr>com</a>

OpenSIPS Bootcamp 2017, Houston, US
  <a class="m_7770776998653843531moz-txt-link-freetext" href="http://opensips.org/training/OpenSIPS_Bootcamp_2017.html" target="_blank" moz-do-not-send="true">http://opensips.org/training/<wbr>OpenSIPS_Bootcamp_2017.html</a>
</pre>
              </span>
              <div>
                <div class="h5">
                  <div class="m_7770776998653843531moz-cite-prefix">On
                    07/25/2017 02:53 PM, Sasmita Panda wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">Is there any way opensips nodes will
                      be connected in TCP ? If what I am expecting is
                      not possible then I will leave this .
                      <div><br>
                      </div>
                      <div>Then my question is whats the use of opensips
                        cluster using same DB ? In which scenarion I can
                        use this . I just want a cluster of opensips
                        node sharing a single DB . How can I achieve
                        this ? </div>
                      <div><br>
                      </div>
                    </div>
                    <div class="gmail_extra"><br clear="all">
                      <div>
                        <div
                          class="m_7770776998653843531gmail_signature"
                          data-smartmail="gmail_signature">
                          <div dir="ltr"><b><i>Thanks & Regards</i></b>
                            <div><i>Sasmita Panda</i></div>
                            <div><i>Network Testing and Software
                                Engineer</i></div>
                            <div><i>3CLogic , ph:07827611765</i></div>
                          </div>
                        </div>
                      </div>
                      <br>
                      <div class="gmail_quote">On Tue, Jul 25, 2017 at
                        5:18 PM, Bogdan-Andrei Iancu <span dir="ltr"><<a
                            href="mailto:bogdan@opensips.org"
                            target="_blank" moz-do-not-send="true">bogdan@opensips.org</a>></span>
                        wrote:<br>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">
                          <div bgcolor="#FFFFFF" text="#000000"> <tt>Hi
                              Sasmita,<br>
                              <br>
                              There is an incompatibility between your
                              opensips cluster design and your network
                              topology. If the end device is TCP
                              connected to one Node, and it is not able
                              (due network constraints) to receive TCP
                              connections from any other Node, it makes
                              no sense to share the registration data
                              between the OpenSIPS Nodes as only the
                              Node that received the registration will
                              be able to reach back the device (again,
                              due network constraints)<br>
                              <br>
                              Best regards,<br>
                            </tt>
                            <pre class="m_7770776998653843531m_6676897292472623307moz-signature" cols="72">Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  <a class="m_7770776998653843531m_6676897292472623307moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank" moz-do-not-send="true">http://www.opensips-solutions.<wbr>com</a>

OpenSIPS Bootcamp 2017, Houston, US
  <a class="m_7770776998653843531m_6676897292472623307moz-txt-link-freetext" href="http://opensips.org/training/OpenSIPS_Bootcamp_2017.html" target="_blank" moz-do-not-send="true">http://opensips.org/training/O<wbr>penSIPS_Bootcamp_2017.html</a>
</pre>
                            <div>
                              <div class="m_7770776998653843531h5">
                                <div
                                  class="m_7770776998653843531m_6676897292472623307moz-cite-prefix">On
                                  07/24/2017 03:24 PM, Sasmita Panda
                                  wrote:<br>
                                </div>
                              </div>
                            </div>
                            <blockquote type="cite">
                              <div>
                                <div class="m_7770776998653843531h5">
                                  <div dir="ltr">Hi  All ,
                                    <div> </div>
                                    <div>      I wanted to use a single
                                      DB against 2 or more registrar
                                      server .</div>
                                    <div><br>
                                    </div>
                                    <div> Below is my requirement :</div>
                                    <div><br>
                                    </div>
                                    <div> Opensips1 (x.x.x.x) -> DB </div>
                                    <div> Opensips2 (x.x.x.y) -> DB</div>
                                    <div><br>
                                    </div>
                                    <div>       DB is in different
                                      machine and both opensips servers
                                      are accessing the same DB . 
                                      Opensips is running on Db only
                                      mode . db_mode: 3 .</div>
                                    <div><br>
                                    </div>
                                    <div><br>
                                    </div>
                                    <div>I had mapped a domain in
                                      route53 ex. " <a
                                        href="http://loadbalance.i3clogic.com"
                                        target="_blank"
                                        moz-do-not-send="true">loadbalance.i3clogic.com</a>
                                      " and against this domain I have
                                      added both the IPs of opensips1
                                      and 2 as SRV .</div>
                                    <div><br>
                                    </div>
                                    <div>         I have added this
                                      domain in my opensips config file
                                      as aslias in both the config files
                                       .</div>
                                    <div><br>
                                    </div>
                                    <div>       what my client do is ,
                                      it does SRV query in the domain
                                      and resolve 1 Ip at a time and
                                      send requests to that . </div>
                                    <div><br>
                                    </div>
                                    <div>example :</div>
                                    <div>A-> SRV query( resolve Ip
                                      opensips1)  -> sent Register
                                      Opensips1 -> store in DB</div>
                                    <div>     This can change in ttl
                                      expire or in re-login of A . A is
                                      making TCP connection with
                                      opensips .</div>
                                    <div><br>
                                    </div>
                                    <div>when an Invite comes for A  to
                                      opensips2 , that send 477 send
                                      fail . </div>
                                    <div><br>
                                    </div>
                                    <div>B -> Inv (TCP connection for
                                      A ) Opensips2 </div>
                                    <div><br>
                                    </div>
                                    <div>      Opensips2 replys with 477
                                      send fail to B . The reason behind
                                      this is A is registered through
                                      Opensips1 .</div>
                                    <div><br>
                                    </div>
                                    <div>This is what I want and the
                                      problem I am facing . My questing
                                      is how can I solve this . I dont
                                      want to add any proxy in between
                                      client and opensips1/2 . Is there
                                      any way this will work for me ?</div>
                                    <div><br>
                                    </div>
                                    <div><br>
                                    </div>
                                    <div><br>
                                    </div>
                                    <div><br>
                                    </div>
                                    <div><br>
                                    </div>
                                    <div>   </div>
                                    <div><br>
                                    </div>
                                    <div><br>
                                    </div>
                                    <div>      </div>
                                    <div><br>
                                    </div>
                                    <div> <br clear="all">
                                      <div>
                                        <div
                                          class="m_7770776998653843531m_6676897292472623307gmail_signature"
data-smartmail="gmail_signature">
                                          <div dir="ltr"><b><i>Thanks
                                                & Regards</i></b>
                                            <div><i>Sasmita Panda</i></div>
                                            <div><i>Network Testing and
                                                Software Engineer</i></div>
                                            <div><i>3CLogic ,
                                                ph:07827611765</i></div>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                  <br>
                                  <fieldset
                                    class="m_7770776998653843531m_6676897292472623307mimeAttachmentHeader"></fieldset>
                                  <br>
                                </div>
                              </div>
                              <pre>______________________________<wbr>_________________
Users mailing list
<a class="m_7770776998653843531m_6676897292472623307moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank" moz-do-not-send="true">Users@lists.opensips.org</a>
<a class="m_7770776998653843531m_6676897292472623307moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</pre>
                            </blockquote>
                            <br>
                          </div>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                  </blockquote>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>