Results 1 to 2 of 2

Thread: GeoIP setting

  1. #1
    Join Date
    Sep 2011
    Posts
    2

    Unhappy GeoIP setting

    I try use geoip module from https://github.com/titpetric/wowza-geoip with wowza version 3, I want the viewer than can watch the stream are from my country only which is ID. the application name are live, and currently the stream that I wanna use geoip are alpha and beta.


    so here is setting from Application.xml
    <!-- GeolocationDefaultRestrict: 0 = don't restrict by default, 1 = restrict by default -->
     
                            <Property>
     
                                    <Name>GeolocationDefaultRestrict</Name>
     
                                    <Value>0</Value>
     
                                    <Type>Integer</Type>
     
                            </Property>
     
                            <!-- If GeolocationDefaultRestrict = 1, and xml config is missing/invalid, restrict to this country -->
     
                            <Property>
     
                                    <Name>GeolocationDefaultRestrictCountry</Name>
     
                                    <Value>US</Value>
     
                                    <Type>String</Type>
     
                            </Property>
     
                            <!--
     
                                    GeolocationConfigFile path variables
     
     
     
                                    ${com.wowza.wms.AppHome} - Application home directory (test)
     
                                    ${com.wowza.wms.ConfigHome} - Configuration home directory (test)
     
                                    ${com.wowza.wms.context.VHost} - Virtual host name
     
                                    ${com.wowza.wms.context.VHostConfigHome} - Virtual host config directory
     
                                    ${com.wowza.wms.context.Application} - Application name
     
                                    ${com.wowza.wms.context.ApplicationInstance} - Application instance name
     
                           
     
                            -->
     
                            <!-- GeolocationConfigFile: absolute path to config file -->
     
                            <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>False</Value>
     
                                    <Type>Boolean</Type>
     
                            </Property>
     
     
     
                            <!--
     
                                    GeolocationPlaybackFile
     
     
     
                                    The parameter should provide a clip or stream which tells the user
     
                                    via video, why he can't access some of the sites content.
     
     
     
                                    Only used if GeolocationPlaybackShutdown is set to false.
     
                            -->
     
                            <Property>
     
                                    <Name>GeolocationPlaybackFile</Name>
     
                                    <Value>mp4:def/Extremists.m4v</Value>
     
                                    <Type>String</Type>
     
                            </Property>
     
     
     
     
     
                           
     
     
     
                            <Property>
     
                                    <Name>GeolocationDebug</Name>
     
                                    <Value>true</Value>
     
                                    <Type>Boolean</Type>
     
                            </Property>
     
     
     
                         
      
     
                            <!-- GeoIPDatabase: default location: /usr/share/GeoIP/GeoLiteCity.dat -->
     
     
     
                            <Property>
     
                                    <Name>GeoIPDatabase</Name>
     
                                    <Value>/usr/share/GeoIP/GeoIP.dat</Value>
     
                                    <Type>String</Type>
     
                            </Property>

    and here is setting from locationinfo.xml

    <?xml version="1.0" encoding="utf-8"?>
    <LocationInfo>
            <!-- Location: path = stream name or folder (for vod), restrict = [all|none] -->
            <Location path="alpha/" restrict="all"/>
                    <Except type="country">ID</Except>
            </Location>
            <Location path="beta/" restrict="all"/>
                    <Except type="country">ID</Except>
            </Location>
    </LocationInfo>

    my stream can still be watched by all country, I really don't understand where did I make mistake.
    within log is said
    2011-10-21      17:33:44        WIT     comment server  INFO    200     -       geoip.onAppStart: live/_definst_        -       -       -       14.805  -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -
    2011-10-21      17:33:44        WIT     comment server  INFO    200     -       geoip.onAppStart: Property GeolocationConfigFile: >${com.wowza.wms.context.VHostConfigHome}/conf/${com.wowza.wms.context.Application}/locationinfo.xml  -       -       -       14.806  -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -
    2011-10-21      17:33:44        WIT     comment server  INFO    200     -       geoip.onAppStart: Property GeolocationConfigFile: >/usr/local/WowzaMediaServer/conf/live/locationinfo.xml       -       -       -       14.806  -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -

    2011-10-21      17:33:53        WIT     comment server  INFO    200     -       geoip.debug: Checking stream: alpha / IP: 175.41.169.207        -       -       -       24.384  -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -
    2011-10-21      17:33:53        WIT     comment server  INFO    200     -       geoip.debug: GEO2 NOT Restricting playback.     -       -       -
    please help where I did mistake. Thanks

  2. #2

    Default

    Hi,

    The first location tag includes a trailing slash, which closes the tag (invalid XML). It looks like a clean configuration issue.

    There's a newer version of the GeoIP plugin available commercially, if you need something like it, you should check it out below:

    https://scene-si.org/products/wowza/
    https://scene-si.org/docs/geoip-plugin/ - Documentation

Similar Threads

  1. GEOIP based loadbalancer
    By furyangel in forum Assistance with live events
    Replies: 3
    Last Post: 06-13-2014, 11:06 PM
  2. GeoIP and publishing to edge
    By romild0 in forum Server-side Modules and Code Samples Discussion
    Replies: 1
    Last Post: 04-19-2012, 10:41 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
  •