low quality document conversion on email to fax

Post your configuration issues while installing ictfax

low quality document conversion on email to fax

Postby jdeverse » Mon Jun 08, 2015 8:33 pm

Hello all, I recently got a demo server up running of ICTFAX. I am very pleased with the features, and the primary feature I was looking for was an email to fax gateway. The only problem I have is that the delivered fax appears to be a very low resolution, so the text is barely readable, and the graphics look dithered.

Sending the same document via a standard fax server client yields a good looking fax on the other end, so I'm hoping there are some configuration changes that can be made to improve the quality of the pdf file conversion to the ICTFAX FAX job format.

I have copied the first pages of my freeswitch cli output.


Thank you much.

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2015.06.08 13:32:18 =~=~=~=~=~=~=~=~=~=~=~=
2015-06-08 13:35:01.588080 [DEBUG] switch_ivr_originate.c:2100 Parsing global variables
2015-06-08 13:35:01.588080 [DEBUG] switch_event.c:1698 Parsing variable [application_result]=[success]
2015-06-08 13:35:01.588080 [DEBUG] switch_event.c:1698 Parsing variable [api_hangup_hook]=[lua /usr/ictcore/bin/freeswitch/spool_failed.lua 38 37 error]
2015-06-08 13:35:01.588080 [DEBUG] switch_event.c:1698 Parsing variable [session_in_hangup_hook]=[true]
2015-06-08 13:35:01.588080 [DEBUG] switch_event.c:1698 Parsing variable [ignore_early_media]=[true]
2015-06-08 13:35:01.588080 [DEBUG] switch_event.c:1698 Parsing variable [codec_string]=[PCMU]
2015-06-08 13:35:01.588080 [DEBUG] switch_event.c:1698 Parsing variable [spool_status]=[connected]
2015-06-08 13:35:01.588080 [DEBUG] switch_event.c:1698 Parsing variable [spool_id]=[38]
2015-06-08 13:35:01.588080 [DEBUG] switch_event.c:1698 Parsing variable [origination_caller_id_number]=[4999]
2015-06-08 13:35:01.588080 [DEBUG] switch_event.c:1698 Parsing variable [fax_enable_t38_request]=[true]
2015-06-08 13:35:01.588080 [DEBUG] switch_event.c:1698 Parsing variable [fax_enable_t38]=[true]
2015-06-08 13:35:01.588080 [DEBUG] switch_event.c:1698 Parsing variable [fax_verbose]=[true]
2015-06-08 13:35:01.588080 [DEBUG] switch_event.c:1698 Parsing variable [fax_use_ecm]=[true]
2015-06-08 13:35:01.588080 [NOTICE] switch_channel.c:1075 New Channel sofia/ictcore/5959 [d642b2e0-0e1d-11e5-a512-6f8bff7a4b3b]
2015-06-08 13:35:01.588080 [DEBUG] mod_sofia.c:4701 (sofia/ictcore/5959) State Change CS_NEW -> CS_INIT
2015-06-08 13:35:01.588080 [DEBUG] switch_core_session.c:1396 Send signal sofia/ictcore/5959 [BREAK]
2015-06-08 13:35:01.588080 [DEBUG] switch_core_state_machine.c:472 (sofia/ictcore/5959) Running State Change CS_INIT
2015-06-08 13:35:01.588080 [DEBUG] switch_core_state_machine.c:512 (sofia/ictcore/5959) State INIT
2015-06-08 13:35:01.588080 [DEBUG] mod_sofia.c:87 sofia/ictcore/5959 SOFIA INIT
2015-06-08 13:35:01.588080 [DEBUG] sofia_glue.c:1236 sofia/ictcore/5959 sending invite version: 1.4.19 64bit
Local SDP:
v=0
o=FreeSWITCH 1433778175 1433778176 IN IP4 172.26.251.113
s=FreeSWITCH
c=IN IP4 172.26.251.113
t=0 0
m=audio 17526 RTP/AVP 0 101 13
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv

2015-06-08 13:35:01.588080 [DEBUG] switch_core_state_machine.c:40 sofia/ictcore/5959 Standard INIT
2015-06-08 13:35:01.588080 [DEBUG] switch_core_state_machine.c:48 (sofia/ictcore/5959) State Change CS_INIT -> CS_ROUTING
2015-06-08 13:35:01.588080 [DEBUG] switch_core_session.c:1396 Send signal sofia/ictcore/5959 [BREAK]
2015-06-08 13:35:01.588080 [DEBUG] switch_core_state_machine.c:512 (sofia/ictcore/5959) State INIT going to sleep
2015-06-08 13:35:01.588080 [DEBUG] switch_core_state_machine.c:472 (sofia/ictcore/5959) Running State Change CS_ROUTING
2015-06-08 13:35:01.588080 [DEBUG] switch_core_state_machine.c:528 (sofia/ictcore/5959) State ROUTING
2015-06-08 13:35:01.588080 [DEBUG] mod_sofia.c:123 sofia/ictcore/5959 SOFIA ROUTING
2015-06-08 13:35:01.588080 [DEBUG] switch_ivr_originate.c:67 (sofia/ictcore/5959) State Change CS_ROUTING -> CS_CONSUME_MEDIA
2015-06-08 13:35:01.588080 [DEBUG] switch_core_session.c:1396 Send signal sofia/ictcore/5959 [BREAK]
2015-06-08 13:35:01.588080 [DEBUG] switch_core_state_machine.c:528 (sofia/ictcore/5959) State ROUTING going to sleep
2015-06-08 13:35:01.588080 [DEBUG] switch_core_state_machine.c:472 (sofia/ictcore/5959) Running State Change CS_CONSUME_MEDIA
2015-06-08 13:35:01.588080 [DEBUG] switch_core_state_machine.c:547 (sofia/ictcore/5959) State CONSUME_MEDIA
2015-06-08 13:35:01.588080 [DEBUG] switch_core_state_machine.c:547 (sofia/ictcore/5959) State CONSUME_MEDIA going to sleep
2015-06-08 13:35:01.588080 [DEBUG] switch_core_session.c:1061 Send signal sofia/ictcore/5959 [BREAK]
2015-06-08 13:35:01.588080 [DEBUG] sofia.c:6627 Channel sofia/ictcore/5959 entering state [calling][0]
2015-06-08 13:35:01.725552 [DEBUG] switch_core_session.c:1061 Send signal sofia/ictcore/5959 [BREAK]
2015-06-08 13:35:01.725552 [DEBUG] switch_core_session.c:1061 Send signal sofia/ictcore/5959 [BREAK]
2015-06-08 13:35:01.725552 [INFO] sofia.c:1203 sofia/ictcore/5959 Update Callee ID to "Outbound Call" <5959;phone-context=UnknownUnknown>
2015-06-08 13:35:01.725552 [DEBUG] sofia.c:6627 Channel sofia/ictcore/5959 entering state [proceeding][180]
2015-06-08 13:35:01.725552 [NOTICE] sofia.c:6729 Ring-Ready sofia/ictcore/5959!
2015-06-08 13:35:01.725552 [DEBUG] switch_channel.c:3297 (sofia/ictcore/5959) Callstate Change DOWN -> RINGING
2015-06-08 13:35:01.745554 [DEBUG] switch_core_session.c:1061 Send signal sofia/ictcore/5959 [BREAK]
2015-06-08 13:35:01.745554 [DEBUG] switch_core_session.c:1061 Send signal sofia/ictcore/5959 [BREAK]
2015-06-08 13:35:01.745554 [DEBUG] sofia.c:6627 Channel sofia/ictcore/5959 entering state [completing][200]
2015-06-08 13:35:01.745554 [DEBUG] sofia.c:6637 Remote SDP:
v=0

o=- 897417 1 IN IP4 172.26.251.10

s=-

c=IN IP4 172.26.251.75

t=0 0

m=audio 5582 RTP/AVP 0 101 111

c=IN IP4 172.26.251.75

a=rtpmap:101 telephone-event/8000

a=fmtp:101 0-15

a=rtpmap:111 X-nt-inforeq/8000

a=ptime:20

a=maxptime:20


2015-06-08 13:35:01.765564 [DEBUG] switch_core_session.c:1061 Send signal sofia/ictcore/5959 [BREAK]
2015-06-08 13:35:01.765564 [DEBUG] sofia.c:6627 Channel sofia/ictcore/5959 entering state [ready][200]
2015-06-08 13:35:01.765564 [DEBUG] switch_core_session.c:1061 Send signal sofia/ictcore/5959 [BREAK]
2015-06-08 13:35:01.765564 [DEBUG] switch_core_media.c:3678 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2015-06-08 13:35:01.765564 [DEBUG] switch_core_media.c:3733 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
2015-06-08 13:35:01.765564 [DEBUG] switch_core_media.c:3594 Set telephone-event payload to 101
2015-06-08 13:35:01.765564 [DEBUG] switch_core_media.c:3678 Audio Codec Compare [X-nt-inforeq:111:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
2015-06-08 13:35:01.765564 [DEBUG] switch_core_media.c:2507 Set Codec sofia/ictcore/5959 PCMU/8000 20 ms 160 samples 64000 bits 1 channels
2015-06-08 13:35:01.765564 [DEBUG] switch_core_codec.c:111 sofia/ictcore/5959 Original read codec set to PCMU:0
2015-06-08 13:35:01.765564 [DEBUG] switch_core_media.c:3932 Set 2833 dtmf send payload to 101
2015-06-08 13:35:01.765564 [DEBUG] switch_core_media.c:5177 AUDIO RTP [sofia/ictcore/5959] 172.26.251.113 port 17526 -> 172.26.251.75 port 5582 codec: 0 ms: 20
2015-06-08 13:35:01.765564 [DEBUG] switch_rtp.c:3569 Starting timer [soft] 160 bytes per 20ms
2015-06-08 13:35:01.765564 [DEBUG] switch_core_media.c:5475 Set 2833 dtmf send payload to 101
2015-06-08 13:35:01.765564 [DEBUG] switch_core_media.c:5481 Set 2833 dtmf receive payload to 101
2015-06-08 13:35:01.765564 [DEBUG] switch_core_media.c:5503 sofia/ictcore/5959 Set rtp dtmf delay to 40
2015-06-08 13:35:01.765564 [NOTICE] sofia.c:7488 Channel [sofia/ictcore/5959] has been answered
2015-06-08 13:35:01.765564 [DEBUG] switch_channel.c:3711 (sofia/ictcore/5959) Callstate Change RINGING -> ACTIVE
2015-06-08 13:35:01.765564 [DEBUG] switch_ivr_originate.c:3577 Originate Resulted in Success: [sofia/ictcore/5959]
2015-06-08 13:35:01.765564 [INFO] switch_channel.c:3082 sofia/ictcore/5959 Flipping CID from "" <4999> to "Outbound Call" <5959;phone-context=UnknownUnknown>
2015-06-08 13:35:01.765564 [DEBUG] mod_commands.c:4469 (sofia/ictcore/5959) State Change CS_CONSUME_MEDIA -> CS_EXECUTE
2015-06-08 13:35:01.765564 [DEBUG] switch_core_session.c:1396 Send signal sofia/ictcore/5959 [BREAK]
2015-06-08 13:35:01.765564 [DEBUG] switch_core_state_machine.c:472 (sofia/ictcore/5959) Running State Change CS_EXECUTE
2015-06-08 13:35:01.765564 [DEBUG] switch_core_state_machine.c:535 (sofia/ictcore/5959) State EXECUTE
2015-06-08 13:35:01.765564 [DEBUG] mod_sofia.c:178 sofia/ictcore/5959 SOFIA EXECUTE
2015-06-08 13:35:01.765564 [DEBUG] switch_core_state_machine.c:258 sofia/ictcore/5959 Standard EXECUTE
EXECUTE sofia/ictcore/5959 lua(/usr/ictcore/bin/freeswitch/application.lua 38 37 success)
EXECUTE sofia/ictcore/5959 curl(http://localhost/ictcore/gateway.php post spool_id=38&application_data=%7B%22result%22%3A%22success%22%7D&application_id=37&gateway_flag=8&password=bar&username=foo)
2015-06-08 13:35:01.786493 [DEBUG] mod_curl.c:182 method: post, url: http://localhost/ictcore/gateway.php, content-type: (null)
2015-06-08 13:35:01.786493 [DEBUG] mod_curl.c:211 Post data: spool_id=38&application_data={"result":"success"}&application_id=37&gateway_flag=8&password=bar&username=foo
EXECUTE sofia/ictcore/5959 playback(silence_stream://2000)
2015-06-08 13:35:01.905631 [DEBUG] switch_ivr_play_say.c:1314 Codec Activated L16@8000hz 1 channels 20ms
2015-06-08 13:35:01.925554 [DEBUG] switch_rtp.c:5884 Correct ip/port confirmed.
2015-06-08 13:35:03.885558 [DEBUG] switch_ivr_play_say.c:1747 done playing file silence_stream://2000
EXECUTE sofia/ictcore/5959 txfax(/usr/ictcore/data/document/document_2_8.tif)
2015-06-08 13:35:03.885558 [DEBUG] mod_spandsp_fax.c:1449 Raw read codec activation Success L16 20000
2015-06-08 13:35:03.885558 [DEBUG] switch_core_codec.c:221 sofia/ictcore/5959 Push codec L16:100
2015-06-08 13:35:03.885558 [DEBUG] mod_spandsp_fax.c:1466 Raw write codec activation Success L16
2015-06-08 13:35:05.165558 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 HDLC signal status is Carrier up (-2) in state T
2015-06-08 13:35:05.185558 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 HDLC signal status is Abort (-8) in state T
2015-06-08 13:35:05.405555 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 HDLC signal status is Framing OK (-6) in state T
2015-06-08 13:35:05.405555 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 Changing from phase A_CNG to B_RX
2015-06-08 13:35:05.405555 [DEBUG] mod_spandsp_fax.c:286 FLOW FAX Set rx type 4
2015-06-08 13:35:05.405555 [DEBUG] mod_spandsp_fax.c:286 FLOW FAX Set tx type 0
2015-06-08 13:35:05.445556 [DEBUG] switch_core_session.c:1061 Send signal sofia/ictcore/5959 [BREAK]
2015-06-08 13:35:05.445556 [DEBUG] switch_core_session.c:1061 Send signal sofia/ictcore/5959 [BREAK]
2015-06-08 13:35:05.465553 [DEBUG] sofia.c:6627 Channel sofia/ictcore/5959 entering state [received][100]
2015-06-08 13:35:05.465553 [DEBUG] sofia.c:6637 Remote SDP:
v=0

o=- 897417 2 IN IP4 172.26.251.10

s=-

c=IN IP4 172.26.251.75

t=0 0

m=image 5582 udptl t38

c=IN IP4 172.26.251.75


2015-06-08 13:35:05.485560 [DEBUG] mod_spandsp_fax.c:1047 T38 SDP Origin = -
2015-06-08 13:35:05.485560 [DEBUG] mod_spandsp_fax.c:1048 T38FaxVersion = 0
2015-06-08 13:35:05.485560 [DEBUG] mod_spandsp_fax.c:1049 T38MaxBitRate = 14400
2015-06-08 13:35:05.485560 [DEBUG] mod_spandsp_fax.c:1050 T38FaxFillBitRemoval = 0
2015-06-08 13:35:05.485560 [DEBUG] mod_spandsp_fax.c:1051 T38FaxTranscodingMMR = 0
2015-06-08 13:35:05.485560 [DEBUG] mod_spandsp_fax.c:1052 T38FaxTranscodingJBIG = 0
2015-06-08 13:35:05.485560 [DEBUG] mod_spandsp_fax.c:1053 T38FaxRateManagement = 'transferredTCF'
2015-06-08 13:35:05.485560 [DEBUG] mod_spandsp_fax.c:1054 T38FaxMaxBuffer = 500
2015-06-08 13:35:05.485560 [DEBUG] mod_spandsp_fax.c:1055 T38FaxMaxDatagram = 500
2015-06-08 13:35:05.485560 [DEBUG] mod_spandsp_fax.c:1056 T38FaxUdpEC = 't38UDPRedundancy'
2015-06-08 13:35:05.485560 [DEBUG] mod_spandsp_fax.c:1057 T38VendorInfo = ''
2015-06-08 13:35:05.485560 [DEBUG] mod_spandsp_fax.c:1058 ip = '172.26.251.75'
2015-06-08 13:35:05.485560 [DEBUG] mod_spandsp_fax.c:1060 port = 5582
2015-06-08 13:35:05.485560 [DEBUG] switch_core_media.c:7766 Remote address:port [172.26.251.75:5582] has not changed.
2015-06-08 13:35:05.485560 [DEBUG] switch_core_media.c:7411 sofia/ictcore/5959 image media sdp:
v=0
o=FreeSWITCH 1433778175 1433778177 IN IP4 172.26.251.113
s=FreeSWITCH
c=IN IP4 172.26.251.113
t=0 0
m=image 17526 udptl t38
a=T38FaxVersion:0
a=T38MaxBitRate:14400
a=T38FaxRateManagement:transferredTCF
a=T38FaxMaxBuffer:500
a=T38FaxMaxDatagram:400
a=T38FaxUdpEC:t38UDPRedundancy
jdeverse
 
Posts: 2
Joined: Mon Jun 08, 2015 8:19 pm

Re: low quality document conversion on email to fax

Postby jdeverse » Mon Jun 08, 2015 8:36 pm

These two different excerpts from the logs also seem to provide some good info.

2015-06-08 13:35:09.325554 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .... ...0= Store and forward Internet fax (T.37): Not set
2015-06-08 13:35:09.325554 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .... .0..= Real-time Internet fax (T.38): Not set
2015-06-08 13:35:09.325554 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .... 0...= 3G mobile network: Not set
2015-06-08 13:35:09.325554 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .... ..1.= Receive fax: Set
2015-06-08 13:35:09.325554 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 ..10 00..= Selected data signalling rate: V.17 14400bps
2015-06-08 13:35:09.325554 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .0.. ....= R8x7.7lines/mm and/or 200x200pels/25.4mm: Not set
2015-06-08 13:35:09.325554 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 0... ....= 2-D coding: Not set
2015-06-08 13:35:09.325554 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .... ..00= Recording width: 215mm +- 1%
2015-06-08 13:35:09.325554 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .... 10..= Recording length: Unlimited
2015-06-08 13:35:09.325554 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .111 ....= Minimum scan line time: 0ms
2015-06-08 13:35:09.325554 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 1... ....= Extension indicator: Set
2015-06-08 13:35:09.325554 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .... ..0.= Compressed/uncompressed mode: Compressed
2015-06-08 13:35:09.325554 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .... .1..= Error correction mode (ECM): ECM
2015-06-08 13:35:09.325554 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .... 0...= Frame size: 256 octets
2015-06-08 13:35:09.325554 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .1.. ....= T.6 coding: Set



mod_spandsp_fax.c:439 Page no = 1
2015-06-08 13:35:47.365555 [DEBUG] mod_spandsp_fax.c:440 Image type = bi-level (bi-level in the file)
2015-06-08 13:35:47.365555 [DEBUG] mod_spandsp_fax.c:441 Image size = 1728 x 1094 pixels (1728 x 1078 pixels in the file)
2015-06-08 13:35:47.365555 [DEBUG] mod_spandsp_fax.c:442 Image resolution = 8040/m x 3850/m (8031/m x 3858/m in the file)
2015-06-08 13:35:47.365555 [DEBUG] mod_spandsp_fax.c:443 Compression = T.6 (8)
2015-06-08 13:35:47.365555 [DEBUG] mod_spandsp_fax.c:444 Compressed image size = 48365 bytes
2015-06-08 13:35:47.365555 [DEBUG] mod_spandsp_fax.c:445 Bad rows = 0
2015-06-08 13:35:47.365555 [DEBUG] mod_spandsp_fax.c:446 Longest bad row run = 0
jdeverse
 
Posts: 2
Joined: Mon Jun 08, 2015 8:19 pm


Return to Configuration

Who is online

Users browsing this forum: No registered users and 2 guests