Channel: ZAP/g1/12345678
MaxRetries: 0
RetryTime: 10
WaitTime: 50
Application:SendFAX
Data:/tmp/test.tiff
cgi.net wrote:
- Code: Select all
Channel: ZAP/g1/12345678
MaxRetries: 0
RetryTime: 10
WaitTime: 50
Application:SendFAX
Data:/tmp/test.tiff
save the above into a call file then move this file to /var/spool/asterisk/outgoing
Good luck!
-- Attempting call on ZAP/g3/20958877 for application SendFAX(/tmp/leo.tiff) (Retry 1)
> Channel Zap/3-1 was answered.
> Launching SendFAX(/tmp/leo.tiff) on Zap/3-1
-- Channel 'Zap/3-1' is sending fax '/tmp/leo.tiff'
[May 18 15:02:35] ERROR[23497]: res_fax_digium.c:1861 dgm_fax_start: fax handle: 0 failed to queue document '/tmp/leo.tiff'
[May 18 15:02:35] ERROR[23497]: res_fax.c:980 generic_fax_exec: channel 'Zap/3-1' fax session '4' failure, reason: 'failed to start fax session'
[May 18 15:02:35] WARNING[23498]: res_fax_digium.c:583 update_registry_statistics: unknown fax session result '0'
[May 18 15:02:35] WARNING[23498]: res_fax_digium.c:463 P30RESULT_to_str: unhandled fax result 'RSLT_IN_PROGRESS'
-- Channel 'Zap/3-1' fax session '4' is complete, result: 'FAILED' (FAX_FAILURE_UNKNOWN), error: 'NO_ERROR', pages: 0, resolution: 'unknown', transfer rate: '2400', remoteSID: ''
-- Hungup 'Zap/3-1'
[May 18 15:02:35] NOTICE[23497]: pbx_spool.c:366 attempt_thread: Call completed to ZAP/g3/20958877
sethsdad0627 wrote:Try changing your call file to read like this
Channel: ZAP/g1/ww12345678
Callerid: SIP/100 *use an extension in your list
MaxRetries: 1
RetryTime: 10
WaitTime: 50
Application:SendFAX
Data:/tmp/test.tiff
sethsdad0627 wrote:do "set fax debug on" from cli
run the call file again
post your CLI output from the call
[root@tfsbbackup asterisk]# asterisk -rvvvvvvvvvvvvvvvvvvvvvv
Asterisk 1.4.23, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
== Parsing '/etc/asterisk/asterisk.conf': Found
== Parsing '/etc/asterisk/extconfig.conf': Found
Connected to Asterisk 1.4.23 currently running on tfsbbackup (pid = 2149)
Verbosity is at least 22
-- Remote UNIX connection
-- Attempting call on ZAP/g3/ww0178859497 for application SendFAX(/tmp/leo.tiff) (Retry 1)
> Channel Zap/3-1 was answered.
> Launching SendFAX(/tmp/leo.tiff) on Zap/3-1
-- Channel 'Zap/3-1' is sending fax '/tmp/leo.tiff'
[May 27 12:00:54] ERROR[6698]: res_fax_digium.c:1861 dgm_fax_start: fax handle: 0 failed to queue document '/tmp/leo.tiff'
[May 27 12:00:54] ERROR[6698]: res_fax.c:980 generic_fax_exec: channel 'Zap/3-1' fax session '6' failure, reason: 'failed to start fax session'
[May 27 12:00:54] WARNING[6699]: res_fax_digium.c:583 update_registry_statistics: unknown fax session result '0'
[May 27 12:00:54] WARNING[6699]: res_fax_digium.c:463 P30RESULT_to_str: unhandled fax result 'RSLT_IN_PROGRESS'
-- Channel 'Zap/3-1' fax session '6' is complete, result: 'FAILED' (FAX_FAILURE_UNKNOWN), error: 'NO_ERROR', pages: 0, resolution: 'unknown', transfer rate: '2400', remoteSID: ''
-- Hungup 'Zap/3-1'
[May 27 12:00:54] NOTICE[6698]: pbx_spool.c:366 attempt_thread: Call completed to ZAP/g3/ww0178859497
tfsbbackup*CLI>
sethsdad0627 wrote:can you post the "tiffinfo" on leo.tiff?
tiffinfo /tmp/leo.tiff
The fax routine prefers a group 3 format and in its past life was very picky about how the tiff was formatted.
TIFF Directory at offset 0x8 (8)
Subfile Type: multi-page document (2 = 0x2)
Image Width: 2338 Image Length: 1638
Resolution: 200, 200 pixels/inch
Bits/Sample: 1
Compression Scheme: CCITT Group 3
Photometric Interpretation: min-is-white
FillOrder: lsb-to-msb
Orientation: row 0 top, col 0 lhs
Samples/Pixel: 1
Rows/Strip: 1638
Planar Configuration: single image plane
Page Number: 0-1
Group 3 Options: (0 = 0x0)
Users browsing this forum: No registered users and 1 guest