When internet is temporarily disconnected, JsSIP user agent doesn't receive any event like disconnected or unregistered.
Also, it doesn't reinitiate registration/connection, because after internet is reconnected, incoming/outgoing calls don't work.
My use case is to let user notify about the status of connection, so basically I want to know when JsSIP is ready to make calls.
According to documentations, JsSIP has two methods exposed on JsSIP.UA, .isConnected() and .isRegistered() but unfortunately they return true even when internet is disconnected.
Apologies if I missed something in how SIP/JsSIP works.
--
You received this message because you are subscribed to the Google Groups "JsSIP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jssip+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jssip/1737c69e-f785-4ec2-8455-8564b5c94528n%40googlegroups.com.
But what I'm suggesting is that when calling "isConnected", JSSIP could try and send something over to verify that there actually is a valid connection. Or there should be another way to do it, a separate function for it.
It could also be that I missed a way to do exactly that(since I am still learning about Websockets, TCP and JsSip).
I am bugfixing an app that I took over at work, since the original developer is no longer here, so that's the reason I'm diving head first in while flailing.
It might be too much to ask, but what's the difference between that and sending a "Ping" to an endpoint to check if there is a "Pong" returned? Can't JSSIP do this? Send a small poke to see if there is still a listening server alive?
To view this discussion on the web visit https://groups.google.com/d/msgid/jssip/b37f0e67-159c-43f9-90f9-5ce709b19af1n%40googlegroups.com.