0

I am using jain-sip stack on centos 64bit machine, and below is the detail steps and explanation of the issue

  • Register to SIP Server using jain-sip client
  • Register timeouts for every 360 seconds
  • During Reregistration process if server is down due to network issue, the outbound TCP socket is
    continue to retransmit the registration request, it takes around 15 minutes to close this socket

So client is unable to register for 15 minutes even after loosing network connectivity for few seconds

This works fine with the same code on windows, in windows there will be 5 retransmission then socket gets closed, when client re tries new socket will be opened.

Please help to resolve this issue on centos

raj
  • 1

1 Answers1

0

If the socket is in frozen state then the OS should take care of the recovery. Monitor with tcpdump what happens with TCP retransmissions. If you want to force JSIP to close the socket, use ((SIPTransactionStack)sipStack).closeAllSockets(); and then implement your recovery logic in the app.

Vladimir Ralev
  • 1,371
  • 9
  • 18