Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

caller location #541

Open
prathibhacdac opened this issue May 21, 2024 · 1 comment
Open

caller location #541

prathibhacdac opened this issue May 21, 2024 · 1 comment

Comments

@prathibhacdac
Copy link

prathibhacdac commented May 21, 2024

How to get the location of the caller? I want to route the calls to asterisk server located in different locations? When User1 is in state A, the call should go the asterisk serverA. When the same user moves to stateZ, the call should go to the asterisk serverZ. How to acheive this requirement?

@InnovateAsterisk
Copy link
Owner

This can only be done with some sort of Geographically based DNS service. There are various services that offer this, it will be based on the incoming request - you ip is inspected at the time of resolving the DNS name. like wss://ws.asterisk.org and the resulting IP returned will be based on your location.

Otherwise, you may need to gather the users location using the location API built in the browser. (You will need to request permission first). Then based on the return location, you could perform say an api call, and return the closest servers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants