Giter VIP home page Giter VIP logo

Comments (3)

sreimers avatar sreimers commented on August 19, 2024

Can you try to add a debug msg to the keepalive handler:

--- a/src/sip/transp.c
+++ b/src/sip/transp.c
@@ -316,6 +316,8 @@ static void conn_keepalive_handler(void *arg)
        mb.pos  = 0;
        mb.end  = 4;
 
+       DEBUG_WARNING("KEEPALIVE\n");
+
        err = tcp_send(conn->tc, &mb);
        if (err) {
                conn_close(conn, err);

You can do the same for sip_keepalive_tcp to see if the timer handler setup is working.

from re.

alfredh avatar alfredh commented on August 19, 2024

in general it is probably better to use the mailing list for questions like this.

I think the sip outbound ping/pong feature is only enabled if supported by the SIP Server.
Please check in the source code.

You can also use a low registration interval to keep the TCP connection open:

;regint=60

please note that some networks (CGN) will kill random TCP connections at random times.
If you want this to work reliably you need to re-connection TCP from the client side.

from re.

alberanid avatar alberanid commented on August 19, 2024

Agreed, thanks for the support; I'll let you know if we will detect anything meaningful.

from re.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.