Results 1 to 4 of 4

Thread: GeoIP working only with Application.xml rules, it does not use locationinfo.xml

  1. #1

    Default GeoIP working only with Application.xml rules, it does not use locationinfo.xml

    I am using the GeoIP .jar file and conf files.
    The jar file works very well with the Application.xml file, but it
    cannot read/find/use the locationinfo.xml file.
    I have seen carefully if there is any punctuation or extra character,
    like ">", but there is no extra characters or punctuation mistakes.

    I am attaching here the Application.xml file inside the application /vods3 and the locationinfo.xml for the Application.xml file.

    The Wowza Server is 2.2.4 and works very well with the GeoIP.jar
    published on your Git website. But only with the default behaviour that Application.xml gives when locationinfo.xml is not present or is malformed.

    Thanks in advance.

    Erwin
    locationinfo.xml:
    By using this locationinfo.xml, I suppose the users in USA can watch the videos, but theyare not able to watch it, because the locationinfo.xml is not loaded.

    Code:
    <?xml version="1.0" encoding="UTF-8" ?>
    <LocationInfo>
    	<Location path="vods3/" restrict="all">
    		<Except type="country">US</Except>
    	</Location>
    </LocationInfo>
    Application.xml:
    Code:
    			<Property>
    				<Name>GeolocationDefaultRestrict</Name>
    				<Value>1</Value>
    				<Type>Integer</Type>
    			</Property>
    			<!-- If GeolocationDefaultRestrict = 1, and xml config is missing/invalid, restrict to this country -->
    			<Property>
    				<Name>GeolocationDefaultRestrictCountry</Name>
    				<Value>AT</Value>
    				<Type>String</Type>
    			</Property>
    			<Property>
    				<Name>GeolocationConfigFile</Name>
    				<Value>${com.wowza.wms.context.VHostConfigHome}/conf/${com.wowza.wms.context.Application}/locationinfo.xml</Value>
    				<Type>String</Type>
    			</Property>
    
    			<!-- If set to True or unset, shuts down Client stream if geoip check fails -->
    			<Property>
    				<Name>GeolocationPlaybackShutdown</Name>
    				<Value>True</Value>
    				<Type>Boolean</Type>
    			</Property>
    			<Property>
    				<Name>GeolocationPlaybackFile</Name>
    				<Value>mp4:Extremists.m4v</Value>
    				<Type>String</Type>
    			</Property>
    			<Property>
    				<Name>GeolocationDebug</Name>
    				<Value>true</Value>
    				<Type>Boolean</Type>
    			</Property>
    			<Property>
    				<Name>GeoIPDatabase</Name>
    				<Value>/usr/share/GeoIP/GeoIP.dat</Value>
    				<Type>String</Type>
    			</Property>
    		</Properties>
    	</Application>
    </Root>

  2. #2

    Default

    Please re-test with new plugin (download available for 2.2.4 wowza media server)

    https://github.com/titpetric/wowza-geoip

    There is additional geoblocking support added for streaming types added, which are not yet fully tested (especially RTSP). Let me know if you still have problems.

  3. #3
    Join Date
    Nov 2009
    Posts
    27

    Default

    hello!

    Was this tested on wowza3? I'm using this module but have exactly the same problem - GeoIP works ONLY when country is defined in Application.xml. It looks like locationinfo.xml is ignored, although in the logs i see Wowza reading it:
    Code:
    2012-04-25      12:54:42        CEST    comment server  INFO    200     -       geoip.allowPlayback.config: Reading /usr/local/WowzaMediaServer/conf/geo/locationinfo.xml.      -       -       -       62.326       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -
    2012-04-25      12:54:42        CEST    comment server  INFO    200     -       geoip.debug: Checking stream: slovenia / IP: 93.22.51.50       -       -       -       62.331  -       -       -       -   --       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -
    2012-04-25      12:54:42        CEST    comment server  INFO    200     -       geoip.debug: GEO2 RESTRICTING playback. -       -       -       62.337  -       -       -       -       -       -       -   --       -       -       -       -       -       -       -
    And yes, I'm sure the xml has no syntax errors:
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <LocationInfo>
            <Location path="geo/" restrict="all">
                    <Except type="country">SI</Except>
            </Location>
    </LocationInfo>
    Any ideas?
    Thank you

  4. #4
    Join Date
    Nov 2009
    Posts
    27

    Default

    false alarm. It's working just fine, there were only some confusion with "Location path". For live streams you have to omit the trailing slash at the end and that's it. Oh and "Location path" is actually stream_id and not the application name.

    Hope this helps to someone

    Btw, nice work on this module!

    Code:
    0       30661557        slo     -       -       -       -       -       rtmp://91.202.65.34/geo/slo     rtmp://93.22.51.50/geo/slo     -       rtmp://91.202.65.34/geo     -
    2012-04-25      16:15:11        CEST    comment server  INFO    200     -       geoip.debug: Checking stream: slo / IP: 93.22.51.50    -       -       -       752.911     -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -  --       -       -       -
    2012-04-25      16:15:11        CEST    comment server  INFO    200     -       geoip.debug: Location found: slo restricted='all'       -       -       -       752.912     -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -  --       -       -       -
    2012-04-25      16:15:11        CEST    comment server  INFO    200     -       geoip.debug:     Except type: ip value='127.0.0.1'      -       -       -       752.913     -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -  --       -       -       -
    2012-04-25      16:15:11        CEST    comment server  INFO    200     -       geoip.debug:     Except type: ip value='10.0.0.0/8'     -       -       -       752.914     -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -  --       -       -       -
    2012-04-25      16:15:11        CEST    comment server  INFO    200     -       geoip.debug:     Except type: ip value='172.16.0.0/12'  -       -       -       752.915     -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -  --       -       -       -
    2012-04-25      16:15:11        CEST    comment server  INFO    200     -       geoip.debug:     Except type: ip value='192.168.0.0/255.255.0.0'        -       -  -752.916 -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -  --       -       -       -
    2012-04-25      16:15:11        CEST    comment server  INFO    200     -       geoip.debug:     Except type: country value='SI'        -       -       -       752.917     -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -  --       -       -       -
    2012-04-25      16:15:11        CEST    comment server  INFO    200     -       geoip.debug:     > Validated country (SI)       -       -       -       752.918 -  --       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -  --
    2012-04-25      16:15:11        CEST    comment server  INFO    200     -       geoip.debug: GEO1 NOT Restricting playback.     -       -       -       752.919 -  --       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -  --

Similar Threads

  1. Question regarding application.xml
    By htrinh in forum Live Streaming and Encoder Discussion
    Replies: 5
    Last Post: 12-28-2013, 09:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •