Try on 1.4.21?  We did fix an issue in this area where the CNG packets were causing issues with t.38.<div><br></div><div>/b<br><br>On Thursday, September 17, 2015, Markus Bönke &lt;<a href="mailto:mbodbg@gmx.net">mbodbg@gmx.net</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Hello,</div><div><br></div><div>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><br></div><div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(52,189,38);background-color:rgb(0,0,0)"><span style="color:#29f914">        </span><span style="color:#34bbc7">&lt;action</span> application=&quot;export&quot; data=&quot;fax_enable_t38=true&quot;/<span style="color:#34bbc7">&gt;</span></div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(175,173,36);background-color:rgb(0,0,0)"><span style="color:#29f914">      </span><span style="color:rgb(41,249,20)">  </span><span style="color:rgb(52,187,199)">&lt;action</span><span style="color:rgb(52,189,38)"> application=&quot;export&quot; data=&quot;fax_enable_t38_request=true&quot;/</span><span style="color:rgb(52,187,199)">&gt;</span></div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(52,189,38);background-color:rgb(0,0,0)"><span style="color:#29f914">        </span><span style="color:#34bbc7">&lt;action</span> application=&quot;export&quot; data=&quot;fax_verbose=true&quot;/<span style="color:#34bbc7">&gt;</span></div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(52,189,38);background-color:rgb(0,0,0)"><span style="color:#29f914">        </span><span style="color:#34bbc7">&lt;action</span> application=&quot;export&quot; data=&quot;execute_on_answer=t38_gateway self&quot;/<span style="color:#34bbc7">&gt;</span></div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(175,173,36);background-color:rgb(0,0,0)"><span style="color:#29f914">     </span><span style="color:rgb(41,249,20)">   </span><span style="color:rgb(52,187,199)">&lt;action</span><span style="color:rgb(52,189,38)"> application=&quot;bridge&quot; data=&quot;sofia/external/${destination_number}@${destination_ip}&quot;/</span><span style="color:rgb(52,187,199)">&gt;</span></div></div><div><br></div><div>On the RECEIVER freeswitch I use the this dialplan:</div><div><br></div><div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(52,189,38);background-color:rgb(0,0,0)"><span style="color:#34bbc7">         &lt;action</span> application=&quot;answer&quot; /<span style="color:#34bbc7">&gt;</span></div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(52,189,38);background-color:rgb(0,0,0)"><span style="color:#29f914">         </span><span style="color:#34bbc7">&lt;action</span> application=&quot;playback&quot; data=&quot;silence_stream://2000&quot;/<span style="color:#34bbc7">&gt;</span></div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(52,189,38);background-color:rgb(0,0,0)"><span style="color:#29f914">         </span><span style="color:#34bbc7">&lt;action</span> application=&quot;set&quot; data=&quot;fax_enable_t38_request=false&quot;/<span style="color:#34bbc7">&gt;</span></div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(52,189,38);background-color:rgb(0,0,0)"><span style="color:#29f914">         </span><span style="color:#34bbc7">&lt;action</span> application=&quot;export&quot; data=&quot;fax_enable_t38=true&quot;/<span style="color:#34bbc7">&gt;</span></div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(52,189,38);background-color:rgb(0,0,0)"><span style="color:#29f914">         </span><span style="color:#34bbc7">&lt;action</span> application=&quot;rxfax&quot; data=&quot;/tmp/FAX-${uuid}.tiff&quot;/<span style="color:#34bbc7">&gt;</span></div></div><div><br></div><div>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><br></div><div>...</div><div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(175,173,36);background-color:rgb(0,0,0)">  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)">   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)">   a=T38FaxFillBitRemoval</div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(175,173,36);background-color:rgb(0,0,0)">   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)">   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)">   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)">   a=T38FaxUdpEC:t38UDPRedundancy</div></div><div>…</div><div><br></div><div>On the SENDER side I can see that it tries to start the t38_gateway</div><div><br></div><div>…</div><div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(175,173,36);background-color:rgb(0,0,0)">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)">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)">2015-09-17 23:36:51.092799 [DEBUG] mod_spandsp_fax.c:286 FLOW T.38G Changing - (0) ced -&gt; no-signal</div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(175,173,36);background-color:rgb(0,0,0)">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)">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)">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)">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)">2015-09-17 23:36:51.172799 [DEBUG] mod_spandsp_fax.c:286 FLOW T.38G Changing - (0) no-signal -&gt; v21-preamble</div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(175,173,36);background-color:rgb(0,0,0)">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)">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)">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)">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)">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>…</div><div><br></div><div>But then fails with a protocol error</div><div><br></div><div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(175,173,36);background-color:rgb(0,0,0)">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)">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)"><span style="color:rgb(195,55,32)">2015-09-17 23:34:07.652799 [ERR] mod_spandsp_fax.c:671 TERMINATING T30 STATE</span></div></div><div>…</div><div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(213,59,211);background-color:rgb(0,0,0)">2015-09-17 23:34:07.652799 [WARNING] mod_spandsp_fax.c:286 PROTOCOL_WARNING T.38 Tx packet handler failure</div></div><div><br></div><div>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><br></div><div>Thanks and Regards</div><div><br></div><div>Markus </div><div><br></div></div></blockquote></div><br><br>-- <br><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">







<p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p>
<p><font size="1" face="courier new, monospace"><img src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png"><br></font></p><p><font size="2" face="monospace, monospace"><b><i>Twitter: @FreeSWITCH , @briankwest</i></b><br><a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a><br><a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a></font></p><p><font face="monospace, monospace">Got Bugs? Report them <a href="https://freeswitch.org/jira" target="_blank">here</a>! | Reddit: <a href="https://www.reddit.com/r/freeswitch" target="_blank">/r/freeswitch</a></font></p>
<p><font size="2" face="monospace, monospace"><b>T:</b>+19184209001 | <b>F:</b>+19184209002 | <b>M:</b>+1918424WEST (9378)<br><b>iNUM:</b>+883 5100 1420 9001 | <b>ISN:</b>410*543 | <b>Skype:</b>briankwest</font></p></div></div></div></div></div></div></div></div></div><br>