<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: courier new,courier,monaco,monospace,sans-serif; font-size: 12pt; color: #000000'>might be anycast will do better job<div><br></div><div>volga629<br><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Dmitry" <netaskd@gmail.com><br><b>To: </b>users@lists.opensips.org<br><b>Sent: </b>Wednesday, March 20, 2019 6:59:30 AM<br><b>Subject: </b>[OpenSIPS-Users] Calculate the nearest destination based on GeoIP<br><br>Hi there,<br>Maybe you know the best way to calculate the nearest routing point based on geoip data?<br>an example:<br>I have 3 rtpengine relays on a different country, and I can set its geo-coordinate in DB and set id for each of them via rtpengine_use_set() function in the routing script.<br>Also, I have goip lookup via mmg_lookup() function that can give me a coordinate a caller by IP address.<br>A caller comes from the country that _doesn't have_ rtpengine relay and I need to calculate the nearest rtpengine id for set it as prefer based on its IP address<br>Any advice is appreciated.<br>Thanks<br><br><br><br><br><br><br>_______________________________________________<br>Users mailing list<br>Users@lists.opensips.org<br>http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br></div></div></div></body></html>