<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I just upgraded to 1.4.21, but it is the same issue.<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">Am 18.09.2015 um 00:08 schrieb Brian West <<a href="mailto:brian@freeswitch.org" class="">brian@freeswitch.org</a>>:</div><br class="Apple-interchange-newline"><div class="">Try on 1.4.21? We did fix an issue in this area where the CNG packets were causing issues with t.38.<div class=""><br class=""></div><div class="">/b<br class=""><br class="">On Thursday, September 17, 2015, Markus Bönke <<a href="mailto:mbodbg@gmx.net" class="">mbodbg@gmx.net</a>> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class="">Hello,</div><div class=""><br class=""></div><div class="">I want to send a fax between two freeswitches (1.4.20) via T.38. On the SENDER freeswitch, I have Sangoma A104 TDM card and use the following dialplan: </div><div class=""><br class=""></div><div class=""><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(52,189,38);background-color:rgb(0,0,0)" class=""><span style="color:#29f914" class=""> </span><span style="color:#34bbc7" class=""><action</span> application="export" data="fax_enable_t38=true"/<span style="color:#34bbc7" class="">></span></div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(175,173,36);background-color:rgb(0,0,0)" class=""><span style="color:#29f914" class=""> </span><span style="color:rgb(41,249,20)" class=""> </span><span style="color:rgb(52,187,199)" class=""><action</span><span style="color:rgb(52,189,38)" class=""> application="export" data="fax_enable_t38_request=true"/</span><span style="color:rgb(52,187,199)" class="">></span></div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(52,189,38);background-color:rgb(0,0,0)" class=""><span style="color:#29f914" class=""> </span><span style="color:#34bbc7" class=""><action</span> application="export" data="fax_verbose=true"/<span style="color:#34bbc7" class="">></span></div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(52,189,38);background-color:rgb(0,0,0)" class=""><span style="color:#29f914" class=""> </span><span style="color:#34bbc7" class=""><action</span> application="export" data="execute_on_answer=t38_gateway self"/<span style="color:#34bbc7" class="">></span></div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(175,173,36);background-color:rgb(0,0,0)" class=""><span style="color:#29f914" class=""> </span><span style="color:rgb(41,249,20)" class=""> </span><span style="color:rgb(52,187,199)" class=""><action</span><span style="color:rgb(52,189,38)" class=""> application="bridge" data="sofia/external/${destination_number}@${destination_ip}"/</span><span style="color:rgb(52,187,199)" class="">></span></div></div><div class=""><br class=""></div><div class="">On the RECEIVER freeswitch I use the this dialplan:</div><div class=""><br class=""></div><div class=""><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(52,189,38);background-color:rgb(0,0,0)" class=""><span style="color:#34bbc7" class=""> <action</span> application="answer" /<span style="color:#34bbc7" class="">></span></div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(52,189,38);background-color:rgb(0,0,0)" class=""><span style="color:#29f914" class=""> </span><span style="color:#34bbc7" class=""><action</span> application="playback" data="silence_stream://2000"/<span style="color:#34bbc7" class="">></span></div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(52,189,38);background-color:rgb(0,0,0)" class=""><span style="color:#29f914" class=""> </span><span style="color:#34bbc7" class=""><action</span> application="set" data="fax_enable_t38_request=false"/<span style="color:#34bbc7" class="">></span></div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(52,189,38);background-color:rgb(0,0,0)" class=""><span style="color:#29f914" class=""> </span><span style="color:#34bbc7" class=""><action</span> application="export" data="fax_enable_t38=true"/<span style="color:#34bbc7" class="">></span></div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(52,189,38);background-color:rgb(0,0,0)" class=""><span style="color:#29f914" class=""> </span><span style="color:#34bbc7" class=""><action</span> application="rxfax" data="/tmp/FAX-${uuid}.tiff"/<span style="color:#34bbc7" class="">></span></div></div><div class=""><br class=""></div><div class="">When I try to send a fax, on the RECEIVER freeswitch, I can see in the (second) INVITE the T.38 data is present: </div><div class=""><br class=""></div><div class="">...</div><div class=""><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(175,173,36);background-color:rgb(0,0,0)" class=""> a=T38FaxVersion:0</div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(175,173,36);background-color:rgb(0,0,0)" class=""> a=T38MaxBitRate:14400</div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(175,173,36);background-color:rgb(0,0,0)" class=""> a=T38FaxFillBitRemoval</div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(175,173,36);background-color:rgb(0,0,0)" class=""> a=T38FaxRateManagement:transferredTCF</div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(175,173,36);background-color:rgb(0,0,0)" class=""> a=T38FaxMaxBuffer:2000</div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(175,173,36);background-color:rgb(0,0,0)" class=""> a=T38FaxMaxDatagram:400</div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(175,173,36);background-color:rgb(0,0,0)" class=""> a=T38FaxUdpEC:t38UDPRedundancy</div></div><div class="">…</div><div class=""><br class=""></div><div class="">On the SENDER side I can see that it tries to start the t38_gateway</div><div class=""><br class=""></div><div class="">…</div><div class=""><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(175,173,36);background-color:rgb(0,0,0)" class="">2015-09-17 23:36:51.092799 [DEBUG] mod_spandsp_fax.c:286 FLOW T.38 Rx 2: IFP 00</div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(175,173,36);background-color:rgb(0,0,0)" class="">2015-09-17 23:36:51.092799 [DEBUG] mod_spandsp_fax.c:286 FLOW T.38 Rx 2: indicator no-signal</div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(175,173,36);background-color:rgb(0,0,0)" class="">2015-09-17 23:36:51.092799 [DEBUG] mod_spandsp_fax.c:286 FLOW T.38G Changing - (0) ced -> no-signal</div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(175,173,36);background-color:rgb(0,0,0)" class="">2015-09-17 23:36:51.092799 [DEBUG] mod_spandsp_fax.c:286 FLOW T.38G Changing to no-signal</div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(175,173,36);background-color:rgb(0,0,0)" class="">2015-09-17 23:36:51.092799 [DEBUG] mod_spandsp_fax.c:286 FLOW T.38G Non-ECM mode</div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(175,173,36);background-color:rgb(0,0,0)" class="">2015-09-17 23:36:51.172799 [DEBUG] mod_spandsp_fax.c:286 FLOW T.38 Rx 3: IFP 06</div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(175,173,36);background-color:rgb(0,0,0)" class="">2015-09-17 23:36:51.172799 [DEBUG] mod_spandsp_fax.c:286 FLOW T.38 Rx 3: indicator v21-preamble</div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(175,173,36);background-color:rgb(0,0,0)" class="">2015-09-17 23:36:51.172799 [DEBUG] mod_spandsp_fax.c:286 FLOW T.38G Changing - (0) no-signal -> v21-preamble</div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(175,173,36);background-color:rgb(0,0,0)" class="">2015-09-17 23:36:51.172799 [DEBUG] mod_spandsp_fax.c:286 FLOW T.38G Changing to v21-preamble</div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(175,173,36);background-color:rgb(0,0,0)" class="">2015-09-17 23:36:51.172799 [DEBUG] mod_spandsp_fax.c:286 FLOW T.38G Non-ECM mode</div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(175,173,36);background-color:rgb(0,0,0)" class="">2015-09-17 23:36:52.072799 [DEBUG] mod_spandsp_fax.c:286 FLOW T.38G HDLC underflow at 4</div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(175,173,36);background-color:rgb(0,0,0)" class="">2015-09-17 23:36:52.172799 [DEBUG] mod_spandsp_fax.c:286 FLOW T.38 Rx 4: IFP c0 01 80 00 00 ff</div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(175,173,36);background-color:rgb(0,0,0)" class="">2015-09-17 23:36:52.172799 [DEBUG] mod_spandsp_fax.c:286 FLOW T.38 Rx 4: (0) data v21/hdlc-data + 1 byte(s)</div></div><div class="">…</div><div class=""><br class=""></div><div class="">But then fails with a protocol error</div><div class=""><br class=""></div><div class=""><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(175,173,36);background-color:rgb(0,0,0)" class="">2015-09-17 23:34:07.652799 [DEBUG] mod_spandsp_fax.c:286 FLOW T.38 Tx 1: indicator v21-preamble</div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(195,55,32);background-color:rgb(0,0,0)" class="">2015-09-17 23:34:07.652799 [ERR] mod_spandsp_fax.c:659 INVALID WRITE: 8:3</div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(175,173,36);background-color:rgb(0,0,0)" class=""><span style="color:rgb(195,55,32)" class="">2015-09-17 23:34:07.652799 [ERR] mod_spandsp_fax.c:671 TERMINATING T30 STATE</span></div></div><div class="">…</div><div class=""><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(213,59,211);background-color:rgb(0,0,0)" class="">2015-09-17 23:34:07.652799 [WARNING] mod_spandsp_fax.c:286 PROTOCOL_WARNING T.38 Tx packet handler failure</div></div><div class=""><br class=""></div><div class="">On the RECEIVER side the fax fails with „result (49) The call dropped prematurely“. Can this be because of a wrong configuration (dialplans/mod_spandsp), or is this a bug?</div><div class=""><br class=""></div><div class="">Thanks and Regards</div><div class=""><br class=""></div><div class="">Markus </div><div class=""><br class=""></div></div></blockquote></div><br class=""><br class="">-- <br class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><p class=""><font face="courier new, monospace" class=""><b class=""><i class=""><font size="4" class="">Brian West</font></i></b><br class=""><span style="font-size:x-small" class=""><a href="mailto:brian@freeswitch.org" target="_blank" class="">brian@freeswitch.org</a></span></font></p><p class=""><font size="1" face="courier new, monospace" class=""><img src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png" class=""><br class=""></font></p><p class=""><font size="2" face="monospace, monospace" class=""><b class=""><i class="">Twitter: @FreeSWITCH , @briankwest</i></b><br class=""><a href="http://www.freeswitchbook.com/" target="_blank" class="">http://www.freeswitchbook.com</a><br class=""><a href="http://www.freeswitchcookbook.com/" target="_blank" class="">http://www.freeswitchcookbook.com</a></font></p><p class=""><font face="monospace, monospace" class="">Got Bugs? Report them <a href="https://freeswitch.org/jira" target="_blank" class="">here</a>! | Reddit: <a href="https://www.reddit.com/r/freeswitch" target="_blank" class="">/r/freeswitch</a></font></p><p class=""><font size="2" face="monospace, monospace" class=""><b class="">T:</b>+19184209001 | <b class="">F:</b>+19184209002 | <b class="">M:</b>+1918424WEST (9378)<br class=""><b class="">iNUM:</b>+883 5100 1420 9001 | <b class="">ISN:</b>410*543 | <b class="">Skype:</b>briankwest</font></p></div></div></div></div></div></div></div></div></div><br class="">
_________________________________________________________________________<br class="">Professional FreeSWITCH Consulting Services: <br class=""><a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class="">http://www.freeswitchsolutions.com<br class=""><br class="">Official FreeSWITCH Sites<br class="">http://www.freeswitch.org<br class="">http://confluence.freeswitch.org<br class="">http://www.cluecon.com<br class=""><br class="">FreeSWITCH-users mailing list<br class="">FreeSWITCH-users@lists.freeswitch.org<br class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br class="">UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br class="">http://www.freeswitch.org</div></blockquote></div><br class=""></div></body></html>