I can second this behaviour... It wont be the weekend until I can actually get any packet captures for the unpatched code, I can certianly find some full freeswitch console logs if that will help. <div><br></div><div>Has a JIRA bug been filed for this yet? What is the number so I can contribute?</div>

<div><br></div><div>Matt.</div><div><br><br><div class="gmail_quote">On 7 April 2011 02:05, Anthony Minessale <span dir="ltr">&lt;<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Can you please get a pcap of a single call (without your patch) as<br>
well as a full capture of the freeswitch console logs and post it to<br>
JIRA.<br>
<br>
Are you using the described TDM inside FreeSWITCH or is this a SIP<br>
call from an Asterisk machine?<br>
<div><div></div><div class="h5"><br>
<br>
<br>
On Mon, Apr 4, 2011 at 4:07 AM, Markus Mueller &lt;<a href="mailto:freeswitch@priv.de">freeswitch@priv.de</a>&gt; wrote:<br>
&gt; Hello FreeSwitch users and programmers,<br>
&gt;<br>
&gt; I found a problem on receiving faxes and want to share a working patch<br>
&gt; for this. The problem is that on receiving a fax, it is unneeded aborted<br>
&gt; by a sanity check. Sanity checks are fine, but a unneeded abort instead<br>
&gt; of a warning is in productive versions not the best solution.<br>
&gt;<br>
&gt; The message apearing is:<br>
&gt;<br>
&gt; 2011-04-04 10:44:52.060860 [CRIT] switch_core_codec.c:660 Buffer size<br>
&gt; sanity check failed!<br>
&gt;<br>
&gt; which is normaly aborting in receiving the fax. Simply decreasing this<br>
&gt; fault to a warning let the server receive the fax without any problems.<br>
&gt; After the patch the message apears up to five times per fax before the<br>
&gt; fax is beeing accepted. I am using libpri with the three HFC ISDN Cards<br>
&gt; and the DAHDI from Debian Squeeze 6.0. For more informations about my<br>
&gt; hardware just write me an email.<br>
&gt;<br>
&gt; Regards,<br>
&gt; Markus Mueller<br>
&gt; <a href="http://projekte.priv.de/" target="_blank">http://projekte.priv.de/</a><br>
&gt;<br>
&gt; root@sip:/usr/local/src/freeswitch/src# diff -U 4 switch_core_codec.c*<br>
&gt; --- switch_core_codec.c 2011-03-14 10:49:17.000000000 +0100<br>
&gt; +++ <a href="http://switch_core_codec.c.org" target="_blank">switch_core_codec.c.org</a>     2011-03-14 10:47:02.000000000 +0100<br>
&gt; @@ -657,9 +657,9 @@<br>
&gt;                 uint32_t frames = encoded_data_len /<br>
&gt; codec-&gt;implementation-&gt;encoded_bytes_per_packet;<br>
&gt;<br>
&gt;                 if (frames &amp;&amp;<br>
&gt; codec-&gt;implementation-&gt;decoded_bytes_per_packet * frames &gt;<br>
&gt; *decoded_data_len) {<br>
&gt;                         switch_log_printf(SWITCH_CHANNEL_LOG,<br>
&gt; SWITCH_LOG_CRIT, &quot;Buffer size sanity check failed!\n&quot;);<br>
&gt; -                       // return SWITCH_STATUS_GENERR;<br>
&gt; +                       return SWITCH_STATUS_GENERR;<br>
&gt;                 }<br>
&gt;         }<br>
&gt;<br>
&gt;         if (codec-&gt;mutex) switch_mutex_lock(codec-&gt;mutex);<br>
&gt; root@sip:/usr/local/src/freeswitch/src#<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
<br>
<br>
<br>
</div></div>--<br>
Anthony Minessale II<br>
<br>
FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br>
<br>
AIM: anthm<br>
<a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
<br>
FreeSWITCH Developer Conference<br>
<a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div>