[Asterisk-Users] Going crazy with FAX :-(

Steve Underwood steveu at coppice.org
Tue Sep 6 05:41:55 MST 2005


Hi,

I think this line might be less than 100% desirable: :-)

"rm /var/spool/asterisk/fax/1125997512.2.tif /var/spool/asterisk/fax/1125997512.2.tif.pdf"

Regards,
Steve


Michele "O-Zone" Pinassi wrote:

>I've upgraded Asterisk from CVS, spandsp and app_txfax and app_rxfax but i'm 
>still unable to send/receive faxes :-(. I'm using amp_fax to send and this is 
>what i get from logs:
>
>Sep  6 11:02:52 VERBOSE[10750]:     -- Attempting call on Zap/g1/666 for 
>application txfax(/var/tmp/ast_fax-1125997371.10240.1804289383.0|caller) 
>(Retry 1)
>Sep  6 11:02:52 DEBUG[10750]: Dialing '666'
>Sep  6 11:02:52 DEBUG[10750]: Deferring dialing...
>Sep  6 11:02:53 DEBUG[10750]: Exception on 20, channel 3
>Sep  6 11:02:53 DEBUG[10750]: Got event Hook Transition Complete(12) on 
>channel 3 (index 0)
>Sep  6 11:02:53 DEBUG[10750]: Exception on 20, channel 3
>Sep  6 11:02:53 DEBUG[10750]: Got event Dial Complete(9) on channel 3 (index 
>0)
>Sep  6 11:02:53 DEBUG[10750]: Enabled echo cancellation on channel 3
>Sep  6 11:02:53 DEBUG[10750]: Engaged echo training on channel 3
>Sep  6 11:02:56 DEBUG[10750]: Exception on 20, channel 3
>Sep  6 11:02:56 DEBUG[10750]: Got event Dial Complete(9) on channel 3 (index 
>0)
>Sep  6 11:02:56 DEBUG[10750]: Echo cancellation already on
>Sep  6 11:02:56 DEBUG[10750]: Dropping duplicate answer!
>Sep  6 11:03:31 DEBUG[10750]: Hangup: channel: 3 index = 0, normal = 20, 
>callwait = -1, thirdcall = -1
>Sep  6 11:03:31 DEBUG[10750]: disabled echo cancellation on channel 3
>Sep  6 11:03:31 DEBUG[10750]: Set option TDD MODE, value: OFF(0) on Zap/3-1
>Sep  6 11:03:31 DEBUG[10750]: Updated conferencing on 3, with 0 conference 
>users
>Sep  6 11:03:31 VERBOSE[10750]:     -- Hungup 'Zap/3-1'
>Sep  6 11:03:31 NOTICE[10750]: Call completed to Zap/g1/666
>
>when i try receving a FAX here's what i get:
>
>Sep  6 11:05:22 DEBUG[10750]: DTMF digit: f on Zap/1-1
>Sep  6 11:05:22 VERBOSE[10750]:     -- Redirecting Zap/1-1 to fax extension
>Sep  6 11:05:22 DEBUG[10750]: Scheduling timer at 0 sample intervals
>Sep  6 11:05:22 VERBOSE[10750]:   == Spawn extension (from-2299-reghours, fax, 
>0) exited non-zero on 'Zap/1-1'
>Sep  6 11:05:22 VERBOSE[10750]:     -- Executing Goto("Zap/1-1", "ext-fax|
>in_fax|1") in new stack
>Sep  6 11:05:22 VERBOSE[10750]:     -- Goto (ext-fax,in_fax,1)
>Sep  6 11:05:22 DEBUG[10750]: Expression is '1'
>Sep  6 11:05:22 VERBOSE[10750]:     -- Executing GotoIf("Zap/1-1", 
>"1?2:analog_fax|1") in new stack
>Sep  6 11:05:22 VERBOSE[10750]:     -- Goto (ext-fax,in_fax,2)
>Sep  6 11:05:22 VERBOSE[10750]:     -- Executing Macro("Zap/1-1", 
>"faxreceive") in new stack
>Sep  6 11:05:22 VERBOSE[10750]:     -- Executing SetVar("Zap/1-1", 
>"FAXFILE=/var/spool/asterisk/fax/1125997512.2.tif") in new stack
>Sep  6 11:05:22 VERBOSE[10750]:     -- Executing SetVar("Zap/1-1", 
>"EMAILADDR=fax at asb.unisi.it") in new stack
>Sep  6 11:05:22 VERBOSE[10750]:     -- Executing RxFAX("Zap/1-1", 
>"/var/spool/asterisk/fax/1125997512.2.tif") in new stack
>Sep  6 11:05:26 DEBUG[10750]: DTMF digit: f on Zap/1-1
>Sep  6 11:05:26 DEBUG[10750]: Fax already handled
>Sep  6 11:06:10 DEBUG[10750]: 
>==============================================================================
>Sep  6 11:06:10 DEBUG[10750]: Pages transferred:  1
>Sep  6 11:06:10 DEBUG[10750]: Image size:         1728 x 1241
>Sep  6 11:06:10 DEBUG[10750]: Image resolution    7700 x 3850
>Sep  6 11:06:10 DEBUG[10750]: Transfer Rate:      9600
>Sep  6 11:06:10 DEBUG[10750]: Bad rows            101
>Sep  6 11:06:10 DEBUG[10750]: Longest bad row run 25
>Sep  6 11:06:10 DEBUG[10750]: Compression type    2
>Sep  6 11:06:10 DEBUG[10750]: Image size (bytes)  0
>Sep  6 11:06:10 DEBUG[10750]: 
>==============================================================================
>Sep  6 11:06:13 DEBUG[10750]: 
>==============================================================================
>Sep  6 11:06:13 DEBUG[10750]: Fax successfully received.
>Sep  6 11:06:13 DEBUG[10750]: Remote station id: +39-577-298524
>Sep  6 11:06:13 DEBUG[10750]: Local station id:
>Sep  6 11:06:13 DEBUG[10750]: Pages transferred: 1
>Sep  6 11:06:13 DEBUG[10750]: Image resolution:  7700 x 3850
>Sep  6 11:06:13 DEBUG[10750]: Transfer Rate:     9600
>Sep  6 11:06:13 DEBUG[10750]: 
>==============================================================================
>Sep  6 11:06:13 VERBOSE[10750]:     -- Executing System("Zap/1-1", "tiff2ps 
>-2eaz -w 8.5 -h 11 /var/spool/asterisk/fax/1125997512.2.tif | ps2pdf 
>- /var/spool/asterisk/fax/1125997512.2.tif.pdf") in new stack
>Sep  6 11:06:13 VERBOSE[10750]:     -- Executing System("Zap/1-1", 
>"mime-construct --to fax at asb.unisi.it --subject "Fax from  " 
>--attachment .pdf --type application/pdf 
>--file /var/spool/asterisk/fax/1125997512.2.tif.pdf") in new stack
>Sep  6 11:06:14 VERBOSE[10750]:     -- Executing System("Zap/1-1", 
>"rm /var/spool/asterisk/fax/1125997512.2.tif /var/spool/asterisk/fax/1125997512.2.tif.pdf") 
>in new stack
>Sep  6 11:06:14 VERBOSE[10750]:     -- Executing Hangup("Zap/1-1", "") in new 
>stack
>Sep  6 11:06:14 VERBOSE[10750]:   == Spawn extension (ext-fax, in_fax, 6) 
>exited non-zero on 'Zap/1-1'
>Sep  6 11:06:14 VERBOSE[10750]:     -- Executing Hangup("Zap/1-1", "") in new 
>stack
>Sep  6 11:06:14 VERBOSE[10750]:   == Spawn extension (ext-fax, h, 1) exited 
>non-zero on 'Zap/1-1'
>Sep  6 11:06:14 DEBUG[10750]: cdr_mysql: inserting a CDR record.
>Sep  6 11:06:14 DEBUG[10750]: cdr_mysql: SQL command as follows:  INSERT INTO 
>cdr 
>(calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode) 
>VALUES ('2005-09-06 11:05:17','','','in_fax','ext-fax', 
>'Zap/1-1','','Hangup','',57,57,'ANSWERED',3,'')
>Sep  6 11:06:14 DEBUG[10750]: Hangup: channel: 1 index = 0, normal = 18, 
>callwait = -1, thirdcall = -1
>Sep  6 11:06:14 DEBUG[10750]: disabled echo cancellation on channel 1
>Sep  6 11:06:14 DEBUG[10750]: Set option TDD MODE, value: OFF(0) on Zap/1-1
>Sep  6 11:06:14 DEBUG[10750]: Updated conferencing on 1, with 0 conference 
>users
>Sep  6 11:06:14 VERBOSE[10750]:     -- Hungup 'Zap/1-1'
>
>but pdf is illeggible and TIFF corrupted !
>
>Please someone can help me ?
>
>Oz
>
>  
>




More information about the asterisk-users mailing list