Chrome problems with phone.html . "NotAllowedError"

mbedial

Member
Hi,

We are having problems using the flashphoner-api-0.5.21/phone/phone.html example. When the call is starting, and before the microphone permission is asked, we are getting:

name: "NotAllowedError"
message: "Permission denied"

This problem occurs only with Chrome. What should we do?

Thanks in advance
 

mbedial

Member
Hello !

When we test the page over https with our self-certificate , we obtain the following ERROR once we try to do the call.

Here i attached our code , we have made some modifications and of course values like URL server, domain , passwords... has been changed by XXX because is private information.

There are some comments in the code explaining what we have added to the original code.

https://drive.google.com/open?id=1jCF5mRG3fwc0lTO7-SYn1rNZ79QJhdCR
 

Max

Administrator
Staff member
Good day.
We checked your code sample on our test servers.
When choosing country code from dropdown menu, the call is established correctly from Chrome 80, for example we call to number 10007 on our OpenSIPS PBX:
upload_2020-2-18_12-42-22.png

So WebSDK part of code sample seems working.
However, there are some issues with country code definition:
1. The country prefix passed with query parameters such as https://wcs:8888/client2/examples/test/phone/phone.html?number=10008&password=password&prefix=1 seems to be ignored:
Code:
    input.addEventListener('change', function(e) {
    console.log(e.target.value)
    console.log(iti.getSelectedCountryData().dialCode)
    prefijo = iti.getSelectedCountryData().dialCode
    });
2. Synchronous XHR issue occurs
upload_2020-2-18_12-53-41.png

3. jQuery cannot get clients ip address to check clients country code
upload_2020-2-18_12-55-12.png

Those issues concern intlTelInput JS plugin integration and should be probably addressed to its developer
 
Top