Michael Smith wrote:>>But mountpoints must be configured by hand and are static. Is there a >>way to relay all streams? >>Number of streams and their names can change from time to time. How to >>do it? >> >>What is the target usage of <master-server> section? >> >> > >That's what <master-server> is for - it allows you to configure an icecast >server as a slave to that master - it will relay ALL streams from the master. >Sounds like what you want to use... > > >OK. Im going to test it. When I have ServerA -> ServerB should I write config for ServerB like?: <master-server>ServerA.some.net</master-server> <master-server-port>8000</master-server-port> <master-update-interval>120</master-update-interval> <master-password>hackme</master-password> But is falls with error show below. It seems ServerB is unable to authenticate itself. On ServerA I have: <authentication> <source-password>hackme</source-password> <relay-password>hackme</relay-password> <master-password>hackme</master-password> <slave-password>hackme</slave-password> <admin-user>admin</admin-user> <admin-password>hackme</admin-password> </authentication> What do I do wrong? Thank for advice Petr # more error.log [2003-05-06 11:05:22] INFO main/main icecast server started [2003-05-06 11:05:22] DBUG slave/create_relay_stream Adding source at mountpoint "You need to authe nticate" [2003-05-06 11:05:22] EROR connection/connection_create_source No content-type header, falling back to backwards compatibility mode for icecast 1.x relays. Assuming content is mp3. [2003-05-06 11:05:22] DBUG source/source_main Source creation complete [2003-05-06 11:05:22] DBUG source/source_main Disconnecting source due to socket read error: Succes s [2003-05-06 11:05:22] INFO source/source_main Removing source following disconnection [2003-05-06 11:05:22] INFO source/source_main Source "You need to authenticate" exiting <p><p>--- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
> But is falls with error show below. > > It seems ServerB is unable to authenticate itself.Looks like that feature got broken (hardly anyone uses it). I don't have time at the moment to test this, could you try changing line 147 of icecast/src/slave.c to use "admin" instead of "slave" as the username? Let us know if that works, if it does I can fix the bug properly when I have a few more moments of spare time. Mike --- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Michael Smith wrote:>>But is falls with error show below. >> >>It seems ServerB is unable to authenticate itself. >> >> > >Looks like that feature got broken (hardly anyone uses it). I don't have time >at the moment to test this, could you try changing line 147 of >icecast/src/slave.c to use "admin" instead of "slave" as the username? Let us >know if that works, if it does I can fix the bug properly when I have a few >more moments of spare time. > >Hello Mike, you are right. This change fix my problem. Hope you will have spare time ;-) Thanks Petr --- icecast-2.0-alpha-2/src/slave.c-password 2003-05-06 17:35:37.000000000 +0200 +++ icecast-2.0-alpha-2/src/slave.c 2003-05-06 17:36:35.000000000 +0200 @@ -144,7 +144,7 @@ int interval; char *authheader, *data; int len; - char *username = "relay"; + char *username = "admin"; char *password; int max_interval; relay_server *relay; <p><p>--- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.