<div dir="ltr">Ok lets go into details a little more:<div><br></div><div>User &lt;--&gt; FS &lt;--&gt; Provider</div><div><br></div><div>When User sends a fax, provider detects tones and renegotiates with t38. I can handle this case fine using sip_execute_on_image=t38_gateway</div><div><br></div><div>Now, one way or another I also want the a-leg to be t38 if possible. Be that via reinvite from FS or sepcifically requested by User. I can&#39;t make this work at all.</div><div><br></div><div>If FreeSWITCH renegotiates with User and User rejects T38, Freeswitch does not reinvite with the original codecs.</div><div><br></div><div>If User requests t38, fax negotiation fails in some cases, although that may be irrelevant.</div><div><br></div><div>So, here&#39;s my current configuration, that kind of works:</div><div><br></div><div><div>&lt;action application=&quot;export&quot; data=&quot;fax_enable_t38=true&quot; /&gt;</div><div>&lt;action application=&quot;export&quot; data=&quot;sip_execute_on_image=t38_gateway self nocng&quot; /&gt;</div></div><div><br></div><div>To test the User end (in this case another FreeSWITCH box for testing):</div><div><br></div><div>With T38:</div><div><br></div><div>originate {execute_on_answer=&#39;t38_gateway peer&#39;,fax_verbose=true,ignore_early_media=true,fax_ident=xxxx,fax_header=&#39;Test Fax&#39;,absolute_codec_string=PCMA,origination_caller_id_number=xxxx}sofia/gateway/xxxx/xxxx &amp;txfax(&#39;/home/andrew/test_fax.tiff&#39;)<br></div><div><br></div><div>Without T38:</div><div><br></div><div>originate {execute_on_answer=&#39;t38_gateway peer&#39;,fax_verbose=true,ignore_early_media=true,fax_ident=xxxx,fax_header=&#39;Test Fax&#39;,absolute_codec_string=PCMA,origination_caller_id_number=xxxx}sofia/gateway/xxxx/xxxx &amp;txfax(&#39;/home/andrew/test_fax.tiff&#39;)<br></div><div><br></div><div>However, the following fails:<br></div><div><br></div><div>originate {fax_enable_t38=true,fax_enable_t38_request=true,fax_verbose=true,ignore_early_media=true,fax_ident=xxxx,fax_header=&#39;Test Fax&#39;,absolute_codec_string=PCMA,origination_caller_id_number=xxxx}sofia/gateway/xxxx/xxxx &amp;txfax(&#39;/home/andrew/test_fax.tiff&#39;)<br></div><div><br></div><div>I think this configuration will work for now, the User end can decide freely if they want to send t38 requests to FS or not.</div><div class="gmail_extra"><br><div class="gmail_quote">On 4 August 2016 at 14:39, Brian West <span dir="ltr">&lt;<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">You also do NOT want pass thru set if you&#39;re doing this. </div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Thu, Aug 4, 2016 at 4:02 AM, Andrew Cassidy <span dir="ltr">&lt;<a href="mailto:andrew@cassidywebservices.co.uk" target="_blank">andrew@cassidywebservices.co.uk</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><span style="font-size:12.8px">Hi all,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Just realised the server I&#39;m having issues with is an old wheezy server running 1.4.26. I will test with latest and report back.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Kind regards,</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On 4 August 2016 at 09:55, Andrew Cassidy <span dir="ltr">&lt;<a href="mailto:andrew@cassidywebservices.co.uk" target="_blank">andrew@cassidywebservices.co.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Good morning all,<div><br></div><div>I&#39;ve been playing with faxing and t38 over the last few days. I use a wholesale provider who detects and reinvites for t38, and have implemented the same in my systems. Passing t38 through unmodified is not an issue.</div><div><br></div><div>The issue I do have, is in the event that the sender refuses the reinvite, I&#39;d like freeswitch to transcode. In theory, this is set up correctly, but see this error message repeated over and over and ultimately the fax fails:</div><div><br></div><div>[DEBUG] mod_spandsp_fax.c:1756 sofia/external/<a href="mailto:xxx@provider.com" target="_blank">xxx@provider.com</a> Error decoding UDPTL (172 bytes)<br></div><div><br></div><div>Every other scenario I have worked through is working fine.</div><div><br></div><div>For reference, the fax-specific dialplan entries:</div><div><br></div><div><div>&lt;action application=&quot;export&quot; data=&quot;fax_enable_t38=true&quot;/&gt;</div><div>&lt;action application=&quot;export&quot; data=&quot;fax_enable_t38_request=true&quot;/&gt;</div><div>&lt;action application=&quot;export&quot; data=&quot;t38_passthru=true&quot;/&gt;</div><div>&lt;action application=&quot;export&quot; data=&quot;nolocal:sip_execute_on_image=t38_gateway self&quot; /&gt;</div></div><div>&lt;action application=&quot;set&quot; data=&quot;execute_on_answer=t38_gateway peer&quot; /&gt;</div><div><br></div><div>Thanks in advance.</div><span><font color="#888888"><div><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><b>Andrew Cassidy BSc (Hons) MBCS SSCA</b><div>Managing Director<div><div><img src="https://docs.google.com/uc?export=download&amp;id=0B48A-71LkjxcRUlpZlNFZmY5Q2s&amp;revid=0B48A-71LkjxcaWJXYm5XZjdGY1czZFF1citBazFCVXV6R0ZnPQ"><br></div><div><div><a href="tel:03303%20880%20960" value="+443303880960" target="_blank">03303 880 960</a> <a href="mailto:andrew@cassidywebservices.co.uk" style="font-size:12.8px" target="_blank">andrew@cassidyweb.co.uk</a> <a href="http://www.cassidywebservices.co.uk" style="font-size:12.8px" target="_blank">www.cassidyweb.co.uk</a></div></div></div></div></div></div></div></div></div>
</div></font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><b>Andrew Cassidy BSc (Hons) MBCS SSCA</b><div>Managing Director<div><div><img src="https://docs.google.com/uc?export=download&amp;id=0B48A-71LkjxcRUlpZlNFZmY5Q2s&amp;revid=0B48A-71LkjxcaWJXYm5XZjdGY1czZFF1citBazFCVXV6R0ZnPQ"><br></div><div><div><a href="tel:03303%20880%20960" value="+443303880960" target="_blank">03303 880 960</a> <a href="mailto:andrew@cassidywebservices.co.uk" style="font-size:12.8px" target="_blank">andrew@cassidyweb.co.uk</a> <a href="http://www.cassidywebservices.co.uk" style="font-size:12.8px" target="_blank">www.cassidyweb.co.uk</a></div></div></div></div></div></div></div></div></div>
</div>
</div></div><br></div></div><span class="">_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><div><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><br></font><a href="https://www.gofundme.com/freeswitch_ubuntu" style="font-size:12.8px" target="_blank"><font face="monospace, monospace">https://www.gofundme.com/freeswitch_ubuntu</font></a></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><a href="tel:%2B19184209001" value="+19184209001" target="_blank">+19184209001</a> | <b>F:</b><a href="tel:%2B19184209002" value="+19184209002" target="_blank">+19184209002</a> | <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></div></div></div>
</div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><b>Andrew Cassidy BSc (Hons) MBCS SSCA</b><div>Managing Director<div><div><img src="https://docs.google.com/uc?export=download&amp;id=0B48A-71LkjxcRUlpZlNFZmY5Q2s&amp;revid=0B48A-71LkjxcaWJXYm5XZjdGY1czZFF1citBazFCVXV6R0ZnPQ"><br></div><div><div>03303 880 960 <a href="mailto:andrew@cassidywebservices.co.uk" style="font-size:12.8px" target="_blank">andrew@cassidyweb.co.uk</a> <a href="http://www.cassidywebservices.co.uk" style="font-size:12.8px" target="_blank">www.cassidyweb.co.uk</a></div></div></div></div></div></div></div></div></div>
</div></div>