How to check if the softphone is disconnected

Sam

New Member
Hi. We faced the following issue.
The softphone disconnects form the server in certain circumstances, e.g.:
1. failed to reach the given number
2. the call was hang up
3. the wi-fi is broken or the internet connection dropped

After that the client stays out of reach. Please tell, if there's a way to check (once per hour or else) the softphone has disconnected? Out developers say the softphone should understnad if it's disconnected or not after 5-10 minutes.
 

Max

Administrator
Staff member
1. failed to reach the given number
2. the call was hang up
If connection fails when the call hangs up or the call didn't finish, this is likely a bug. We need clinet's and server's logs to understand what was wrong exactly.

3. the wi-fi is broken or the internet connection dropped
If the connection is temporarily dropped, there should be no disconnection, as the RTMFP/UDP protocol that doesn't use a traditional TCP connection to the server. In this case we're talking about WCS2 (powered by RTMFP), not WCS3 (Websocket+WebRTC).

After that the client stays out of reach. Please tell, if there's a way to check (once per hour or else) the softphone has disconnected? Out developers say the softphone should understnad if it's disconnected or not after 5-10 minutes.
In WCS2 and WCS3 there's a "keepalive' option you can configure in the server.properties config.
Example:

#The number of keep alive attempts before the connection is abandoned
keep_alive_max_attempts = 5

#Client should send keepalives every 5 seconds
keep_alive_peer=5000

#Server should send keepalives every 10 seconds
keep_alive_server=10000

With these settings, if you plug off the internet cable of the Flash client, the server makes 5 more unsuccessful attempts every 10 seconds, and after 50 seconds in total ends the connection and initiates unregistration on the SIP server.
 
Top