TCP/TLS reconnect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

When the server closes the TCP/TLS connection (e.g. server restarts), 
pjsip waits until it is time for re-registration to reestablish the 
TCP/TLS connection.

Is there an option for pjsip to immediately (e.g. after 3 seconds) to 
reestablish the connection and reREGISTER?

If no, please take this as a feature request :-)

Is there maybe a callback which is called when the TCP connection is 
closed? Then I could handle this in application using 
pjsua_acc_set_registration().

Another note: When pjsip receives the [FIN] packet from server, it only 
sends [ACK], not [FIN,ACK]. Thus, on pjsip side the connection is still 
open. Then, when reregistration begins, pjsip opens a new TCP 
connection, performs rergeistration, and after that, pjsip sends 
[FIN,ACK] on the old TCP connection (which is ignored by the server 
anyway because of timeout). Wouldn't it be nicer to send FIN when the 
FIN is received from the server?

regards
klaus



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux