Incoming call while Odoo is reloaded
complete
Max Li
marked this post as
complete
Max Li
marked this post as
closed
Fixed.
Max Li
marked this post as
under review
Max Li
Hi! Thank you for the report.
I investigated the issue and discovered how it happened.
Here is a part of Asterisk log when browser tab is reloaded:
== Contact 102/sip:102@x.x.x.x:21459;transport=ws has been deleted
== Endpoint 102 is now Unreachable
== WebSocket connection from 'x.x.x.x:21459' closed
When you close the tab it sends SIP UNREGISTER request to the Asterisk. Despite the fact that other tabs have a copy of the phone Asterisk does not see them because it uses in this case max_contacts=1 PJSIP option.
So to fix it, we must use max_contacts > 1 (I would suggest ± 5) so that Asterisk will keep track of all phone instances. In this case at least a few instances will be available for a call.
In order to archive this we must work on multi tab WebRTC syncronization support and we already started this kind of development.
I think we can push it and solve ASAP. I will keep you posted.