sergey-safarov created an issue (kamailio/kamailio#4512)
### Description
We are looking to add geoip module support to the rtpeingine module.
Related function
[`geoip2_distance`](https://www.kamailio.org/docs/modules/devel/modules/geoip2.html#geoip.f.geoip2_distance).
At first look, we want to introduce a parameter `enable_geoip` with possible
values `0/1` or `true/false`.
When the feature is enabled, the rtpengine module checks if the `geoip2` module
is loaded.
If not, then generate an error (or warning?).
On next step module evaluates coordinates for each RTPengine public IP address.
We use a public IP address on our RPTengine server, but how to get an RPTengine
public IP when NAT is present? May require a function that requests public from
RTPengine? What is the behavior when RTPengine has multiple IP addresses?
During a call, when called `rtpengine_offer` or `rtpengine_manage`, then the
module calls `geoip2_distance` for every rtpengine geo coordinates and uses the
result to increase `weight`.
Then select the RTPengine server using the updated `weight` value.
### Expected behavior
RTPengine module selects the closest RTPengine server to the remote IP.
@rfuchs could also look.
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4512
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/[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!