[asterisk-commits] murf: branch 1.4 r47176 - /branches/1.4/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Nov 3 16:17:01 MST 2006


Author: murf
Date: Fri Nov  3 17:17:01 2006
New Revision: 47176

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

Modified:
    branches/1.4/channels/chan_sip.c

Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_sip.c?rev=47176&r1=47175&r2=47176&view=diff
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Fri Nov  3 17:17:01 2006
@@ -5812,6 +5812,10 @@
 	}
 
 	if (fmt.cur_ms && (fmt.cur_ms < *min_packet_size))
+		*min_packet_size = fmt.cur_ms;
+
+	/* Our first codec packetization processed cannot be less than zero */
+	if ((*min_packet_size) == 0  && fmt.cur_ms)
 		*min_packet_size = fmt.cur_ms;
 }
 



More information about the asterisk-commits mailing list