[Freeswitch-users] txfax unexpected message received

Daniel Greenwald dig1234 at gmail.com
Mon Nov 27 04:30:20 UTC 2017


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:

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


On Fri, Nov 24, 2017 at 6:40 PM, Shaun Stokes <
shaun.stokes at itec-support.co.uk> wrote:

> Just noticed your log attachment, I'm unsure as to the exact cause, echo
> could be a possibility.
>
> 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.
>
> -----Original Message-----
> From: FreeSWITCH-users [mailto:freeswitch-users-
> bounces at lists.freeswitch.org] On Behalf Of António Silva
> Sent: 24 November 2017 23:02
> To: freeswitch-users at lists.freeswitch.org
> Subject: Re: [Freeswitch-users] txfax unexpected message received
>
> yes, also from the command line:
>
> originate {fax_verbose=true,
> fax_use_ecm=true}sofia/gateway/CS2K/939165135 &txfax(/root/txfax.tiff)
>
>
> originate
> {fax_verbose=true,fax_use_ecm=false}sofia/gateway/CS2K/939165135
> &txfax(/root/txfax.tiff)
>
>
>
> my current spandsp.xml
>
>          <fax-settings>
>                  <param name="enable-t38" value="true"/>
>                  <param name="use-ecm" value="true"/>
>                  <param name="verbose" value="false"/>
>                  <param name="disable-v17" value="false"/>
>                  <param name="ident" value="_undef_"/>
>                  <param name="header" value="_undef_"/>
>                  <param name="spool-dir" value="/tmp"/>
>                  <param name="file-prefix" value="faxrx"/>
>          </fax-settings>
>
>
> On 11/24/2017 08:54 PM, Madovsky wrote:
> > Did you try to activate ecm?
> >
> > <param name="use-ecm" value="true"/>
> >
> > On 11/24/2017 11:42 AM, António Silva wrote:
> >> Hi Shaun,
> >>
> >> Thanks for the reply.
> >>
> >> Yes, mod_fax was merged into mod_spandsp. also i always try to use
> >> t38 but in this case the gateway in front (an old old nortel cs2k) is
> >> worst than using t30.
> >>
> >> I also read that old message but for what i could understand it was
> >> some echo issue but i don't think is the problem here i don't reach
> >> the training part..., i also sending the fax at lower speed... Also
> >> using this same trunk (similar path) with only t30 to other
> >> destinations works ok, so I'm think on some sort of incompatibility
> >> on the transmitted page size, training method or other reason i don't
> >> know..
> >>
> >>
> >> Yes the full log was attached in the email, didn't show up to you?
> >>
> >>
> >> I put it into pastebin:
> >>  https://pastebin.freeswitch.org/view/3c433ca6
> >>
> >>
> >> On 11/24/2017 07:20 PM, Shaun Stokes wrote:
> >>> Haven't seen that one before, we use T.38 pass through over G711 and
> >>> never had any problems that can't be explained, possibly an
> >>> incompatible destination.
> >>>
> >>> I've found this, they're using mod_fax not mod_spandsp_fax but the
> >>> error is similar might help point you in the right direction:
> >>> http://lists.freeswitch.org/pipermail/freeswitch-users/
> 2009-September/047151.html
> >>>
> >>>
> >>> Would be useful to see the logs for mod_spandsp_fax from the
> >>> beginning, might be some hidden clues. Make sure you enable verbose
> >>> in 'conf/autoload_configs/spandsp.conf.xml'.
> >>>
> >>> Shaun
> >>>
> >>> -----Original Message-----
> >>> From: FreeSWITCH-users
> >>> [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of
> >>> António Silva
> >>> Sent: 24 November 2017 17:53
> >>> To: freeswitch-users at lists.freeswitch.org
> >>> Subject: [Freeswitch-users] txfax unexpected message received
> >>>
> >>> Hi,
> >>>
> >>> when sending a fax to a particular destination it fails with "Fax
> >>> processing not successful - result (13) Unexpected message received."
> >>> To other destination is working ok, i don't know what is the
> >>> particularity on this one that makes it fail...
> >>>
> >>>   From the logs i see:
> >>>
> >>> 2017-11-24 18:30:05.625309 [DEBUG] mod_spandsp_fax.c:276 FLOW T.30
> >>> Rx: CFR with final frame tag
> >>> 2017-11-24 18:30:05.625309 [DEBUG] mod_spandsp_fax.c:276 FLOW T.30
> >>> Rx: ff 13 84
> >>> 2017-11-24 18:30:05.625309 [DEBUG] mod_spandsp_fax.c:276 FLOW T.30
> >>> Rx final frame in state D
> >>> 2017-11-24 18:30:05.625309 [DEBUG] mod_spandsp_fax.c:276 FLOW T.30
> >>> Unexpected CFR frame in state D
> >>>
> >>> I guess that is not suppose to receive confirmed to received..
> >>> because the training is not yet done. Can i do anything from my side
> >>> to make it work?
> >>> I've tried with different resolutions but no luck.. i try with t38
> >>> but this gw the t38 is not well implemented and also didn't work.
> >>>
> >>>
> >>>
> >>> To send the fax i just do:
> >>> originate {fax_verbose=true}sofia/gateway/CS2K/939165135
> >>> &txfax(/root/txfax.tiff)
> >>>
> >>> Attach full log.
> >>>
> >>>
> >>> Thanks for the help.
> >>>
> >>>
> >>> --
> >>> Saludos / Regards / Cumprimentos
> >>> António Silva
> >>>
> >>>
> >>>
> >>> ______________________________________________________________________
> >>> This message has been checked for all known viruses by MessageLabs
> >>> Virus Scanning Service.
> >>> ______________________________________________________________________
> >>>
> >>> ______________________________________________________________________
> >>> This message has been checked for all known viruses by MessageLabs
> >>> Virus Scanning Service.
> >>> ______________________________________________________________________
> >>> ____________________________________________________________
> _____________
> >>>
> >>> Professional FreeSWITCH Consulting Services:
> >>> consulting at freeswitch.org
> >>> http://www.freeswitchsolutions.com
> >>>
> >>> Official FreeSWITCH Sites
> >>> http://www.freeswitch.org
> >>> http://confluence.freeswitch.org
> >>> http://www.cluecon.com
> >>>
> >>> FreeSWITCH-users mailing list
> >>> FreeSWITCH-users at lists.freeswitch.org
> >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/
> options/freeswitch-users
> >>>
> >>> http://www.freeswitch.org
> >>
> >
> >
> > ____________________________________________________________
> _____________
> > Professional FreeSWITCH Consulting Services:
> > consulting at freeswitch.org
> > http://www.freeswitchsolutions.com
> >
> > Official FreeSWITCH Sites
> > http://www.freeswitch.org
> > http://confluence.freeswitch.org
> > http://www.cluecon.com
> >
> > FreeSWITCH-users mailing list
> > FreeSWITCH-users at lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > http://www.freeswitch.org
>
> --
> Saludos / Regards / Cumprimentos
> António Silva
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
> ______________________________________________________________________
> This message has been checked for all known viruses by MessageLabs Virus
> Scanning Service.
> ______________________________________________________________________
>
> ______________________________________________________________________
> This message has been checked for all known viruses by  MessageLabs Virus
> Scanning Service.
> ______________________________________________________________________
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20171126/415a02fc/attachment.html>


More information about the FreeSWITCH-users mailing list