<div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">><span style="font-size:12.8px">Hmm, you have a point there. But the point is, the *listeners* connect to a certain mount point; I want to count them there. What's happening behind the scenes to get the music to them (be it a fallback stream or even a file played from disk) is irrelevant. <br></span><span style="font-size:12.8px">></span><span style="font-size:12.8px">I'm beginning to think this is a 'feature' of IceCast with unintended consequences...</span><span style="font-size:12.8px"> </span></blockquote><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Well i will let the people who actually know the code answer that, however, you must keep in mind that while you (and myself btw) use the fallback mechanism for that autodj/live switch, the fallback feature have many other uses for which the required behaviour in our case would be wrong, so programming IceCast to behave in this specific way you desire will be rather "limiting".</span></div><div><span style="font-size:12.8px">instead, you can always configure your server to achieve different behaviour.</span></div><div><span style="font-size:12.8px">so assuming that creating that script we talked about is off-limits, you said you hide the fallback mounts  because you don't want them to show at the user statistics page? simply change the user statistic file to only show statistics from mounts you want to show, unhide the fallbacks and solve your problem.</span><br></div><div><span style="font-size:12.8px">also, maybe there's even a way to actually do show stats from hidden mount-points by some xslt code..if so, you can use xsl:if to detect if live source is connected and serve the right mount-point stats.</span></div><div><span style="font-size:12.8px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 6, 2015 at 3:41 PM, Jeroen van Oosten <span dir="ltr"><<a href="mailto:jvoosten@bankai.nl" target="_blank">jvoosten@bankai.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>Hello,<span class=""><br>
      <br>
      On 06-12-15 13:58, Yahav Shasha wrote:<br>
    </span></div><span class="">
    <blockquote type="cite">
      <div dir="ltr">
        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">><span style="font-size:12.8px">To me it sounds like a bug; surely
            the fallback never needs statistics,<br>
          </span><span style="font-size:12.8px">only the real steam
            because this is where listeners connect to.</span></blockquote>
        <div> </div>
        <div><span style="font-size:12.8px">Well, the fallback mount is
            still a mount-point nonetheless. you could still use it as a
            "regular" mount-point even if its configured as a fallback
            to another.</span></div>
      </div>
    </blockquote>
    <br></span>
    Hmm, you have a point there. But the point is, the *listeners*
    connect to a certain mount point; I want to count them there. What's
    happening behind the scenes to get the music to them (be it a
    fallback stream or even a file played from disk) is irrelevant. <br><span class="">
    <br>
    <blockquote type="cite">
      <div dir="ltr">
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px">Now, as for the statistics,
            should we be able to help without knowing what system you
            use to gather your statistics and build those charts? or i
            missed it?</span></div>
      </div>
    </blockquote>
    <br></span>
    No you didn't miss it; I'm using a homebrew XSLT to present the
    information in a simple, parseable format:<br>
    <br>
    <xsl:stylesheet xmlns:xsl =
    <a href="http://www.w3.org/1999/XSL/Transform" target="_blank">"http://www.w3.org/1999/XSL/Transform"</a> version = "1.0" ><br>
    <xsl:output omit-xml-declaration="no" method="text"
    doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
    doctype-system=<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" target="_blank">"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"</a>
    indent="yes" encoding="UTF-8" /><br>
    <xsl:template match = "/icestats"
    >MountPoint,Connections,Stream Name,Current
    Listeners,Description,Currently Playing,Stream URL <br>
    Global,Client:<xsl:value-of select="connections" /> Source:
    <xsl:value-of select="source_connections" />,,<xsl:value-of
    select="listeners" />,,<br>
    <xsl:for-each select="source"><br>
    <xsl:value-of select="@mount" />,,<xsl:value-of
    select="name" />,<xsl:value-of select="listeners"
    />,<xsl:value-of select="description" />,<xsl:value-of
    select="artist" /> - <xsl:value-of select="title"
    />,<xsl:value-of select="url" /><br>
    <xsl:text>&#10;</xsl:text><br>
    </xsl:for-each><br>
    </xsl:template><br>
    </xsl:stylesheet><br>
    <br>
    <br>
    The output is a text file that I can easily parse from a script; the
    output is fed into MRTG. At this moment, the 'real' mount points are
    missing from this output, even though clients are connected.<span class=""><br>
    <br>
    <blockquote type="cite">
      <div dir="ltr">
        <div><span style="font-size:12.8px">anyway, i can think of two
            options:</span></div>
        <div><span style="font-size:12.8px">1. gather statistics for
            both mount-points.</span></div>
      </div>
    </blockquote>
    <br></span>
    I thought of that, but the fallback mounts are hidden so I don't get
    the info at all. They are hidden simply because I don't want to show
    them up to the users on the statistics page.<span class=""><br>
    <br>
    <blockquote type="cite">
      <div dir="ltr">
        <div><span style="font-size:12.8px">2. depend on the software
            you use, you can write some code to determinate whether a
            live source is connected and pull the stats from the
            relevant mount-point accordingly.</span></div>
      </div>
    </blockquote>
    <br></span>
    Way too complicated. Why should I bother "switching" between mount
    points when my listeners connect to a single mount point? <br>
    <br>
    I'm beginning to think this is a 'feature' of IceCast with
    unintended consequences... <br>
    <br>
    Thanks,<span class=""><br>
    <br>
    Jeroen<br>
    <br>
    <pre cols="72">-- 
Bankai Software
Jeroen van Oosten
Telefoon: 010-4134567
E-mail: <a href="mailto:jvoosten@bankai.nl" target="_blank">jvoosten@bankai.nl</a>
KvK inschrijving: 24455492

"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." --Red Adair</pre>
  </span></div>

<br>_______________________________________________<br>
Icecast mailing list<br>
<a href="mailto:Icecast@xiph.org">Icecast@xiph.org</a><br>
<a href="http://lists.xiph.org/mailman/listinfo/icecast" rel="noreferrer" target="_blank">http://lists.xiph.org/mailman/listinfo/icecast</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Yahav Shasha,<br>Web Developer<br>+972-(0)549214421<br><div><a href="http://www.linkedin.com/in/yahavs" target="_blank">http://www.linkedin.com/in/yahavs</a><br></div></div></div>
</div>