[Icecast-dev] Listener stats

Jordan Erickson jordan at coolmic.net
Mon Sep 21 21:27:06 UTC 2020


Hi Reaz,

IP Address != Location of user in many cases. Think VPNs for instance.

Of course if you're set on going that route, I'm pretty sure that
status-json.xsl (in your webroot) has the IP address option simply added
to a section that does not show it:

<xsl:template match="icestats/source/source_ip"><xsl:if
test="not(following-sibling::*)">"dummy":null}</xsl:if></xsl:template>

I could be wrong but you may be able to simply remove that line and
it'll work. I haven't tried that before so do it at your own risk ;) I
personally don't know how you would do that without modifying the xsl
file to display it.


Cheers,
Jordan Erickson


On 9/21/20 2:10 PM, Reaz Baksh wrote:
> Hello
> I’m new to Icecast and I’m using version 2.4.4. How would I be able to get a Jason file that has listener information specifically listener location or at least the IP address. I can get listener count but I’m looking for location through the IP. I need to write a php script to gather this information. I have checked the status-Jason.xsl and the xml2json.xsl but neither gives me that information. 
> 
> What would I have to modify and how, to get this?  I would prefer not to modify any xsl file to get this if at all possible. 
> 
> Thanks
> 
> Reaz
> _______________________________________________
> Icecast-dev mailing list
> Icecast-dev at xiph.org
> http://lists.xiph.org/mailman/listinfo/icecast-dev
> 


More information about the Icecast-dev mailing list