[asterisk-users] Problems with freePBX and Fax reception

M.Hockings veeshooter at hockings.net
Sun Jul 23 16:32:03 MST 2006


Hi have Asterisk running just fine with a single POTS line and a VOIP 
line.  Recently I have needed to receive some faxes so I've installed 
iaxmodem and HylaFax, both of which are working fine.

In freePBX I've configured extension 3999 to point to the iaxmodem 
connection.  This works just fine if I connect a computer to the FXS 
port and send a fax to x3999, the fax is received and handled just 
wonderfully.

Next I configured freePBX to direct calls to IAX/3999 when a fax is 
detected.

When I try to send a fax from outside it seems to detect that it is a 
fax just fine but does not actually dial the fax extension, just deliver 
a ring to the caller.

The only doc I could find on this problem is the link below but it seems 
to be stuck at the same point.
http://www.aussievoip.com/wiki/index.php?page=freePBX-HylaFax

Any thoughts or ideas about how to get freePBX to dial the fax 
extension?  In the console output below I am calling out from a FXS port 
(Zap/2-1) via the VOIP line back to the FXO port (Zap/1-1) and 
presumably to the fax device.  But the fax device (IAX2/3999) never gets 
called.


If there is an active freePBX forum or mailing list somewhere I would be 
happy to ask there as the forum on sourceforge seems to have lots of 
questions but no discussion or answers happening.

As an aside, I am wondering if using freePBX was a good idea.  It did 
make the initial configuration easier but it does seem to have lots of 
quirks such as this.

Mike


[root at lenovo etc]# asterisk -r -vvvvvvvc
   == Parsing '/etc/asterisk/asterisk.conf': Found
   == Parsing '/etc/asterisk/extconfig.conf': Found
Asterisk 1.2.9.1, Copyright (C) 1999 - 2006 Digium, Inc. and others.
Created by Mark Spencer <markster at digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type '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 'show license' for details.
=========================================================================
Connected to Asterisk 1.2.9.1 currently running on lenovo (pid = 8189)
Verbosity was 3 and is now 7
     -- Starting simple switch on 'Zap/2-1'
     -- Executing Macro("Zap/2-1", "dialout-trunk|2|1xxxxxxxxxx||") in
new stack
     -- Executing Set("Zap/2-1", "DIAL_TRUNK=2") in new stack
     -- Executing Set("Zap/2-1", "DIAL_NUMBER=1xxxxxxxxxx") in new stack
     -- Executing Set("Zap/2-1", "ROUTE_PASSWD=") in new stack
     -- Executing GotoIf("Zap/2-1", "1?noauth") in new stack
     -- Goto (macro-dialout-trunk,s,6)
     -- Executing Set("Zap/2-1", "GROUP()=OUT_2") in new stack
     -- Executing Macro("Zap/2-1", "user-callerid") in new stack
     -- Executing GotoIf("Zap/2-1", "0?report") in new stack
     -- Executing GotoIf("Zap/2-1", "0?start") in new stack
     -- Executing Set("Zap/2-1", "REALCALLERIDNUM=6002") in new stack
     -- Executing NoOp("Zap/2-1", "REALCALLERIDNUM is 6002") in new stack
     -- Executing Set("Zap/2-1", "AMPUSER=") in new stack
     -- Executing Set("Zap/2-1", "AMPUSERCIDNAME=") in new stack
     -- Executing GotoIf("Zap/2-1", "1?report") in new stack
     -- Goto (macro-user-callerid,s,9)
     -- Executing NoOp("Zap/2-1", "Using CallerID "Channel 2" <6002>") in
new stack
     -- Executing Macro("Zap/2-1", "record-enable|6002|OUT") in new stack
     -- Executing GotoIf("Zap/2-1", "0 > 0?2:4") in new stack
     -- Goto (macro-record-enable,s,4)
     -- Executing AGI("Zap/2-1", "recordingcheck|20060723-185730|
1153695447.0") in new stack
     -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
   recordingcheck|20060723-185730|1153695447.0: No AMPUSER db entry for
6002. Not recording
     -- AGI Script recordingcheck completed, returning 0
     -- Executing NoOp("Zap/2-1", "No recording needed") in new stack
     -- Executing Macro("Zap/2-1", "outbound-callerid|2") in new stack
     -- Executing GotoIf("Zap/2-1", "1?start") in new stack
     -- Goto (macro-outbound-callerid,s,3)
     -- Executing NoOp("Zap/2-1", "REALCALLERIDNUM is 6002") in new stack
     -- Executing Set("Zap/2-1", "USEROUTCID=") in new stack
     -- Executing Set("Zap/2-1", "EMERGENCYCID=") in new stack
     -- Executing Set("Zap/2-1", "TRUNKOUTCID="M Hockings" <xxxxxxxxxx>")
in new stack
     -- Executing GotoIf("Zap/2-1", "1?trunkcid") in new stack
     -- Goto (macro-outbound-callerid,s,11)
     -- Executing GotoIf("Zap/2-1", "0?usercid") in new stack
     -- Executing Set("Zap/2-1", "CALLERID(all)="M Hockings"
<xxxxxxxxxx>") in new stack
     -- Executing GotoIf("Zap/2-1", "1?report") in new stack
     -- Goto (macro-outbound-callerid,s,15)
     -- Executing NoOp("Zap/2-1", "CallerID set to "M Hockings"
<xxxxxxxxxx>") in new stack
     -- Executing GotoIf("Zap/2-1", "0?nomax") in new stack
     -- Executing GotoIf("Zap/2-1", "0?chanfull") in new stack
     -- Executing AGI("Zap/2-1", "fixlocalprefix") in new stack
     -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
   fixlocalprefix: Could not parse /etc/asterisk/localprefixes.conf
     -- AGI Script fixlocalprefix completed, returning 0
     -- Executing Set("Zap/2-1", "OUTNUM=1xxxxxxxxxx") in new stack
     -- Executing Set("Zap/2-1", "custom=SIP/acanac") in new stack
     -- Executing GotoIf("Zap/2-1", "0?customtrunk") in new stack
     -- Executing Dial("Zap/2-1", "SIP/acanac/1xxxxxxxxxx|120|r") in new
stack
     -- Called acanac/1xxxxxxxxxx
     -- SIP/acanac-aa5e is making progress passing it to Zap/2-1
     -- Starting simple switch on 'Zap/1-1'
     -- Executing Set("Zap/1-1", "FROM_DID=s") in new stack
     -- Executing Set("Zap/1-1", "FAX_RX=3999") in new stack
     -- Executing Answer("Zap/1-1", "") in new stack
     -- Executing PlayTones("Zap/1-1", "ring") in new stack
   == Spawn extension (from-pstn, s, 5) exited non-zero on 'Zap/1-1'
     -- Hungup 'Zap/1-1'
     -- Starting simple switch on 'Zap/1-1'
     -- Executing Set("Zap/1-1", "FROM_DID=s") in new stack
     -- Executing Set("Zap/1-1", "FAX_RX=3999") in new stack
     -- Executing Answer("Zap/1-1", "") in new stack
     -- Executing PlayTones("Zap/1-1", "ring") in new stack
   == Spawn extension (from-pstn, s, 5) exited non-zero on 'Zap/1-1'
     -- Hungup 'Zap/1-1'
     -- Starting simple switch on 'Zap/1-1'
     -- Executing Set("Zap/1-1", "FROM_DID=s") in new stack
     -- Executing Set("Zap/1-1", "FAX_RX=3999") in new stack
     -- Executing Answer("Zap/1-1", "") in new stack
     -- Executing PlayTones("Zap/1-1", "ring") in new stack
   == Spawn extension (from-pstn, s, 5) exited non-zero on 'Zap/1-1'
     -- Hungup 'Zap/1-1'
     -- Starting simple switch on 'Zap/1-1'
     -- Executing Set("Zap/1-1", "FROM_DID=s") in new stack
     -- Executing Set("Zap/1-1", "FAX_RX=3999") in new stack
     -- Executing Answer("Zap/1-1", "") in new stack
     -- Executing PlayTones("Zap/1-1", "ring") in new stack
   == Spawn extension (from-pstn, s, 5) exited non-zero on 'Zap/1-1'
     -- Hungup 'Zap/1-1'
     -- Starting simple switch on 'Zap/1-1'
     -- Executing Set("Zap/1-1", "FROM_DID=s") in new stack
     -- Executing Set("Zap/1-1", "FAX_RX=3999") in new stack
     -- Executing Answer("Zap/1-1", "") in new stack
     -- Executing PlayTones("Zap/1-1", "ring") in new stack
   == Spawn extension (from-pstn, s, 5) exited non-zero on 'Zap/1-1'
     -- Hungup 'Zap/1-1'
     -- Starting simple switch on 'Zap/1-1'
     -- Executing Set("Zap/1-1", "FROM_DID=s") in new stack
     -- Executing Set("Zap/1-1", "FAX_RX=3999") in new stack
     -- Executing Answer("Zap/1-1", "") in new stack
     -- Executing PlayTones("Zap/1-1", "ring") in new stack
   == Spawn extension (from-pstn, s, 5) exited non-zero on 'Zap/1-1'
     -- Hungup 'Zap/1-1'
   == Spawn extension (macro-dialout-trunk, s, 16) exited non-zero on
'Zap/2-1' in macro 'dialout-trunk'
   == Spawn extension (macro-dialout-trunk, s, 16) exited non-zero on
'Zap/2-1'
     -- Hungup 'Zap/2-1'
     -- Starting simple switch on 'Zap/1-1'
     -- Executing Set("Zap/1-1", "FROM_DID=s") in new stack
     -- Executing Set("Zap/1-1", "FAX_RX=3999") in new stack
     -- Executing Answer("Zap/1-1", "") in new stack
     -- Executing PlayTones("Zap/1-1", "ring") in new stack
   == Spawn extension (from-pstn, s, 5) exited non-zero on 'Zap/1-1'
     -- Hungup 'Zap/1-1'
     -- Saved useragent "Linksys/SPA942-4.1.12" for peer 3200




More information about the asterisk-users mailing list