<div dir="ltr"><div>I am  not sure if the errors in the opensips logs are at the same time when the TCP connection breaks or not . </div><div>But I can see some errors in the logs below . </div><div><br></div><div><b> ERROR:core:tcpconn_async_connect: poll error: flags 1c<br> ERROR:core:tcpconn_async_connect: failed to retrieve SO_ERROR [server=10.m.n.o:5060] (111) Connection refused<br> ERROR:core:proto_tcp_send: async TCP connect failed<br> ERROR:tm:msg_send: send() to 10.m.n.o:5060 for proto tcp/2 failed<br> ERROR:tm:t_uac: attempt to send to 'sip:10.m.n.o:5060' failed<br> INFO:core:probe_max_sock_buff: using snd buffer of 416 kb<br> INFO:core:init_sock_keepalive: TCP keepalive enabled on socket 44</b><br></div><div><br></div><div><b>10.m.n.o:5060 - this is one of the gateway IPs in my dr_gateways table . </b></div><div><b><br></b></div><div>These error logs are resolved automatically as well . I can see these logs randomly once in 2/3 days in my opensips logs . </div><div><br></div><div>I have not mentioned any parameters for the proto_tcp module . Just loaded the module in the config  .  Do I need to specify some config level parameter as well ?</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 Fri, Feb 14, 2025 at 8:52 PM Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</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"><u></u>

  
    
  
  <div>
    <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 cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a href="https://www.opensips-solutions.com" target="_blank">https://www.opensips-solutions.com</a>
  <a href="https://www.siphub.com" target="_blank">https://www.siphub.com</a></pre>
    <div>On 13.02.2025 08:59, Sasmita Panda
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <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">
            <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">
        <div dir="ltr" class="gmail_attr">On Thu, Feb 13, 2025 at
          10:44 AM Sasmita Panda <<a href="mailto:spanda@3clogic.com" target="_blank">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></fieldset>
      <pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a 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>

</blockquote></div>