hello, i've upgraded to 2.4. in order to use url-auth etc. works fine, but now i have a problem: i've to check if a source exists. i did so by fetching headers for a mountpoint, example wget -S http://server:8000/test if a mountpoint existed in icecast 2.3.2 (my previous version), it returned something like "200 OK", when a source was connected. now in 2.4. it always returns 200 OK, means the stream at this mountpoint exists, whether a source is connected or not. how can i check (programatically) if a source / active mount exists or not? thx, uno
That's not sounding right. I'll check later today if I can reproduce it. TBR On Jun 6, 2014 3:38 PM, "uno" <un at dom.de> wrote:> > hello, > > i've upgraded to 2.4. in order to use url-auth etc. > works fine, but now i have a problem: > > i've to check if a source exists. i did so by fetching > headers for a mountpoint, example > > wget -S http://server:8000/test > > if a mountpoint existed in icecast 2.3.2 (my previous version), > it returned something like "200 OK", when a source was connected. > > now in 2.4. it always returns 200 OK, means the stream at this > mountpoint exists, whether a source is connected or not. > > how can i check (programatically) if a source / active mount > exists or not? > > thx, uno > > _______________________________________________ > Icecast mailing list > Icecast at xiph.org > http://lists.xiph.org/mailman/listinfo/icecast >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/icecast/attachments/20140606/e0e4ea55/attachment.htm
... to answer myself: i had a fallback-mount specified, after removing it things work as expected. sorry for the noise. btw: what's the prefered way to get server and/or listener info? for example, within a script (php / curl), i use http://127.0.0.1:8000/admin/listclients?mount=/mymount for getting info on listeners is there a better way / api? thanks, u. uno:> > hello, > > i've upgraded to 2.4. in order to use url-auth etc. > works fine, but now i have a problem: > > i've to check if a source exists. i did so by fetching > headers for a mountpoint, example > > wget -S http://server:8000/test > > if a mountpoint existed in icecast 2.3.2 (my previous version), > it returned something like "200 OK", when a source was connected. > > now in 2.4. it always returns 200 OK, means the stream at this > mountpoint exists, whether a source is connected or not. > > how can i check (programatically) if a source / active mount > exists or not? > > thx, uno > > _______________________________________________ > Icecast mailing list > Icecast at xiph.org > http://lists.xiph.org/mailman/listinfo/icecast
On 06/06/2014 01:08 PM, uno wrote:> ... to answer myself: > > i had a fallback-mount specified, after removing it > things work as expected. sorry for the noise.In case of fallbacks you have to check properly through querying a custom XSL, JSON or the admin backend.> btw: what's the prefered way to get server and/or listener info?http://icecast.org/docs/icecast-2.4.0/icecast2_stats.html> for example, within a script (php / curl), i use > http://127.0.0.1:8000/admin/listclients?mount=/mymount > for getting info on listenersIf you need IPs and UA strings then that's the only option. Plain numbers you can get easier. Note: - as you noticed listclients instead of listclients.xsl gives you raw XML - you can get mount specific information using the mount specific credentials, you don't have to use admin credentials.> is there a better way / api?see docs link above. Cheers Thomas