[asterisk-commits] murf: trunk r47178 - /trunk/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Nov 3 16:27:59 MST 2006


Author: murf
Date: Fri Nov  3 17:27:58 2006
New Revision: 47178

URL: http://svn.digium.com/view/asterisk?rev=47178&view=rev
Log:
This fix introduced via bug 8233

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=47178&r1=47177&r2=47178&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Fri Nov  3 17:27:58 2006
@@ -5878,6 +5878,10 @@
 	}
 
 	if (fmt.cur_ms && (fmt.cur_ms < *min_packet_size))
+		*min_packet_size = fmt.cur_ms;
+
+	/* Our first codec packetization processed cannot be zero */
+	if ((*min_packet_size)==0 && fmt.cur_ms)
 		*min_packet_size = fmt.cur_ms;
 }
 



More information about the asterisk-commits mailing list