Symptom
In a case where you are unable to activate "Allowed IP list" feature for Vonage, where config.opentok.com is being fetched instead of the config-enterprise.opentok.com i.e. from the allowed IP list.
Applies To
- JS SDK
Resolution
With JS SDK if you specify a ipWhitelist flag in initPublisher
option, then it will directly fetch the resources from the allowed IP list.
Code snippet:
var session = OT.initSession(apiKey, sessionId, {ipWhitelist :true});
You can follow the below steps so the correct config file is downloaded from config-enterprise.opentok.com which is a part of the IP whitelist block.
- Use an APIKEY setup in enterprise environment,
- with https://enterprise.opentok.com/v2/js/opentok.min.js,
- and with the ipWhitelist flag set using below:
OT.initSession(apiKey, sessionId, {ipWhitelist :true});
Using the above steps, you would see the enterprise version of config.json file will be requested and which is a part of the IP whitelist block.
Cause
Incorrect configuration i.e passing the ipWhitelist
value in string quotations. While It needs to be boolean true.
- With the IPwhitelist flag set,
OT.initSession(apiKey, sessionId, {ipWhitelist :'true'});
Additional Information
As a result, this will lead to slower connection times, but ultimately a successful connection.
Related to:
Articles in this section
- How do I create and manage my Video API applications in the Unified Environment
- Unable to activate enterprise "Allowed IP list" feature for Vonage
- Activating Two Factor Authentication on Your Opentok Video API Account
- How to Add Users, Remove Users and Manage User Permissions?
- Can I create multiple sub-projects within a single Video API project in my Opentok Video API account?
- How do I change my Vonage Video API Account name?
- How do I change the preferred video codec for my video project or application?
- How do I check the countries where my application is being used and quality per country?
- How do I check the Video Express usage?
- How do I generate a session ID using the Vonage Video API (Opentok Environment) project dashboard?