[asterisk-users] Mail2Fax

basti mailinglist at unix-solution.de
Fri Jun 19 03:23:19 CDT 2020


Hello,
i try to setup asterisk with hylafax:

the config is:

egrep -v "(^#|^$)" /etc/hylafax/config.ttyIAX0

CountryCode:		49
AreaCode:		xxx
FAXNumber:		+49xxxxxxxx
LongDistancePrefix:	0
InternationalPrefix:	00
DialStringRules:	etc/dialrules
ServerTracing:		1
SessionTracing:		11
RecvFileMode:		0600
LogFileMode:		0600
DeviceMode:		0600
RingsBeforeAnswer:	1
SpeakerVolume:		off
GettyArgs:		"-h %l dx_%s"
LocalIdentifier:	"example"
TagLineFont:		etc/lutRS18.pcf
TagLineFormat:		"From %%l|%c|Page %%P of %%T"
MaxRecvPages:		25
ModemType:		Class1		# use this to supply a hint
Class1Cmd:		AT+FCLASS=1.0	# command to enter class 1.0
Class1PPMWaitCmd:	AT+FTS=7	# command to stop and wait before PPM
Class1TCFWaitCmd:	AT+FTS=7	# command to stop and wait before TCF
Class1EOPWaitCmd:	AT+FTS=9	# command to stop and wait before EOP
Class1SwitchingCmd:	AT+FRS=7	# command to stop and listen for silence
Class1RecvAbortOK:	200		# wait 200ms for abort response
Class1FrameOverhead:	4		# 4 byte overhead in recvd HDLC frames
Class1RecvIdentTimer:	40000		# 35+5secs waiting for ident frames
Class1TCFMaxNonZero:	10		# max 10% of data may be non-zero
Class1TCFMinRun:	1000		# min run is 2/3rds of TCF duration

cat /etc/iaxmodem/ttyIAX0

device /dev/ttyIAX0
owner uucp:uucp
mode 660
port 4570
refresh 60
server 127.0.0.1
peername 591
secret xxxx
codec alaw
cidname Fax
cidnumber xxxxxxx
nojitterbuffer


cat /etc/asterisk/iax_additional.conf
;--------------------------------------------------------------------------------;
;          Do NOT edit this file as it is auto-generated by FreePBX.
        ;
;--------------------------------------------------------------------------------;
; For information on adding additional paramaters to this file, please
visit the ;
; FreePBX.org wiki page, or ask on IRC. This file was created by the new
FreePBX ;
; BMO - Big Module Object. Any similarity in naming with BMO from
Adventure Time ;
; is totally deliberate.
        ;
;--------------------------------------------------------------------------------;
[591]
deny=0.0.0.0/0.0.0.0
disallow=all
secret=xxxx
transfer=yes
context=from-internal
host=dynamic
type=friend
port=4570
qualify=yes
allow=alaw
dial=IAX2/591
accountcode=
permit=0.0.0.0/0.0.0.0
requirecalltoken=no
secret_origional=xxxx
callerid=Hylafax <591>
setvar=REALCALLERIDNUM=



Asterisk log show only

[19-06-2020 10:18:46] VERBOSE[3245] chan_iax2.c: Tx-Frame Retry[000] --
OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: POKE
[19-06-2020 10:18:46] VERBOSE[3245] chan_iax2.c:    Timestamp: 00014ms
SCall: 01337  DCall: 00000 127.0.0.1:4570
[19-06-2020 10:18:46] VERBOSE[3245] chan_iax2.c:
[19-06-2020 10:18:46] VERBOSE[3251] chan_iax2.c: Rx-Frame Retry[ No] --
OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: ACK
[19-06-2020 10:18:46] VERBOSE[3251] chan_iax2.c:    Timestamp: 00014ms
SCall: 20234  DCall: 01337 127.0.0.1:4570
[19-06-2020 10:18:46] VERBOSE[3251] chan_iax2.c: Rx-Frame Retry[ No] --
OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: PONG
[19-06-2020 10:18:46] VERBOSE[3251] chan_iax2.c:    Timestamp: 00014ms
SCall: 20234  DCall: 01337 127.0.0.1:4570
[19-06-2020 10:18:46] VERBOSE[3251] chan_iax2.c:    RR_JITTER       : 0
[19-06-2020 10:18:46] VERBOSE[3251] chan_iax2.c:    RR_LOSS         : 0
[19-06-2020 10:18:46] VERBOSE[3251] chan_iax2.c:    RR_PKTS         : 1
[19-06-2020 10:18:46] VERBOSE[3251] chan_iax2.c:    RR_DELAY        : 40
[19-06-2020 10:18:46] VERBOSE[3251] chan_iax2.c:    RR_DROPPED      : 0
[19-06-2020 10:18:46] VERBOSE[3251] chan_iax2.c:    RR_OUTOFORDER   : 0
[19-06-2020 10:18:46] VERBOSE[3251] chan_iax2.c:
[19-06-2020 10:18:46] VERBOSE[3251] chan_iax2.c: Tx-Frame Retry[-01] --
OSeqno: 001 ISeqno: 001 Type: IAX     Subclass: ACK
[19-06-2020 10:18:46] VERBOSE[3251] chan_iax2.c:    Timestamp: 00014ms
SCall: 01337  DCall: 20234 127.0.0.1:4570


Fax is not send. No Sip stuff is show in log.
I don't know what is wrong here.
Best regards



More information about the asterisk-users mailing list