[asterisk-users] still got ReceiveFax() problem, how to properly setup asterisk fax?
Roi Stork
roi.stork at gmail.com
Thu Jul 26 22:33:41 CDT 2012
I've posted my problem with ReceiveFax() a long time ago.
Majority of the incoming faxes still end up with a T2 timeout or
hangup (fax session hangup) errors.
Our Setup:
- we're using the Digium Free Fax module for Asterisk, all settings are default
- incoming/outgoing faxes go through an E1 line
- faxes are outgoing/received via Sangoma A104DE Card
- fax .tiff image is converted to pdf and sent to email
- clock source has already been set to NORMAL (from the E1 line), and
hardware/software echo cancellation already disabled
It's strange to have timeout errors since we're using an E1 line,
which we have tested to have no problems in voice quality.
I have read that it may be the fault of the sending fax machine or the
pstn line it's connected to, but no one in the office believes it.
They believe it's due to a poorly configured setup. But I don't
know/can't confirm if it's the cause.
Can anyone help me check the config files to see If I missed something?
-------wanpipe1.conf----------
[devices]
wanpipe1 = WAN_AFT_TE1, Comment
[interfaces]
w1g1 = wanpipe1, , TDM_VOICE, Comment
[wanpipe1]
CARD_TYPE = AFT
S514CPU = A
CommPort = PRI
AUTO_PCISLOT = NO
PCISLOT = 4
PCIBUS = 5
FE_MEDIA = E1
FE_LCODE = HDB3
FE_FRAME = CRC4
FE_LINE = 4
TE_CLOCK = NORMAL
TE_REF_CLOCK = 0
TE_SIG_MODE = CCS
TE_HIGHIMPEDANCE = NO
TE_RX_SLEVEL = 430
HW_RJ45_PORT_MAP = DEFAULT
LBO = 120OH
FE_TXTRISTATE = NO
MTU = 1500
UDPPORT = 9000
TTL = 255
IGNORE_FRONT_END = NO
TDMV_SPAN = 1
TDMV_DCHAN = 16
TE_AIS_MAINTENANCE = NO #NO: defualt YES: Start port in AIS
Blue Alarm and keep line down
#wanpipemon -i w1g1 -c Ttx_ais_off to
disable AIS maintenance mode
#wanpipemon -i w1g1 -c Ttx_ais_on to enable AIS maintenance mode
TDMV_HW_DTMF = YES # YES: receive dtmf events from hardware
TDMV_HW_FAX_DETECT = YES # YES: receive fax
1100hz events from hardware
HWEC_OPERATION_MODE = OCT_NO_ECHO # OCT_NORMAL: echo
cancelation enabled with nlp (default)
# OCT_SPEECH: improves software tone detection by disabling
NLP (echo possible)
# OCT_NO_ECHO:disables echo cancelation but allows VQE/tone
functions.
HWEC_DTMF_REMOVAL = NO # NO: default YES: remove dtmf out of
incoming media (must have hwdtmf enabled)
HWEC_NOISE_REDUCTION = NO # NO: default YES: reduces noise on
the line - could break fax
HWEC_ACUSTIC_ECHO = NO # NO: default YES: enables acustic
echo cancelation
HWEC_NLP_DISABLE = NO # NO: default YES: guarantees
software tone detection (possible echo)
HWEC_TX_AUTO_GAIN = 0 # 0: disable -40-0: default tx audio
level to be maintained (-20 default)
HWEC_RX_AUTO_GAIN = 0 # 0: disable -40-0: default tx audio
level to be maintained (-20 default)
HWEC_TX_GAIN = 0 # 0: disable -24-24: db
values to be applied to tx signal
HWEC_RX_GAIN = 0 # 0: disable -24-24: db
values to be applied to tx signal
[w1g1]
ACTIVE_CH = ALL
TDMV_HWEC = NO
MTU = 8
------dahdi/system.conf--------
#autogenerated by /usr/sbin/wancfg_dahdi do not hand edit
#autogenrated on 2012-06-29
#Dahdi Channels Configurations
#For detailed Dahdi options, view /etc/dahdi/system.conf.bak
loadzone=us
defaultzone=us
#Sangoma A104 port 4 [slot:4 bus:5 span:1] <wanpipe1>
span=1,1,0,ccs,hdb3,crc4
bchan=1-15,17-31
#echocanceller=none,1-15,17-31
hardhdlc=16
-------chan_dahdi.conf--------
;autogenerated by /usr/sbin/wancfg_dahdi do not hand edit
;autogenrated on 2012-06-29
;Dahdi Channels Configurations
;For detailed Dahdi options, view /etc/asterisk/chan_dahdi.conf.bak
[trunkgroups]
[channels]
context=default
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
;echocancel=yes
;echocancelwhenbridged=yes
echocancel=no
echocancelwhenbridged=no
relaxdtmf=yes
rxgain=0.0
txgain=0.0
group=1
callgroup=1
pickupgroup=1
immediate=no
;Sangoma A104 port 4 [slot:4 bus:5 span:1] <wanpipe1>
switchtype=euroisdn
context=from-pstn
group=0
echocancel=no
faxdetect=both
signalling=pri_cpe
channel =>1-15,17-31
-------extensions.conf:--------
exten => 6512XXXX,1,Answer()
exten => 6512XXXX,n,NoOp(${EXTEN})
exten => 6512XXXX,n,Goto(fax-rx,receive,1)
[fax-rx]
exten => receive,1,NoOp(**** FAX RECEIVE ${FROM_DID} ****)
exten => receive,n,Set(GLOBAL(FAXCOUNT)=$[ ${GLOBAL(FAXCOUNT)} + 1 ])
exten => receive,n,Set(FAXCOUNT=${GLOBAL(FAXCOUNT)})
exten => receive,n,Set(FAXFILE=fax-${FROM_DID}-${EPOCH}-rx.tif)
exten => receive,n,Set(GLOBAL(LASTFAXCALLERNUM)=${CALLERID(num)})
exten => receive,n,Set(GLOBAL(LASTFAXCALLERNAME)=${CALLERID(name)})
exten => receive,n,NoOp(**** SETTING FAXOPT ****)
exten => receive,n,Set(FAXOPT(ecm)=yes)
exten => receive,n,Set(FAXOPT(headerinfo)=MY FAXBACK RX)
exten => receive,n,Set(FAXOPT(localstationid)=1234567890)
exten => receive,n,Set(FAXOPT(maxrate)=14400)
exten => receive,n,Set(FAXOPT(minrate)=2400)
exten => receive,n,NoOp(FAXOPT(ecm) : ${FAXOPT(ecm)})
exten => receive,n,NoOp(FAXOPT(headerinfo) : ${FAXOPT(headerinfo)})
exten => receive,n,NoOp(FAXOPT(localstationid) : ${FAXOPT(localstationid)})
exten => receive,n,NoOp(FAXOPT(maxrate) : ${FAXOPT(maxrate)})
exten => receive,n,NoOp(FAXOPT(minrate) : ${FAXOPT(minrate)})
exten => receive,n,NoOp(**** RECEIVING FAX : ${FAXFILE} ****)
exten => receive,n,ReceiveFAX(/var/spool/asterisk/fax/${FAXFILE})
More information about the asterisk-users
mailing list