I’ve been testing this for some days, but I can’t get it to work.
I’ve downloaded the .jar from github and copied it into wowza/lib folder, added the following to conf/live/Application.xml
<Module>
<Name>geoip</Name>
<Description>GeoIP</Description>
<Class>com.monotek.wms.module.GeoIP</Class>
</Module>
...
<Property>
<Name>GeolocationDefaultRestrict</Name>
<Value>1</Value>
<Type>Integer</Type>
</Property>
<Property>
<Name>GeolocationDefaultRestrictCountry</Name>
<Value>DK</Value>
<Type>String</Type>
</Property>
<Property>
<Name>GeolocationConfigFile</Name>
<Value>>c:/locationinfo.xml</Value>
<Type>String</Type>
</Property>
<Property>
<Name>GeolocationPlaybackShutdown</Name>
<Value>True</Value>
<Type>Boolean</Type>
</Property>
<Property>
<Name>GeoIPDatabase</Name>
<Value>c:/GeoIP.dat</Value>
<Type>String</Type>
</Property>
and in the locationinfo.xml file
<?xml version="1.0" encoding="utf-8"?>
<LocationInfo>
<Locatfion path="live/" restrict="all">
<Except type="country">DK</Except>
</Location>
<Locatfion path="mobile/" restrict="all">
<Except type="country">DK</Except>
</Location>
<Locatfion path="live" restrict="all">
<Except type="country">DK</Except>
</Location>
<Locatfion path="mobile" restrict="all">
<Except type="country">DK</Except>
</Location>
</LocationInfo>
Encoder
address: rtmp://10.100.1.5:1935/live
stream name: mobile
I’ve tried changing all settings, but i still don’t get blocked and even compiled it myself from source code.
I’ve also tried doing it as described in https://www.wowza.com/docs/how-to-enable-geographic-locking-modulegeoiplock, it compiles without error, but doesn’t run in wowza.
Logfile:
comment server INFO 200 - geoip.onAppStart: live/_definst_ - - - 18.297
comment server INFO 200 - geoip.onAppStart: Property GeolocationConfigFile: >c:/locationinfo.xml - - - 18.313
comment server INFO 200 - geoip.onAppStart: Property GeolocationConfigFile: >c:/locationinfo.xml - - - 18.344
Logfile(running debug)
comment server DEBUG 200 - load module: name:geoip class:com.monotek.wms.module.GeoIP - - - 16.157
comment server DEBUG 200 - add method (event): onAppStart - - - 16.188
comment server DEBUG 200 - skip method (InvalidParameterCount): allowPlayback - - - 16.219
comment server DEBUG 200 - add method (method): play - - - 16.235
comment server DEBUG 200 - method: OPTIONS - - - 16.25
comment server DEBUG 200 - context: rtsp://10.100.1.5/live/mobile - - - 16.282
comment server DEBUG 200 - protocol: RTSP/1.0 - - - 16.297
comment server DEBUG 200 - cseq: 468 - - - 16.313
comment server DEBUG 200 - user-agent: LibVLC/1.1.0 (LIVE555 Streaming Media v2010.03.16) - - - 16.329
Those are the only things i can find in log, containing “geoip”.
Any suggestions?