rfuchs left a comment (kamailio/kamailio#4512)
With just two locations for rtpengine servers as in your example, this could
easily be done using rtpengine sets and determining the geo distance using
`geoip2` from the Kamailio script, and then selecting the set based on which
one has the shorter distance.
I can see the benefit of applying the distance to the weight if there is a
larger number of locations with rtpengine servers, although I'm not sure how
big that benefit would be over the simpler approach of still using sets and
doing it in the Kamailio script and simply picking the set with the closest
location(s).
AFAIK tying into `geoip2` from `rtpengine` requires adding an exportable API to
`geoip2`. I'm not opposed to having a feature like this, but personally I'm not
sure if the effort is warranted.
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4512#issuecomment-3627483769
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!