[asterisk-commits] pcadach: branch pcadach/chan_h323-live r42889 - /team/pcadach/chan_h323-live/...

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Sep 13 11:33:40 MST 2006


Author: pcadach
Date: Wed Sep 13 13:33:40 2006
New Revision: 42889

URL: http://svn.digium.com/view/asterisk?rev=42889&view=rev
Log:
Don't try to play standard MOH LICENSE file

Modified:
    team/pcadach/chan_h323-live/res/res_musiconhold.c

Modified: team/pcadach/chan_h323-live/res/res_musiconhold.c
URL: http://svn.digium.com/view/asterisk/team/pcadach/chan_h323-live/res/res_musiconhold.c?rev=42889&r1=42888&r2=42889&view=diff
==============================================================================
--- team/pcadach/chan_h323-live/res/res_musiconhold.c (original)
+++ team/pcadach/chan_h323-live/res/res_musiconhold.c Wed Sep 13 13:33:40 2006
@@ -776,6 +776,10 @@
 	while ((files_dirent = readdir(files_DIR))) {
 		/* The file name must be at least long enough to have the file type extension */
 		if ((strlen(files_dirent->d_name) < 4))
+			continue;
+
+		/* Skip standard license file - it is not audio */
+		if (!strcmp(files_dirent->d_name, "LICENSE"))
 			continue;
 
 		snprintf(filepath, sizeof(filepath), "%s/%s", class->dir, files_dirent->d_name);



More information about the asterisk-commits mailing list