<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="monospace">Hi,<br>
      <br>
      OpenSIPS listens on 5060 for incoming TCP conns, but when
      connecting (to other server) it uses a random / ephemeral port as
      source of the outbound TCP conn - this is normal, how TCP works in
      most of the cases.<br>
      <br>
      When OpenSIPS is not able to connect anymore, do you see any
      errors in the logs? <br>
      <br>
      Regards,<br>
    </font>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
  <a class="moz-txt-link-freetext" href="https://www.siphub.com">https://www.siphub.com</a></pre>
    <div class="moz-cite-prefix">On 13.02.2025 08:59, Sasmita Panda
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CALf-Q45FrwVtEQFFDrimqFuN47PcSFjQ3M3yxDRt1_edAAGx+w@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>On the same server I can see something different as well . </div>
        <div><br>
        </div>
        <div>I have only configured 5060 ports for TCP and UDP in the
          listen parameter . </div>
        <div>But I can see openisps established connections from
          different ports rather than 5060 . How is that possible ? </div>
        <div><br>
        </div>
        <div>tcp        0      0 172.x.y.z:5060        10.m.n.o:42560  
            ESTABLISHED 24449/opensips<br>
          tcp        0      0 172.x.y.z:5060        10.a.b.c:35507    
          ESTABLISHED 24448/opensips<br>
          tcp        0      0 172.x.y.z:58609       10.m.n.o:5060    
           ESTABLISHED 24450/opensips<br>
          tcp        0      0 172.x.y.z:57323       10.a.b.c:5060    
           ESTABLISHED 24449/opensips<br>
        </div>
        <div><br>
        </div>
        <div>Here 172.x.y.z is my opensips server and others are gateway
          IPs . I can understand the TCP connection from the 5060 port
          . </div>
        <div>How do opensips select other ports here ? </div>
        <div>Is this the default behaviour of opensips ? Or in the
          latest version the behaviour changes ?</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>
          <div dir="ltr" class="gmail_signature"
            data-smartmail="gmail_signature">
            <div dir="ltr">
              <div>
                <div dir="ltr"><b><i>Thanks & Regards</i></b>
                  <div><i>Sasmita Panda</i></div>
                  <div><i>Senior Network Testing and Software Engineer</i></div>
                  <div><i>3CLogic , ph:07827611765</i></div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <br>
      </div>
      <br>
      <div class="gmail_quote gmail_quote_container">
        <div dir="ltr" class="gmail_attr">On Thu, Feb 13, 2025 at
          10:44 AM Sasmita Panda <<a href="mailto:spanda@3clogic.com"
            moz-do-not-send="true" class="moz-txt-link-freetext">spanda@3clogic.com</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div dir="ltr">
            <div>Hi , </div>
            <div><br>
            </div>
            <div><br>
            </div>
            <div>I have a server running on opensips 2.2 version (Yes
              that is very old I know , we are planning to upgrade that
              in near future ) . </div>
            <div><br>
            </div>
            <div>On that server I have set up the gateways with TCP
              socket connection . Openisps while sending outbound calls
              to the gateway give the call in TCP . </div>
            <div><br>
            </div>
            <div>From the last 2/3 months we observed , randomly
              sometime in 7days or 10/12 days the connection won't get
              established and calls get affected . </div>
            <div><br>
            </div>
            <div>Once we restart the opensips service things start
              working fine .  So here is opensips blocking something ?
              or is it on my linux machine blocking the connection ? </div>
            <div><br>
            </div>
            <div>For the proto_tcp module I have not configured any
              parameters . just loaded the module . I am hoping the
              default values must be in use . </div>
            <div><br>
            </div>
            <div>Can anybody suggest to me what I need to debug here ?</div>
            <div><br>
            </div>
            <div>
              <div dir="ltr" class="gmail_signature">
                <div dir="ltr">
                  <div>
                    <div dir="ltr"><b><i>Thanks & Regards</i></b>
                      <div><i>Sasmita Panda</i></div>
                      <div><i>Senior Network Testing and Software
                          Engineer</i></div>
                      <div><i>3CLogic , ph:07827611765</i></div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-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>