always disable ECM for fax calls over IP... its the 1st rule of thumb for VoIP faxing :=)

On Fri, Nov 11, 2011 at 2:48 PM, Alex Crow <acrow@integrafin.co.uk> wrote:
On 11/11/11 12:52, Alex Crow wrote:
> If anyone's interested, I've get outbound fax semi-working with this setup:
>
> <extension name="faxoutviamitel" continue="true">
> <condition field="destination_number" expression="^9(\d{4})$">
> <action application="set" data="absolute_codec_string=PCMA"/>
> <action application="set" data="fax_enable_t38=true"/>
> <action application="set" data="sip_execute_on_image=t38_gateway self
> nocng"/>
> <action application="bridge" data="sofia/external/$1@10.10.0.2"/>
> </condition>
> </extension>
>
> t38modem is started like this:
>
> t38modem -ttt -o /var/log/t38modem.log --no-h323 -u t38modem
> --sip-register t38modem@192.168.20.245,secret --sip-listen udp\$*:6060
> --ptty +/dev/ttyT38-1 --route
> "modem:.*=sip:<dn>@192.168.20.245;OPAL-Force-Fax-Mode=true" --route
> "sip:.*=modem:<dn>"
>
>
> The remaining problem is that on the receiving end we only have the top
> centimetre or two of the image. I think this may be a tiff library issue
> but I'm not sure.
>
> Cheers
>
> Alex
>

In the end I had to disable ECM in the Hylafax modem definition for
t38modem, this was what was causing the image truncation. Odd, because
both t38modem and spandsp ostensibly support ECM. I'm wondering if I was
sending audio out directly over TDM rather than via a SIP gateway using
G.711 then ECM would be OK... probably a timing issue.

Cheers
Alex

--
This message is intended only for the addressee and may contain
confidential information.  Unless you are that person, you may not
disclose its contents or use it in any way and are requested to delete
the message along with any attachments and notify us immediately.

"Transact" is operated by Integrated Financial Arrangements plc
Domain House, 5-7 Singer Street, London  EC2A 4BQ
Tel: (020) 7608 4900 Fax: (020) 7608 5300
(Registered office: as above; Registered in England and Wales under number: 3727592)
Authorised and regulated by the Financial Services Authority (entered on the FSA Register; number: 190856)


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org