<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi,<br>
<br>
You can follow the module's documentation. It is pretty simple.
First thing install the external library necessary for this
module: <span class="emphasis"><em>libGeoIP</em></span>.<br>
Then load the module. Configure it's module parameters :<br>
<pre class="programlisting">modparam("mmgeoip", "mmgeoip_city_db_path",
"/usr/share/GeoIP/GeoLiteCity.dat")</pre>
You need to fetch this file (GeoLiteCity.dat) from here - just
follow the indications :<a
href="http://dev.maxmind.com/geoip/legacy/install/city/">
http://dev.maxmind.com/geoip/legacy/install/city/</a><br>
<br>
Then all you have to do, for each call, just see where is it
coming from. ( in this example there is only the continent fetched
- but you can fetch much more information - see the docs : <a
href="http://www.opensips.org/html/docs/modules/devel/mmgeoip.html">http://www.opensips.org/html/docs/modules/devel/mmgeoip.html</a>
)<br>
<br>
<pre class="programlisting">if(mmg_lookup("con","$si","$avp(continent)")) {
xlog("L_INFO","Source IP latitude:$(avp(continent))\n");
};
<big><big><small>Based on the result you get you can choose the appropriate RTP Proxy set to engage.
Regards,
Alex
</small></big></big></pre>
<br>
<br>
On 09/10/2013 03:24 PM, sipsip2 wrote:<br>
</div>
<blockquote cite="mid:1378815848646-7587778.post@n2.nabble.com"
type="cite">
<pre wrap="">Hi ,
I found this module that can help in my case but i dont know how to use this
info and tell to rtpproxy dispatcher use the media rtpproxy using info from
mmgeoip ??
Any Advice ?
--
View this message in context: <a class="moz-txt-link-freetext" href="http://opensips-open-sip-server.1449251.n2.nabble.com/opensisp-2-RTP-proxy-IP-based-location-how-to-tp7587773p7587778.html">http://opensips-open-sip-server.1449251.n2.nabble.com/opensisp-2-RTP-proxy-IP-based-location-how-to-tp7587773p7587778.html</a>
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>