Browser-Phone
Browser-Phone copied to clipboard
reconnect
Even with a stable internet connection, the connection unregisters and registers frequently.
maybe you have same issue as me , i stopped using browser phone because with softphone i don't have that issue, maybe its issue with ice server: https://github.com/InnovateAsterisk/Browser-Phone/issues/393
This could be related to the default behaviour of SIP.js The code will re-register when the timer reaches 99%. This means that if you set a register expire to 60sec, your re-register will happen at 59.4sec, leaving you with almost no time to perform the re-register.
Interestingly making the expire shorter (and therefor more often), will in this case make things worse. Setting the expire to 300 results in 3 seconds to re-register before the timer elapses. (This is default).
Also make sure that you are not forcing an expire time on the Asterisk side.
What I would do tho, is make sure to qualify your endpoint. By doing this you can set the frequency to say 60. This will send an option message every 60 seconds, to keep any nat connections open. Other than nat connections... there is simply nothing else that needs to be "kept open" on the network path.
If this doesn't work, then there is another problem.