<div dir="ltr">It looks like the CFR is heavily delayed, FS has resent DCS and not yet sent a new TCF when the CFR rolls in from the first TCF. Not sure why the log doesn't show T4 timer expiring but I'm venturing a guess that's what's going on. See these lines:<div><br></div><div><pre class="gmail-aLF-aPX-K0-aPE">2017-11-24 18:30:00.705317 [DEBUG] mod_spandsp_fax.c:276 FLOW T.30 Start T4
2017-11-24 18:30:00.705317 [DEBUG] mod_spandsp_fax.c:276 FLOW T.30 Changing from state D_TCF to D_POST_TCF
2017-11-24 18:30:04.025321 [DEBUG] mod_spandsp_fax.c:276 FLOW T.30 HDLC signal status is Carrier up (-2) in state D_POST_TCF
2017-11-24 18:30:04.065319 [DEBUG] mod_spandsp_fax.c:276 FLOW T.30 HDLC signal status is Abort (-8) in state D_POST_TCF
2017-11-24 18:30:04.165296 [DEBUG] mod_spandsp_fax.c:276 FLOW T.30 Retry number 1</pre></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 24, 2017 at 6:40 PM, Shaun Stokes <span dir="ltr"><<a href="mailto:shaun.stokes@itec-support.co.uk" target="_blank">shaun.stokes@itec-support.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Just noticed your log attachment, I'm unsure as to the exact cause, echo could be a possibility.<br>
<br>
Could be a problem the remote end, have you testing using a regular fax machine over PSTN line? If that works then try using a fax machine plugged into an ATA on FreeSWITCH going over the same carrier, if that works then you know it's likely to be something specific to your fax module. If you don't have a fax machine or an ATA then you could try disabling T.38 then ECM to see if either make any difference.<br>
<span class="im HOEnZb"><br>
-----Original Message-----<br>
From: FreeSWITCH-users [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-<wbr>bounces@lists.freeswitch.org</a>] On Behalf Of António Silva<br>
</span><div class="HOEnZb"><div class="h5">Sent: 24 November 2017 23:02<br>
To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.<wbr>freeswitch.org</a><br>
Subject: Re: [Freeswitch-users] txfax unexpected message received<br>
<br>
yes, also from the command line:<br>
<br>
originate {fax_verbose=true,<br>
fax_use_ecm=true}sofia/<wbr>gateway/CS2K/939165135 &txfax(/root/txfax.tiff)<br>
<br>
<br>
originate<br>
{fax_verbose=true,fax_use_ecm=<wbr>false}sofia/gateway/CS2K/<wbr>939165135<br>
&txfax(/root/txfax.tiff)<br>
<br>
<br>
<br>
my current spandsp.xml<br>
<br>
         <fax-settings><br>
                 <param name="enable-t38" value="true"/><br>
                 <param name="use-ecm" value="true"/><br>
                 <param name="verbose" value="false"/><br>
                 <param name="disable-v17" value="false"/><br>
                 <param name="ident" value="_undef_"/><br>
                 <param name="header" value="_undef_"/><br>
                 <param name="spool-dir" value="/tmp"/><br>
                 <param name="file-prefix" value="faxrx"/><br>
         </fax-settings><br>
<br>
<br>
On 11/24/2017 08:54 PM, Madovsky wrote:<br>
> Did you try to activate ecm?<br>
><br>
> <param name="use-ecm" value="true"/><br>
><br>
> On 11/24/2017 11:42 AM, António Silva wrote:<br>
>> Hi Shaun,<br>
>><br>
>> Thanks for the reply.<br>
>><br>
>> Yes, mod_fax was merged into mod_spandsp. also i always try to use<br>
>> t38 but in this case the gateway in front (an old old nortel cs2k) is<br>
>> worst than using t30.<br>
>><br>
>> I also read that old message but for what i could understand it was<br>
>> some echo issue but i don't think is the problem here i don't reach<br>
>> the training part..., i also sending the fax at lower speed... Also<br>
>> using this same trunk (similar path) with only t30 to other<br>
>> destinations works ok, so I'm think on some sort of incompatibility<br>
>> on the transmitted page size, training method or other reason i don't<br>
>> know..<br>
>><br>
>><br>
>> Yes the full log was attached in the email, didn't show up to you?<br>
>><br>
>><br>
>> I put it into pastebin:<br>
>>  <a href="https://pastebin.freeswitch.org/view/3c433ca6" rel="noreferrer" target="_blank">https://pastebin.freeswitch.<wbr>org/view/3c433ca6</a><br>
>><br>
>><br>
>> On 11/24/2017 07:20 PM, Shaun Stokes wrote:<br>
>>> Haven't seen that one before, we use T.38 pass through over G711 and<br>
>>> never had any problems that can't be explained, possibly an<br>
>>> incompatible destination.<br>
>>><br>
>>> I've found this, they're using mod_fax not mod_spandsp_fax but the<br>
>>> error is similar might help point you in the right direction:<br>
>>> <a href="http://lists.freeswitch.org/pipermail/freeswitch-users/2009-September/047151.html" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>pipermail/freeswitch-users/<wbr>2009-September/047151.html</a><br>
>>><br>
>>><br>
>>> Would be useful to see the logs for mod_spandsp_fax from the<br>
>>> beginning, might be some hidden clues. Make sure you enable verbose<br>
>>> in 'conf/autoload_configs/<wbr>spandsp.conf.xml'.<br>
>>><br>
>>> Shaun<br>
>>><br>
>>> -----Original Message-----<br>
>>> From: FreeSWITCH-users<br>
>>> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-<wbr>bounces@lists.freeswitch.org</a>] On Behalf Of<br>
>>> António Silva<br>
>>> Sent: 24 November 2017 17:53<br>
>>> To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.<wbr>freeswitch.org</a><br>
>>> Subject: [Freeswitch-users] txfax unexpected message received<br>
>>><br>
>>> Hi,<br>
>>><br>
>>> when sending a fax to a particular destination it fails with "Fax<br>
>>> processing not successful - result (13) Unexpected message received."<br>
>>> To other destination is working ok, i don't know what is the<br>
>>> particularity on this one that makes it fail...<br>
>>><br>
>>>   From the logs i see:<br>
>>><br>
>>> 2017-11-24 18:30:05.625309 [DEBUG] mod_spandsp_fax.c:276 FLOW T.30<br>
>>> Rx: CFR with final frame tag<br>
>>> 2017-11-24 18:30:05.625309 [DEBUG] mod_spandsp_fax.c:276 FLOW T.30<br>
>>> Rx: ff 13 84<br>
>>> 2017-11-24 18:30:05.625309 [DEBUG] mod_spandsp_fax.c:276 FLOW T.30<br>
>>> Rx final frame in state D<br>
>>> 2017-11-24 18:30:05.625309 [DEBUG] mod_spandsp_fax.c:276 FLOW T.30<br>
>>> Unexpected CFR frame in state D<br>
>>><br>
>>> I guess that is not suppose to receive confirmed to received..<br>
>>> because the training is not yet done. Can i do anything from my side<br>
>>> to make it work?<br>
>>> I've tried with different resolutions but no luck.. i try with t38<br>
>>> but this gw the t38 is not well implemented and also didn't work.<br>
>>><br>
>>><br>
>>><br>
>>> To send the fax i just do:<br>
>>> originate {fax_verbose=true}sofia/<wbr>gateway/CS2K/939165135<br>
>>> &txfax(/root/txfax.tiff)<br>
>>><br>
>>> Attach full log.<br>
>>><br>
>>><br>
>>> Thanks for the help.<br>
>>><br>
>>><br>
>>> --<br>
>>> Saludos / Regards / Cumprimentos<br>
>>> António Silva<br>
>>><br>
>>><br>
>>><br>
>>> ______________________________<wbr>______________________________<wbr>__________<br>
>>> This message has been checked for all known viruses by MessageLabs<br>
>>> Virus Scanning Service.<br>
>>> ______________________________<wbr>______________________________<wbr>__________<br>
>>><br>
>>> ______________________________<wbr>______________________________<wbr>__________<br>
>>> This message has been checked for all known viruses by MessageLabs<br>
>>> Virus Scanning Service.<br>
>>> ______________________________<wbr>______________________________<wbr>__________<br>
>>> ______________________________<wbr>______________________________<wbr>_____________<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.<wbr>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.<wbr>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.<wbr>freeswitch.org</a><br>
>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
>>><br>
>>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>><br>
><br>
><br>
> ______________________________<wbr>______________________________<wbr>_____________<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.<wbr>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.<wbr>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.<wbr>freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<br>
--<br>
Saludos / Regards / Cumprimentos<br>
António Silva<br>
<br>
<br>
______________________________<wbr>______________________________<wbr>_____________<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.<wbr>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.<wbr>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.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<br>
______________________________<wbr>______________________________<wbr>__________<br>
This message has been checked for all known viruses by MessageLabs Virus Scanning Service.<br>
______________________________<wbr>______________________________<wbr>__________<br>
<br>
______________________________<wbr>______________________________<wbr>__________<br>
This message has been checked for all known viruses by  MessageLabs Virus Scanning Service.<br>
______________________________<wbr>______________________________<wbr>__________<br>
______________________________<wbr>______________________________<wbr>_____________<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.<wbr>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.<wbr>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.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a></div></div></blockquote></div><br></div>