Browser-Phone icon indicating copy to clipboard operation
Browser-Phone copied to clipboard

popup.html

Open prathibhacdac opened this issue 11 months ago • 7 comments

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 avatar Mar 26 '24 09:03 prathibhacdac

While on call: Screenshot (232)

After a minute: Screenshot (233)

prathibhacdac avatar Mar 26 '24 09:03 prathibhacdac

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

prathibhacdac avatar Mar 26 '24 10:03 prathibhacdac

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

prathibhacdac avatar Mar 26 '24 10:03 prathibhacdac

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();
}

InnovateAsterisk avatar Mar 26 '24 13:03 InnovateAsterisk

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

prathibhacdac avatar Mar 26 '24 14:03 prathibhacdac

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.

prathibhacdac avatar Mar 27 '24 01:03 prathibhacdac

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.

InnovateAsterisk avatar Mar 27 '24 09:03 InnovateAsterisk