karlheyes / icecast-kh

KH branch of icecast
GNU General Public License v2.0
299 stars 107 forks source link

Fallback, fallback-override and wildcard wierd behaviour #226

Open netwarex opened 6 years ago

netwarex commented 6 years ago

Hi!

I am trying to setup a relay slave server, with master config, so it automatically updates the streamlist. I would like to setup a temp file for all relays based on their extension (.ogg, .mp3, etc). I created wildcard mounts for it. The weird thing is that if there is no source, then a random relay was played instead of the silence source. I assume, if no extension the fallback needs to be mp3. Why random relay is played?

Sample mount: /stream-123-a.mp3 -> needed to fallback on /fallbackstream.mp3 but it instead starts play eg.: /stream-345-b.mp3 (and randomly anything else on reconnect). Even I start playing the fallback mount directly it starts a random relay mount.

Config:

<master>
        <server>xxx.xxx.xxx.xx</server>
        <port>xxxx</port>
        <password>****</password>
        <interval>2</interval>
        <retry-delay>3</retry-delay>
        <run-on>30</run-on>
    </master>
    <relays-on-demand>1</relays-on-demand>
</master>

<mount>
        <mount-name>/fallbackstream.mp3</mount-name>
        <password>xxxxxx</password>
        <public>0</public>
</mount>

<mount>
        <mount-name>/fallbackstream.aac</mount-name>
        <password>xxxxxx</password>
        <public>0</public>
    </mount>

<mount>
             <mount-name>/*-*-*.mp3</mount-name>
             <fallback-mount>/fallbackstream.mp3</fallback-mount>
             <fallback-override>1</fallback-override>
</mount>

<mount>
             <mount-name>/*-*-*.aac</mount-name>
             <fallback-mount>/fallbackstream.aac</fallback-mount>
             <fallback-override>1</fallback-override>
</mount>

<mount>
             <mount-name>/*-*-*</mount-name>
             <fallback-mount>/fallbackstream.mp3</fallback-mount>
             <fallback-override>1</fallback-override>
</mount>