sergey-safarov left a comment (kamailio/kamailio#4512)
To define user device location, the `Geolocation` header
([RFC8787](https://datatracker.ietf.org/doc/html/rfc8787)) can be used.
Probable in future `geoip2_distance(ip_addr, latitude, longitude)` can accept
preudo-variable with keys:
```
userinfo->ip_address
userinfo->latitude
userinfo->longitude
```
In this case, distance will be evaluated using geocoordinates from the
`Geolocation` header.
So maybe need to introduce a pseudo-variable like
```
modparam("rtpengine", "location_pv", "userinfo")
```
When the variable is not an empty string, then the `rtpengine` module passes
the variable value to `geoip2` module and uses the response to adjust the
server's weight`.
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4512#issuecomment-3626985300
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/4512/[email protected]>_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the
sender!