SENDFAX is not working for me

Community-based Support for users of Free Fax For Asterisk

SENDFAX is not working for me

Postby cvieri » Sat Apr 03, 2010 12:44 pm

Hi,

I am using OpenVox A1200p card. I set trunks/outbound and inbound calls via PSTN. Registered Asterisk FAX.

FAX Statistics:
---------------

Current Sessions : 1
Transmit Attempts : 1
Receive Attempts : 0
Completed FAXes : 1
Failed FAXes : 1

Digium G.711
Licensed Channels : 1
Max Concurrent : 1
Success : 0
Switched to T.38 : 0
Canceled : 0
No FAX : 0
Partial : 0
Negotiation Failed : 0
Train Failure : 0
Protocol Error : 0
IO Partial : 0
IO Fail : 0

My Dialplan for outgoing fax:

[outboundfax]
exten => s,1,NoOp(send a fax)
exten => s,n,Set(FAXOPT(filename)=${FAXFILE})
exten => s,n,Set(FAXOPT(ecm)=yes)
exten => s,n,Set(FAXOPT(headerinfo)=Fax from MYCOMPANY #2442963)
exten => s,n,Set(FAXOPT(localstationid)=2442963)
exten => s,n,Set(FAXOPT(maxrate)=14400)
exten => s,n,Set(FAXOPT(minrate)=2400)
exten => s,n,SendFAX(/tmp/${FAXFILE},d)
exten => h,1,NoOp(FAXOPT(ecm) : ${FAXOPT(ecm)})

Call file:

Channel: Zap/8/2442836
MaxRetries: 1
RetryTime: 60
WaitTime: 60
Archive: yes
Context: outboundfax
Extension: s
Priority: 1
Set: FAXFILE=1.tif

Here is the log:

[Apr 2 11:56:39] VERBOSE[8963] logger.c: -- Attempting call on Zap/8/2442836 for s@outboundfax:1 (Retry 1)
[Apr 2 11:56:39] DEBUG[8963] chan_zap.c: Dialing '2442836'
[Apr 2 11:56:39] DEBUG[8963] chan_zap.c: Deferring dialing...
[Apr 2 11:56:40] DEBUG[8963] chan_zap.c: Sent deferred digit string: T2442836w
[Apr 2 11:56:42] VERBOSE[8963] logger.c: -- Executing [s@outboundfax:1] NoOp("Zap/8-1", "send a fax") in new stack
[Apr 2 11:56:42] VERBOSE[8963] logger.c: -- Executing [s@outboundfax:2] Set("Zap/8-1", "FAXOPT(filename)=1.tif") in new stack
[Apr 2 11:56:42] WARNING[8963] res_fax.c: channel 'Zap/8-1' set FAXOPT(filename) to '1.tif' is unhandled!
[Apr 2 11:56:42] VERBOSE[8963] logger.c: -- Executing [s@outboundfax:3] Set("Zap/8-1", "FAXOPT(ecm)=yes") in new stack
[Apr 2 11:56:42] VERBOSE[8963] logger.c: -- Executing [s@outboundfax:4] Set("Zap/8-1", "FAXOPT(headerinfo)=Fax from MYCOMPANY #2442963") in new stack
[Apr 2 11:56:42] VERBOSE[8963] logger.c: -- Executing [s@outboundfax:5] Set("Zap/8-1", "FAXOPT(localstationid)=2442963") in new stack
[Apr 2 11:56:42] VERBOSE[8963] logger.c: -- Executing [s@outboundfax:6] Set("Zap/8-1", "FAXOPT(maxrate)=14400") in new stack
[Apr 2 11:56:42] VERBOSE[8963] logger.c: -- Executing [s@outboundfax:7] Set("Zap/8-1", "FAXOPT(minrate)=2400") in new stack
[Apr 2 11:56:42] VERBOSE[8963] logger.c: -- Executing [s@outboundfax:8] SendFAX("Zap/8-1", "/tmp/1.tif|d") in new stack
[Apr 2 11:56:42] VERBOSE[8963] logger.c: -- Channel 'Zap/8-1' sending FAX '/tmp/1.tif'
[Apr 2 11:56:42] ERROR[8963] res_fax_digium.c: FAX handle 0: failed to queue document '/tmp/1.tif'
[Apr 2 11:56:42] ERROR[8963] res_fax.c: channel 'Zap/8-1' FAX session '0' failure, reason: 'failed to start FAX session'
[Apr 2 11:56:42] VERBOSE[8963] logger.c: == Auto fallthrough, channel 'Zap/8-1' status is 'UNKNOWN'
[Apr 2 11:56:42] VERBOSE[8963] logger.c: -- Executing [h@outboundfax:1] NoOp("Zap/8-1", "FAXOPT(ecm) : yes") in new stack
[Apr 2 11:56:42] VERBOSE[8963] logger.c: -- Hungup 'Zap/8-1'
[Apr 2 11:56:42] NOTICE[8963] pbx_spool.c: Call completed to Zap/8/2442836
[Apr 2 11:56:43] DEBUG[8946] chan_zap.c: Message status for 6001 changed from -1 to 0 on 1
[Apr 2 11:56:44] DEBUG[8946] chan_zap.c: Message status for 6002 changed from -1 to 0 on 2
[Apr 2 11:56:45] DEBUG[8946] chan_zap.c: Message status for 6003 changed from -1 to 0 on 3
[Apr 2 11:56:45] VERBOSE[8996] logger.c: == Parsing '/etc/asterisk/manager.conf': [Apr 2 11:56:45] VERBOSE[8996] logger.c: Found
[Apr 2 11:56:45] VERBOSE[8996] logger.c: == Parsing '/etc/asterisk/manager_additional.conf': [Apr 2 11:56:45] VERBOSE[8996] logger.c: Found
[Apr 2 11:56:45] VERBOSE[8996] logger.c: == Parsing '/etc/asterisk/manager_custom.conf': [Apr 2 11:56:45] VERBOSE[8996] logger.c: Found
[Apr 2 11:56:45] VERBOSE[8996] logger.c: == Manager 'admin' logged on from 127.0.0.1
[Apr 2 11:56:46] DEBUG[8946] chan_zap.c: Message status for 6004 changed from -1 to 0 on 4
cvieri
Newsterisk
 
Posts: 14
Joined: Thu Mar 18, 2010 3:45 pm

Re: SENDFAX is not working for me

Postby lcvleo » Fri Apr 09, 2010 4:17 am

Dear,

Fax For Asterisk is to send or receive fax thru a SIP channel and not thru a ZAP/DAHDI channel.
In your call file, at first line, you should have something like Channel: SIP/XXXXXX/YYYYYY.
Take a look in this article -> http://www.voip-info.org/wiki/view/FoIP.
Good luck.
lcvleo
Oldsterisk
 
Posts: 69
Joined: Sat May 30, 2009 7:10 pm
Location: Rio de Janeiro, Brazil


Return to Fax For Asterisk

Who is online

Users browsing this forum: No registered users and 1 guest