From owner-freebsd-ports-bugs Fri Feb 28 3:10:14 2003 Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B44C37B401 for ; Fri, 28 Feb 2003 03:10:11 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B7D043FB1 for ; Fri, 28 Feb 2003 03:10:09 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h1SBA9NS000978 for ; Fri, 28 Feb 2003 03:10:09 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h1SBA9At000977; Fri, 28 Feb 2003 03:10:09 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8993037B401 for ; Fri, 28 Feb 2003 03:00:32 -0800 (PST) Received: from raktas.net (raktas.net [213.226.152.18]) by mx1.FreeBSD.org (Postfix) with SMTP id B66AE43FBF for ; Fri, 28 Feb 2003 03:00:27 -0800 (PST) (envelope-from raktas@raktas.net) Received: (qmail 6697 invoked by uid 0); 28 Feb 2003 11:00:18 -0000 Received: from raktas@raktas.net by raktas.net by uid 1002 with qmail-scanner-1.15 (f-prot: 3.11. Clear:. Processed in 0.150655 secs); 28 Feb 2003 11:00:18 -0000 Received: from unknown (HELO justasl.lan) (192.168.0.67) by raktas.net with SMTP; 28 Feb 2003 11:00:17 -0000 Message-Id: <5994981255.20030228130013@raktas.net> Date: Fri, 28 Feb 2003 13:00:13 +0200 From: Justas Gurinavicius Reply-To: Justas Gurinavicius To: FreeBSD-gnats-submit@FreeBSD.org Cc: raktas@raktas.net Subject: ports/48771: Bug in audio/shout when using with SHOUTcast Server 1.9.2 Sender: owner-freebsd-ports-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 48771 >Category: ports >Synopsis: Bug in audio/shout when using with SHOUTcast Server 1.9.2 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Feb 28 03:10:08 PST 2003 >Closed-Date: >Last-Modified: >Originator: Justas Gurinavicius >Release: FreeBSD 4.7-STABLE i386 >Organization: >Environment: >Description: Shout is streaming client for icecast and shoutcast streaming servers. It works well with SHOUTcast Server Version 1.9.2/FreeBSD4 (with -i key (Use old icy headers)),But if you try to enable title streaming (-t key) (without it clients don't see what song is playing). There are two problems why it doesn't work: 1. By default shoutcast expects source stremer connection on 8001 port, and listeners on 8000 port. (steamer port is listener_port+1). Shout streams mp3 music on port 8001 (from config file or command line), but title streaming is done on listener port through web admin interface. (http://server:port//admin.cgi?pass=password&mode=updinfo&song=Song Title) Without patch shout tries to update info on streamer, and not listener port and this doesn't work. I attached patch which reduces port number by one, which is right (listener) port number. 2. With this fix shout connects to right port, but still doesn't update song title. From shoutcast documentation I've found that now shoutcast accepts update post (see above) only with useragent Mozilla ant shout gives useragent Shout/0.8.0. Allso a link to shout source is broken. I provided own link: http://www.raktas.net/~justas/shout/shout-0.8.0.tar.gz Please add it to MASTER_SITES. >How-To-Repeat: Install SHOUTcast Server Version 1.9.2/FreeBSD4 server ant shout-0.8.0. Use port 8001 to connect for mp3 streaming, use key -i (without it shout runs in icecast mode), and -t key for title streaming. Titles will note be updated without a patch. >Fix: For broken link: http://www.raktas.net/~justas/shout/shout-0.8.0.tar.gz Attached below. --- shout.diff begins here --- --- shout-0.8.0.orig/shout.c Thu Apr 20 09:31:50 2000 +++ shout-0.8.0/shout.c Thu Feb 27 15:47:37 2003 @@ -1738,7 +1738,7 @@ void update_meta_info_on_server (char *filename, unsigned long int size) { - sock_t sockfd = sock_connect (set.servername, set.port); + sock_t sockfd = sock_connect (set.servername, set.port-1); char title[BUFSIZE]; /* copy of filename */ char *song = NULL; char *mount = NULL; @@ -1815,7 +1815,7 @@ if (sockfd != -1) { if (set.use_icy) { - sock_write (sockfd, "GET /admin.cgi?pass=%s&mode=updinfo&song=%s HTTP/1.0\nHost: %s:%d\nUser-Agent: Shout/%s\n\n", set.password, url_encode (titleptr, &song), set.servername, set.port, VERSION); + sock_write (sockfd, "GET /admin.cgi?pass=%s&mode=updinfo&song=%s HTTP/1.0\nHost: %s:%d\nUser-Agent: Mozilla(Shout/%s)\n\n", set.password, url_encode (titleptr, &song), set.servername, set.port-1, VERSION); } else { sock_write (sockfd, "GET /admin.cgi?pass=%s&mode=updinfo&mount=%s&song=%s&length=%ld HTTP/1.0\nHost: %s:%d\nUser-Agent: Shout/%s\n\n", set.password, url_encode (set.mount_name, &mount), url_encode (titleptr, &song), size, set.servername, set.port, VERSION); if (mount) --- shout.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: >System: FreeBSD somehost 4.7-STABLE FreeBSD 4.7-STABLE #0: Wed Jan 29 02:46:55 EET 2003 raktas@somehost:/usr/obj/usr/src/sys/FAILAI i386 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message