IAXModemPBX# uname -a
FreeBSD PBX 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:15:25 UTC 2012 root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
PBX# pkg_info
afm-1.0 Adobe Font Metrics
asterisk18-1.8.11.0 An Open Source PBX and telephony toolkit
hylafax-6.0.5 Fax software
iaxmodem-1.2.0_2 Software modem that connects to IAX channel
конфиг IAX-peer в Asterisk-ePBX# cd /usr/local/etc/iaxmodem
PBX# cat ttyIAX17001
device /dev/ttyIAX17001
owner uucp:uucp
mode 660
port 44572
refresh 60
server 127.0.0.1
peername 17001
secret 111
cidname a.ivanov(FAX)
cidnumber 17001
codec slinear
сам пир[17001]
type=friend
host=dynamic
secret=111
port=44572
context=FAX
disallow=all
allow=ulaw
allow=alaw
requirecalltoken=no
jitterbuffer=no
в ttys:PBX*CLI> iax2 show peers
Name/Username Host Mask Port Status
17001 127.0.0.1 (D) 255.255.255.255 40199 Unmonitored
1 iax2 peers [0 online, 0 offline, 1 unmonitored]
в config.ttyIAX17001 Hylafax:ttyIAX17001 "/usr/local/sbin/faxgetty" dialup on secure
в девах:CountryCode: 1
AreaCode: 800
FAXNumber: +1.800.555.1414
LongDistancePrefix: 1
InternationalPrefix: 011
DialStringRules: etc/dialrules
ServerTracing: 0xFFF
SessionTracing: 0xFFF
RecvFileMode: 0600
LogFileMode: 0600
DeviceMode: 0600
RingsBeforeAnswer: 1
SpeakerVolume: off
GettyArgs: "-h %l dx_%s"
LocalIdentifier: "IAXmodem"
TagLineFont: etc/lutRS18.pcf
TagLineFormat: "From %%l|%c|Page %%P of %%T"
MaxRecvPages: 200
ModemType: Class1
Class1AdaptRecvCmd: AT+FAR=1
Class1TMConnectDelay: 400
ModemResetCmds: AT+VCID=1
PagerTTYParity: none
CallIDPattern: "NMBR="
CallIDPattern: "NAME="
CallIDPattern: "ANID="
CallIDPattern: "NDID="
PBX# ll /dev/ttyIA*
lrwxr-xr-x 1 root wheel 10 Apr 18 15:19 /dev/ttyIAX17001 -> /dev/pts/2
при звонке:
в логе Hylafax:PBX*CLI> iax2 show channels
Channel Peer Username ID (Lo/Rem) Seq (Tx/Rx) Lag Jitter JitBuf Format FirstMsg LastMsg
IAX2/17001-424 127.0.0.1 (None) 00424/05748 00003/00003 00000ms -0001ms 0000ms unknow Tx:NEW Rx:ACK
1 active IAX channel
в логе iaxmodem:PBX# cat ttyIAX17001
Listening to rings from modem
Но при всем при этом факс я принять не могу...почему Hylafax не берет трубку?PBX# cd /var/log/iaxmodem
PBX# cat ttyIAX17001
........................
[2012-04-18 15:18:17] Terminating on signal 15...
[2012-04-18 15:19:13] Removed old /dev/ttyIAX17001