How to test if the connection with the server is active #1317
-
Hello everyone, I apologize in advance, but I don't know the SIP protocol, although I managed to figure out a few things. Based on the 'SoftPhone' example, I was able to create code that intercepts an incoming call. I’d like to understand if there is a simple way to periodically check if the connection with the server is still active, as I would like to perform a new registration if necessary. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
If you're referring to the SIP connection the only to check is to send a request and verify you get a response. SIP typically utilises UDP and as such there is no persistent connection at the network layer. The SIP registration mechanism does already have a periodic re-register mechanism. You set the period by using the Expires header. For example if you set it to 180s then a new REGISTER request should be sent every 3 minutes. |
Beta Was this translation helpful? Give feedback.
OPTIONS request send.