[asterisk-commits] irroot: branch irroot/distrotech-customers-10 r336932 - /team/irroot/distrote...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Sep 20 03:50:40 CDT 2011


Author: irroot
Date: Tue Sep 20 03:50:38 2011
New Revision: 336932

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=336932
Log:
Add comments to the format fixup patch and log warning

Modified:
    team/irroot/distrotech-customers-10/main/channel.c

Modified: team/irroot/distrotech-customers-10/main/channel.c
URL: http://svnview.digium.com/svn/asterisk/team/irroot/distrotech-customers-10/main/channel.c?view=diff&rev=336932&r1=336931&r2=336932
==============================================================================
--- team/irroot/distrotech-customers-10/main/channel.c (original)
+++ team/irroot/distrotech-customers-10/main/channel.c Tue Sep 20 03:50:38 2011
@@ -4968,8 +4968,18 @@
 			apply_plc(chan, fr);
 		}
 
+		/* XXX Something is not right we are not compatible with this frame bad things can happen
+		 * problems range from no/one-way audio to unexplained line hangups as a last resort try adjust the format
+		 * ideally we do not want to do this and this indicates a deeper problem for now we log these events to
+		 * eliminate user impact and help identify the problem areas
+		 * JIRA issues related to this :-
+		 * ASTERISK-14384, ASTERISK-17502, ASTERISK-17541, ASTERISK-18063, ASTERISK-18325, ASTERISK-18422*/
 		if ((!ast_format_cap_iscompatible(chan->nativeformats, &fr->subclass.format)) &&
 		    (ast_format_cmp(&chan->writeformat, &fr->subclass.format) != AST_FORMAT_CMP_EQUAL)) {
+			char nf[512];
+			ast_log(LOG_WARNING, "Codec mismatch on channel %s setting write format to %s from %s native formats %s\n",
+				chan->name, ast_getformatname(&fr->subclass.format), ast_getformatname(&chan->writeformat),
+				ast_getformatname_multiple(nf, sizeof(nf), chan->nativeformats));
 			ast_set_write_format_by_id(chan, fr->subclass.format.id);
 		}
 




More information about the asterisk-commits mailing list