Asterisk, TE110P and outbound faxes


#1

Hello,
I’m trying to use asterisk to send fax, too…

We have a Digium TE110P, and we are using asterisk 1.2.x (AAH2.2)

We can dial out, dial in, fax in without problems (well… now without problems :smile:

However, we cannot fax out (we are using asterfax); after some tests we can dial out and if I call myself on my home number I can hear the fax tone (generated by asterisk/digium card)

But, If I call a real fax machine, we get this: (where is the problem, if called people can hear the “beep” of asterisk-fax? why the fax machine hangup?)

Dec 21 16:07:44 DEBUG[29721] manager.c: Manager received command ‘Challenge’
Dec 21 16:07:44 DEBUG[29721] manager.c: Manager received command ‘Login’
Dec 21 16:07:44 VERBOSE[29721] logger.c: == Parsing ‘/etc/asterisk/manager.conf’: Dec 21 16:07:44 VERBOSE[29721] logger.c: == Parsing ‘/etc/asterisk/manager.conf’: Found
Dec 21 16:07:44 VERBOSE[29721] logger.c: == Parsing ‘/etc/asterisk/manager_custom.conf’: Dec 21 16:07:44 VERBOSE[29721] logger.c: == Parsing ‘/etc/asterisk/manager_custom.conf’: Found
Dec 21 16:07:44 WARNING[29721] config.c: Unknown directive ‘permit=192.168.1.0/255.255.255.0’ at line 18 of manager_custom.conf
Dec 21 16:07:44 DEBUG[29721] acl.c: 0.0.0.0/0.0.0.0/0.0.0.0 appended to acl for peer
Dec 21 16:07:44 DEBUG[29721] acl.c: 127.0.0.1/255.255.255.0/255.255.255.0 appended to acl for peer
Dec 21 16:07:44 DEBUG[29721] acl.c: ##### Testing 127.0.0.1 with 0.0.0.0
Dec 21 16:07:44 DEBUG[29721] acl.c: ##### Testing 127.0.0.1 with 127.0.0.0
Dec 21 16:07:44 VERBOSE[29721] logger.c: == Manager ‘admin’ logged on from 127.0.0.1
Dec 21 16:07:44 DEBUG[29721] manager.c: Manager received command ‘Command’
Dec 21 16:07:44 DEBUG[29721] manager.c: Manager received command ‘Status’
Dec 21 16:07:44 DEBUG[29721] manager.c: Manager received command ‘Originate’
Dec 21 16:07:44 VERBOSE[29721] logger.c: – Requested transfer capability: 0x00 - SPEECH
Dec 21 16:07:44 DEBUG[27639] chan_zap.c: Queuing frame from PRI_EVENT_PROCEEDING on channel 0/1 span 1
Dec 21 16:07:44 NOTICE[29721] channel.c: Don’t know what to do with control frame 15
Dec 21 16:07:45 DEBUG[27639] chan_zap.c: Enabled echo cancellation on channel 1
Dec 21 16:07:45 DEBUG[27621] channel.c: Avoiding initial deadlock for ‘Zap/1-1’
Dec 21 16:07:48 DEBUG[27639] chan_zap.c: Echo cancellation already on
Dec 21 16:07:48 DEBUG[27621] channel.c: Avoiding initial deadlock for ‘Zap/1-1’
Dec 21 16:07:48 DEBUG[29721] manager.c: Manager received command ‘Logoff’
Dec 21 16:07:48 VERBOSE[29721] logger.c: == Manager ‘admin’ logged off from 127.0.0.1
Dec 21 16:07:49 VERBOSE[27639] logger.c: !! Got reject for frame 52, but we only have others!
Dec 21 16:07:58 DEBUG[29728] app_txfax.c: ==============================================================================
Dec 21 16:07:58 DEBUG[29728] app_txfax.c: Fax send not successful - result 14.
Dec 21 16:07:58 DEBUG[29728] app_txfax.c: ==============================================================================
Dec 21 16:07:58 DEBUG[29728] cdr_addon_mysql.c: cdr_mysql: inserting a CDR record.
Dec 21 16:07:58 DEBUG[29728] cdr_addon_mysql.c: cdr_mysql: SQL command as follows: INSERT INTO cdr (calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode,uniqueid) VALUES (‘2005-12-21 16:07:48’,’’,’’,‘s’,‘from-pstn’, ‘Zap/1-1’,’’,‘TxFAX’,’${FAXFILE}|caller’,10,0,‘ANSWERED’,3,’’,‘1135177664.124’)
Dec 21 16:07:58 DEBUG[29728] chan_zap.c: Set option AUDIO MODE, value: ON(1) on Zap/1-1
Dec 21 16:07:58 DEBUG[29728] chan_zap.c: Hangup: channel: 1 index = 0, normal = 15, callwait = -1, thirdcall = -1
Dec 21 16:07:58 DEBUG[29728] chan_zap.c: Not yet hungup… Calling hangup once with icause, and clearing call
Dec 21 16:07:58 DEBUG[29728] chan_zap.c: disabled echo cancellation on channel 1
Dec 21 16:07:58 DEBUG[29728] chan_zap.c: Set option TDD MODE, value: OFF(0) on Zap/1-1
Dec 21 16:07:58 DEBUG[29728] chan_zap.c: Updated conferencing on 1, with 0 conference users
Dec 21 16:07:58 DEBUG[29728] chan_zap.c: Set option AUDIO MODE, value: OFF(0) on Zap/1-1
Dec 21 16:07:58 DEBUG[29728] chan_zap.c: disabled echo cancellation on channel 1
Dec 21 16:07:58 VERBOSE[29728] logger.c: – Hungup ‘Zap/1-1’


#2

I tested with Winfax on one PC…

It says:

Answering…

Linked to remote fax… (my asterisk/asterfax)

Training…

and then hung up.


#3

I have the exact same problem.

I can’t wonder where to look anymore… Seems like it’s an Asterisk problem of some sort, because I’ve tested fax transmission using call files, bypassing any other addons to the system - and the same thing happens, result 14 and the line being dropped and fax reporting “communication error”.

Also when transmiting fax i can hear the fax tone when i pickup the call. Maybe Asterisk is trying to send faxes using some weird protocol that my 2 faxes don’t like and hangup? Don’t know…

Receiving faxes is fine tho…


#4

The problem appears to be a permission issue.

Error 14 is reported by the txfax application when it can’t open the tiff file.

This is an issue that I’m currently investigating for an AsterFax user.

It appears that the tiff file written by AsterFax for txfax to transmitt does not have the correct permission set.
AsterFax must have read/write access to the directory and Asterisk must have read access to the directory and the resulting file.

I have been able to reproduce the problem but I’m still working through the details for a recommended configuration. When I come up with one I will post it on the asterfax forums.
This is not likely to be before the 23th of Jan as I’m currently on leave.

Regards,
S. Brett Sutton
Lead Developer AsterFax.


#5

The problem was a bug in AsterFax beta 5 (and earlier).
The problem has been resolved in beta 6.

Appologies for the inconvenience.