InnovateAsterisk / Browser-Phone

A fully featured browser based WebRTC SIP phone for Asterisk
https://www.innovateasterisk.com
GNU Affero General Public License v3.0
470 stars 239 forks source link

popup.html #523

Open prathibhacdac opened 3 months ago

prathibhacdac commented 3 months ago

One user is using mobile and another user is using desktop. After making "Click to Dial" in mobile, the audio call window disappears after a minute. The window is still open in the desktop.

prathibhacdac commented 3 months ago

While on call: Screenshot (232)

After a minute: Screenshot (233)

prathibhacdac commented 3 months ago

Actually the window is not getting closed. It is only hidden. The other end is still able to hear the audio.

prathibhacdac commented 3 months ago

How to overcome this issue?It is happening because of reregistration once in a minute. Kindly suggest a solution.

InnovateAsterisk commented 3 months ago

I'm not sure what changes you may have made to the code, but the original version only had CloseWindow() on the web_hook_on_registrationFailed and the web_hook_on_unregistered, the web_hook_on_unregistered only fires if the registration state becomes "unregistered"... this shouldn't happen, but then again, it may, and registration does not have anything to do with calling, so if you like just take out the lines:

var web_hook_on_unregistered = function(){
    window.parent.CloseWindow();
}
prathibhacdac commented 3 months ago

Like incoming calls is there any way to limit the no. Of outgoing calls?

prathibhacdac commented 3 months ago

I'm not sure what changes you may have made to the code, but the original version only had CloseWindow() on the web_hook_on_registrationFailed and the web_hook_on_unregistered, the web_hook_on_unregistered only fires if the registration state becomes "unregistered"... this shouldn't happen, but then again, it may, and registration does not have anything to do with calling, so if you like just take out the lines:

var web_hook_on_unregistered = function(){
    window.parent.CloseWindow();
}

In web_hook_on_terminate also window.parent.CloseWindow() is getting called.

InnovateAsterisk commented 3 months ago

These pages are available for you to customise as you would like. The web_hook_on_terminate event is called when a call is ended. If you don't want this behavior just take it out.