This fix introduced via bug 8233
authorSteve Murphy <murf@digium.com>
Fri, 3 Nov 2006 23:27:58 +0000 (23:27 +0000)
committerSteve Murphy <murf@digium.com>
Fri, 3 Nov 2006 23:27:58 +0000 (23:27 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47178 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 8c26c67..0cd6d2a 100644 (file)
@@ -5879,6 +5879,10 @@ static void add_codec_to_sdp(const struct sip_pvt *p, int codec, int sample_rate
 
        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;
 }
 
 /*! \brief Get Max T.38 Transmission rate from T38 capabilities */