If you run a proxy between client deployments and callstats.io, then there should be mapping
between the proxy URLs and the callstats submission URLs. There should be a way to detect
the proxy in callstats.js, we propose a window parameter for detecting there is a proxy ahead.
E.g. - window.csioproxy = true;
Please see this article for more information on callstats.io submission URLs.
Example API for setting URLs
urlsSettings = {
collectorURL: "https://collector.myproxy.com",
authServiceURL: "https://auth.myproxy.com",
csioInternalAPIURL: "https://myproxy.com/api-internal/v1/qmodelthresholds",
wsURL: "wss://collector.myproxy.com/csiows/collectCallStats",
appSettingsURL: "https://appsettings.myproxy.com/v1/apps/",
restEventURL: "https://events.myproxy.com/v1/apps",
restStatsURL: "https://stats.myproxy.com/v1/apps"
}
callstats.setProxyConfig(urlsSettings) - This API call must be made before initialize API.
If you wish to run a proxy (and/or need more information) please make sure to contact support@callstats.io.
Comments
0 comments
Please sign in to leave a comment.