[asterisk-commits] irroot: branch irroot/distrotech-customers-1.8 r324912 - /team/irroot/distrot...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Jun 26 08:03:45 CDT 2011


Author: irroot
Date: Sun Jun 26 08:03:32 2011
New Revision: 324912

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=324912
Log:
Check nativeformats and nativeformat not only nativeformats
This will stop the format changing on every packet
working for DAHDI and SIP

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

Modified: team/irroot/distrotech-customers-1.8/main/channel.c
URL: http://svnview.digium.com/svn/asterisk/team/irroot/distrotech-customers-1.8/main/channel.c?view=diff&rev=324912&r1=324911&r2=324912
==============================================================================
--- team/irroot/distrotech-customers-1.8/main/channel.c (original)
+++ team/irroot/distrotech-customers-1.8/main/channel.c Sun Jun 26 08:03:32 2011
@@ -4878,7 +4878,7 @@
 			apply_plc(chan, fr);
 		}
 
-		if (!(fr->subclass.codec & chan->nativeformats)) {
+		if ((!(fr->subclass.codec & chan->nativeformats)) && (chan->writeformat != fr->subclass.codec)) {
 			ast_set_write_format(chan, fr->subclass.codec);
 		}
 




More information about the asterisk-commits mailing list