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"><<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>></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 <<a href="mailto:freeswitch@priv.de">freeswitch@priv.de</a>> wrote:<br>
> Hello FreeSwitch users and programmers,<br>
><br>
> I found a problem on receiving faxes and want to share a working patch<br>
> for this. The problem is that on receiving a fax, it is unneeded aborted<br>
> by a sanity check. Sanity checks are fine, but a unneeded abort instead<br>
> of a warning is in productive versions not the best solution.<br>
><br>
> The message apearing is:<br>
><br>
> 2011-04-04 10:44:52.060860 [CRIT] switch_core_codec.c:660 Buffer size<br>
> sanity check failed!<br>
><br>
> which is normaly aborting in receiving the fax. Simply decreasing this<br>
> fault to a warning let the server receive the fax without any problems.<br>
> After the patch the message apears up to five times per fax before the<br>
> fax is beeing accepted. I am using libpri with the three HFC ISDN Cards<br>
> and the DAHDI from Debian Squeeze 6.0. For more informations about my<br>
> hardware just write me an email.<br>
><br>
> Regards,<br>
> Markus Mueller<br>
> <a href="http://projekte.priv.de/" target="_blank">http://projekte.priv.de/</a><br>
><br>
> root@sip:/usr/local/src/freeswitch/src# diff -U 4 switch_core_codec.c*<br>
> --- switch_core_codec.c 2011-03-14 10:49:17.000000000 +0100<br>
> +++ <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>
> @@ -657,9 +657,9 @@<br>
> uint32_t frames = encoded_data_len /<br>
> codec->implementation->encoded_bytes_per_packet;<br>
><br>
> if (frames &&<br>
> codec->implementation->decoded_bytes_per_packet * frames ><br>
> *decoded_data_len) {<br>
> switch_log_printf(SWITCH_CHANNEL_LOG,<br>
> SWITCH_LOG_CRIT, "Buffer size sanity check failed!\n");<br>
> - // return SWITCH_STATUS_GENERR;<br>
> + return SWITCH_STATUS_GENERR;<br>
> }<br>
> }<br>
><br>
> if (codec->mutex) switch_mutex_lock(codec->mutex);<br>
> root@sip:/usr/local/src/freeswitch/src#<br>
><br>
><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>
><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>