<div dir="ltr"><p dir="ltr" style="font-size:12.8px">Sorry I wrote it while testing which is why the overall tone changes throughout.</p><p dir="ltr" style="font-size:12.8px">The without should should be without the execute_on_answer.</p><p dir="ltr" style="font-size:12.8px">I have a solution that works well enough,   In that I have a documentable configuration that should work for all use cases on my particular implementation. If the user wants to use T38, they need to request it.</p></div><div class="gmail_extra"><br><div class="gmail_quote">On 5 August 2016 at 07:56, Andrew Cassidy <span dir="ltr">&lt;<a href="mailto:andee@bytz.co.uk" target="_blank">andee@bytz.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"><p dir="ltr">Sorry I wrote it while testing which is why the overall tone changes throughout.</p>
<p dir="ltr">The without should should be without the execute_on_answer.</p>
<p dir="ltr">I have a solution that works well enough,   In that I have a documentable configuration that should work for all use cases on my particular implementation. If the user wants to use T38, they need to request it. </p><div class="HOEnZb"><div class="h5">
<div class="gmail_extra"><br><div class="gmail_quote">On 4 Aug 2016 17:37, &quot;Serge S. Yuriev&quot; &lt;<a href="mailto:me@nevian.org" target="_blank">me@nevian.org</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Your with and without t38 looks same for me - is this by intent?<br>
I&#39;m a little puzzled with your mail - have you every success?<br>
<br>
On 04/08/16 17:47, Andrew Cassidy wrote:<br>
&gt; Ok lets go into details a little more:<br>
&gt;<br>
&gt; User &lt;--&gt; FS &lt;--&gt; Provider<br>
&gt;<br>
&gt; When User sends a fax, provider detects tones and renegotiates with t38.<br>
&gt; I can handle this case fine using sip_execute_on_image=t38_gatew<wbr>ay<br>
&gt;<br>
&gt; Now, one way or another I also want the a-leg to be t38 if possible. Be<br>
&gt; that via reinvite from FS or sepcifically requested by User. I can&#39;t<br>
&gt; make this work at all.<br>
&gt;<br>
&gt; If FreeSWITCH renegotiates with User and User rejects T38, Freeswitch<br>
&gt; does not reinvite with the original codecs.<br>
&gt;<br>
&gt; If User requests t38, fax negotiation fails in some cases, although that<br>
&gt; may be irrelevant.<br>
&gt;<br>
&gt; So, here&#39;s my current configuration, that kind of works:<br>
&gt;<br>
&gt; &lt;action application=&quot;export&quot; data=&quot;fax_enable_t38=true&quot; /&gt;<br>
&gt; &lt;action application=&quot;export&quot; data=&quot;sip_execute_on_image=t38<wbr>_gateway self<br>
&gt; nocng&quot; /&gt;<br>
&gt;<br>
&gt; To test the User end (in this case another FreeSWITCH box for testing):<br>
&gt;<br>
&gt; With T38:<br>
&gt;<br>
&gt; originate {execute_on_answer=&#39;t38_gatewa<wbr>y<br>
&gt; peer&#39;,fax_verbose=true,ignore_<wbr>early_media=true,fax_ident=xxx<wbr>x,fax_header=&#39;Test<br>
&gt; Fax&#39;,absolute_codec_string=PCM<wbr>A,origination_caller_id_number<wbr>=xxxx}sofia/gateway/xxxx/xxxx<br>
&gt; &amp;txfax(&#39;/home/andrew/test_fax.<wbr>tiff&#39;)<br>
&gt;<br>
&gt; Without T38:<br>
&gt;<br>
&gt; originate {execute_on_answer=&#39;t38_gatewa<wbr>y<br>
&gt; peer&#39;,fax_verbose=true,ignore_<wbr>early_media=true,fax_ident=xxx<wbr>x,fax_header=&#39;Test<br>
&gt; Fax&#39;,absolute_codec_string=PCM<wbr>A,origination_caller_id_number<wbr>=xxxx}sofia/gateway/xxxx/xxxx<br>
&gt; &amp;txfax(&#39;/home/andrew/test_fax.<wbr>tiff&#39;)<br>
&gt;<br>
&gt; However, the following fails:<br>
&gt;<br>
&gt; originate<br>
&gt; {fax_enable_t38=true,fax_enabl<wbr>e_t38_request=true,fax_verbose<wbr>=true,ignore_early_media=true,<wbr>fax_ident=xxxx,fax_header=&#39;<wbr>Test<br>
&gt; Fax&#39;,absolute_codec_string=PCM<wbr>A,origination_caller_id_number<wbr>=xxxx}sofia/gateway/xxxx/xxxx<br>
&gt; &amp;txfax(&#39;/home/andrew/test_fax.<wbr>tiff&#39;)<br>
&gt;<br>
&gt; I think this configuration will work for now, the User end can decide<br>
&gt; freely if they want to send t38 requests to FS or not.<br>
&gt;<br>
&gt; On 4 August 2016 at 14:39, Brian West &lt;<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a><br>
&gt; &lt;mailto:<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     You also do NOT want pass thru set if you&#39;re doing this.<br>
&gt;<br>
&gt;     On Thu, Aug 4, 2016 at 4:02 AM, Andrew Cassidy<br>
&gt;     &lt;<a href="mailto:andrew@cassidywebservices.co.uk" target="_blank">andrew@cassidywebservices.<wbr>co.uk</a><br>
&gt;     &lt;mailto:<a href="mailto:andrew@cassidywebservices.co.uk" target="_blank">andrew@cassidywebserv<wbr>ices.co.uk</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;         Hi all,<br>
&gt;<br>
&gt;         Just realised the server I&#39;m having issues with is an old wheezy<br>
&gt;         server running 1.4.26. I will test with latest and report back.<br>
&gt;<br>
&gt;         Kind regards,<br>
&gt;<br>
&gt;         On 4 August 2016 at 09:55, Andrew Cassidy<br>
&gt;         &lt;<a href="mailto:andrew@cassidywebservices.co.uk" target="_blank">andrew@cassidywebservices.<wbr>co.uk</a><br>
&gt;         &lt;mailto:<a href="mailto:andrew@cassidywebservices.co.uk" target="_blank">andrew@cassidywebserv<wbr>ices.co.uk</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;             Good morning all,<br>
&gt;<br>
&gt;             I&#39;ve been playing with faxing and t38 over the last few<br>
&gt;             days. I use a wholesale provider who detects and reinvites<br>
&gt;             for t38, and have implemented the same in my systems.<br>
&gt;             Passing t38 through unmodified is not an issue.<br>
&gt;<br>
&gt;             The issue I do have, is in the event that the sender refuses<br>
&gt;             the reinvite, I&#39;d like freeswitch to transcode. In theory,<br>
&gt;             this is set up correctly, but see this error message<br>
&gt;             repeated over and over and ultimately the fax fails:<br>
&gt;<br>
&gt;             [DEBUG] mod_spandsp_fax.c:1756<br>
&gt;             sofia/external/<a href="mailto:xxx@provider.com" target="_blank">xxx@provider.c<wbr>om</a> &lt;mailto:<a href="mailto:xxx@provider.com" target="_blank">xxx@provider.com</a>&gt;<br>
&gt;             Error decoding UDPTL (172 bytes)<br>
&gt;<br>
&gt;             Every other scenario I have worked through is working fine.<br>
&gt;<br>
&gt;             For reference, the fax-specific dialplan entries:<br>
&gt;<br>
&gt;             &lt;action application=&quot;export&quot; data=&quot;fax_enable_t38=true&quot;/&gt;<br>
&gt;             &lt;action application=&quot;export&quot;<br>
&gt;             data=&quot;fax_enable_t38_request=<wbr>true&quot;/&gt;<br>
&gt;             &lt;action application=&quot;export&quot; data=&quot;t38_passthru=true&quot;/&gt;<br>
&gt;             &lt;action application=&quot;export&quot;<br>
&gt;             data=&quot;nolocal:sip_execute_on_<wbr>image=t38_gateway self&quot; /&gt;<br>
&gt;             &lt;action application=&quot;set&quot;<br>
&gt;             data=&quot;execute_on_answer=t38_g<wbr>ateway peer&quot; /&gt;<br>
&gt;<br>
&gt;             Thanks in advance.<br>
&gt;<br>
&gt;             --<br>
&gt;             *Andrew Cassidy BSc (Hons) MBCS SSCA*<br>
&gt;             Managing Director<br>
&gt;<br>
&gt;             <a href="tel:03303%20880%20960" value="+443303880960" target="_blank">03303 880 960</a><br>
&gt;             &lt;tel:03303%20880%20960&gt; <a href="mailto:andrew@cassidyweb.co.uk" target="_blank">andrew@cassidyweb.co.uk</a><br>
&gt;             &lt;mailto:<a href="mailto:andrew@cassidywebservices.co.uk" target="_blank">andrew@cassidywebserv<wbr>ices.co.uk</a>&gt; <a href="http://www.cassidyweb.co.uk" rel="noreferrer" target="_blank">www.cassidyweb.co.uk</a> &lt;<a href="http://www.cassidywebservices.co.uk" rel="noreferrer" target="_blank">http://www.cassidywebservices<wbr>.co.uk</a>&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;         --<br>
&gt;         *Andrew Cassidy BSc (Hons) MBCS SSCA*<br>
&gt;         Managing Director<br>
&gt;<br>
&gt;         <a href="tel:03303%20880%20960" value="+443303880960" target="_blank">03303 880 960</a> &lt;tel:03303%20880%20960&gt; <a href="mailto:andrew@cassidyweb.co.uk" target="_blank">andrew@cassidyweb.co.uk</a><br>
&gt;         &lt;mailto:<a href="mailto:andrew@cassidywebservices.co.uk" target="_blank">andrew@cassidywebserv<wbr>ices.co.uk</a>&gt; <a href="http://www.cassidyweb.co.uk" rel="noreferrer" target="_blank">www.cassidyweb.co.uk</a><br>
&gt;         &lt;<a href="http://www.cassidywebservices.co.uk" rel="noreferrer" target="_blank">http://www.cassidywebservice<wbr>s.co.uk</a>&gt;<br>
&gt;<br>
&gt;         _____________________________<wbr>______________________________<wbr>______________<br>
&gt;         Professional FreeSWITCH Consulting Services:<br>
&gt;         <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a> &lt;mailto:<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.<wbr>org</a>&gt;<br>
&gt;         <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolution<wbr>s.com</a><br>
&gt;<br>
&gt;         Official FreeSWITCH Sites<br>
&gt;         <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt;         <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
&gt;         <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt;         FreeSWITCH-users mailing list<br>
&gt;         <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freesw<wbr>itch.org</a><br>
&gt;         &lt;mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@list<wbr>s.freeswitch.org</a>&gt;<br>
&gt;         <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/m<wbr>ailman/listinfo/freeswitch-use<wbr>rs</a><br>
&gt;         UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.free<wbr>switch.org/mailman/options/<wbr>freeswitch-users</a><br>
&gt;         <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;     --<br>
&gt;<br>
&gt;     */Brian West/*<br>
&gt;     <a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a> &lt;mailto:<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>&gt;<br>
&gt;<br>
&gt;<br>
&gt;     */Twitter: @FreeSWITCH , @briankwest/*<br>
&gt;     <a href="http://www.freeswitchbook.com" rel="noreferrer" target="_blank">http://www.freeswitchbook.com</a><br>
&gt;     <a href="http://www.freeswitchcookbook.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchcookbook.com</a><br>
&gt;     <a href="https://www.gofundme.com/freeswitch_ubuntu" rel="noreferrer" target="_blank">https://www.gofundme.com/free<wbr>switch_ubuntu</a><br>
&gt;<br>
&gt;     Got Bugs? Report them here &lt;<a href="https://freeswitch.org/jira" rel="noreferrer" target="_blank">https://freeswitch.org/jira</a>&gt;! |<br>
&gt;     Reddit: /r/freeswitch &lt;<a href="https://www.reddit.com/r/freeswitch" rel="noreferrer" target="_blank">https://www.reddit.com/r/free<wbr>switch</a>&gt;<br>
&gt;<br>
&gt;     *T:*<a href="tel:%2B19184209001" value="+19184209001" target="_blank">+19184209001</a> &lt;tel:%2B19184209001&gt; | *F:*<a href="tel:%2B19184209002" value="+19184209002" target="_blank">+19184209002</a><br>
&gt;     &lt;tel:%2B19184209002&gt; | *M:*+1918424WEST (9378)<br>
&gt;     *iNUM:*<a href="tel:%2B883%205100%201420%209001" value="+883510014209001" target="_blank">+883 5100 1420 9001</a> | *ISN:*410*543 | *Skype:*briankwest<br>
&gt;<br>
&gt;<br>
&gt;     _____________________________<wbr>______________________________<wbr>______________<br>
&gt;     Professional FreeSWITCH Consulting Services:<br>
&gt;     <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a> &lt;mailto:<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.<wbr>org</a>&gt;<br>
&gt;     <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolution<wbr>s.com</a><br>
&gt;<br>
&gt;     Official FreeSWITCH Sites<br>
&gt;     <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt;     <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
&gt;     <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt;     FreeSWITCH-users mailing list<br>
&gt;     <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freesw<wbr>itch.org</a><br>
&gt;     &lt;mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@list<wbr>s.freeswitch.org</a>&gt;<br>
&gt;     <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/m<wbr>ailman/listinfo/freeswitch-use<wbr>rs</a><br>
&gt;     UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.free<wbr>switch.org/mailman/options/<wbr>freeswitch-users</a><br>
&gt;     <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; *Andrew Cassidy BSc (Hons) MBCS SSCA*<br>
&gt; Managing Director<br>
&gt;<br>
&gt; <a href="tel:03303%20880%20960" value="+443303880960" target="_blank">03303 880 960</a> <a href="mailto:andrew@cassidyweb.co.uk" target="_blank">andrew@cassidyweb.co.uk</a><br>
&gt; &lt;mailto:<a href="mailto:andrew@cassidywebservices.co.uk" target="_blank">andrew@cassidywebservi<wbr>ces.co.uk</a>&gt; <a href="http://www.cassidyweb.co.uk" rel="noreferrer" target="_blank">www.cassidyweb.co.uk</a><br>
&gt; &lt;<a href="http://www.cassidywebservices.co.uk" rel="noreferrer" target="_blank">http://www.cassidywebservices<wbr>.co.uk</a>&gt;<br>
&gt;<br>
&gt;<br>
&gt; ______________________________<wbr>______________________________<wbr>_____________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.o<wbr>rg</a><br>
&gt; <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/<wbr>freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
<br>
--<br>
Serge S. Yuriev<br>
Lead VoIP engineer<br>
<br>
<br>
______________________________<wbr>______________________________<wbr>_____________<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<wbr>.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.o<wbr>rg</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.freeswi<wbr>tch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/<wbr>freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div></div>
</div></div></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>