hylafax + iaxmodem не отправляется факс
Добавлено: 03 окт 2013, 02:31
Здравствуйте.
Прошу помощи, входящий факс принимает отлично, не работает отправка факса,
tail -f /var/log/syslog
при этом звонок в астериск не приходит и контекст не вызывается.
Конфиги:
/etc/iaxmodem/ttyIAX0
/etc/asterisk/iax.conf
iax2 show peers
Прошу помощи, входящий факс принимает отлично, не работает отправка факса,
tail -f /var/log/syslog
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
Код: Выделить всё
Oct 3 04:23:09 ubuntuphone FaxQueuer[7153]: NOTIFY exit status: 0 (8337)
Oct 3 04:23:10 ubuntuphone FaxSend[8338]: MODEM set DTR OFF
Oct 3 04:23:10 ubuntuphone FaxSend[8338]: MODEM set baud rate: 0 baud (flow control unchanged)
Oct 3 04:23:10 ubuntuphone FaxSend[8338]: DELAY 75 ms
Oct 3 04:23:10 ubuntuphone FaxSend[8338]: MODEM set DTR ON
Oct 3 04:23:10 ubuntuphone FaxSend[8338]: DELAY 2600 ms
Oct 3 04:23:13 ubuntuphone FaxSend[8338]: MODEM set baud rate: 19200 baud, input flow XON/XOFF, output flow XON/XOFF
Oct 3 04:23:13 ubuntuphone FaxSend[8338]: DELAY 10 ms
Oct 3 04:23:13 ubuntuphone FaxSend[8338]: MODEM flush i/o
Oct 3 04:23:13 ubuntuphone FaxSend[8338]: <-- [4:ATZ\r]
Oct 3 04:23:13 ubuntuphone FaxSend[8338]: --> [2:OK]
Oct 3 04:23:13 ubuntuphone FaxSend[8338]: DELAY 3000 ms
Oct 3 04:23:16 ubuntuphone FaxSend[8338]: MODEM flush i/o
Oct 3 04:23:16 ubuntuphone FaxSend[8338]: <-- [7:ATS0=0\r]
Oct 3 04:23:17 ubuntuphone FaxSend[8338]: --> [6:ATS0=0]
Oct 3 04:23:17 ubuntuphone FaxSend[8338]: --> [2:OK]
Oct 3 04:23:17 ubuntuphone FaxSend[8338]: <-- [5:ATE0\r]
Oct 3 04:23:17 ubuntuphone FaxSend[8338]: --> [4:ATE0]
Oct 3 04:23:17 ubuntuphone FaxSend[8338]: --> [2:OK]
Oct 3 04:23:17 ubuntuphone FaxSend[8338]: <-- [5:ATV1\r]
Oct 3 04:23:17 ubuntuphone FaxSend[8338]: --> [2:OK]
Oct 3 04:23:17 ubuntuphone FaxSend[8338]: <-- [5:ATQ0\r]
Oct 3 04:23:17 ubuntuphone FaxSend[8338]: --> [2:OK]
Oct 3 04:23:17 ubuntuphone FaxSend[8338]: <-- [7:ATS8=2\r]
Oct 3 04:23:17 ubuntuphone FaxSend[8338]: --> [2:OK]
Oct 3 04:23:17 ubuntuphone FaxSend[8338]: <-- [8:ATS7=60\r]
Oct 3 04:23:17 ubuntuphone FaxSend[8338]: --> [2:OK]
Oct 3 04:23:17 ubuntuphone FaxSend[8338]: <-- [12:AT+FCLASS=?\r]
Oct 3 04:23:17 ubuntuphone FaxSend[8338]: --> [7:0,1,1.0]
Oct 3 04:23:17 ubuntuphone FaxSend[8338]: --> [2:OK]
Oct 3 04:23:17 ubuntuphone FaxSend[8338]: MODEM Supports "Data"
Oct 3 04:23:17 ubuntuphone FaxSend[8338]: MODEM Supports "Class 1"
Oct 3 04:23:17 ubuntuphone FaxSend[8338]: MODEM Supports "Class 1.0"
Oct 3 04:23:17 ubuntuphone FaxSend[8338]: <-- [14:AT+FCLASS=1.0\r]
Oct 3 04:23:17 ubuntuphone FaxSend[8338]: --> [2:OK]
Oct 3 04:23:17 ubuntuphone FaxSend[8338]: <-- [5:ATI3\r]
Oct 3 04:23:17 ubuntuphone FaxSend[8338]: --> [19:www.soft-switch.org]
Oct 3 04:23:17 ubuntuphone FaxSend[8338]: --> [2:OK]
Oct 3 04:23:17 ubuntuphone FaxSend[8338]: MODEM: Mfr www.soft-switch.org
Oct 3 04:23:17 ubuntuphone FaxSend[8338]: <-- [5:ATI0\r]
Oct 3 04:23:17 ubuntuphone FaxSend[8338]: --> [7:spandsp]
Oct 3 04:23:17 ubuntuphone FaxSend[8338]: --> [2:OK]
Oct 3 04:23:17 ubuntuphone FaxSend[8338]: MODEM: Model spandsp
Oct 3 04:23:17 ubuntuphone FaxSend[8338]: <-- [9:AT+FTM=?\r]
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: --> [39:24,48,72,73,74,96,97,98,121,122,145,146]
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: --> [2:OK]
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM Supports 3.85 line/mm
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM Supports 7.7 line/mm
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM Supports 15.4 line/mm
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM Supports R16 x 15.4 line/mm
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM Supports 200 x 100 dpi
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM Supports 200 x 200 dpi
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM Supports 200 x 400 dpi
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM Supports 300 x 300 dpi
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM Supports 2400 bit/s
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM Supports 4800 bit/s
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM Supports 7200 bit/s
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM Supports 9600 bit/s
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM Supports 12000 bit/s
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM Supports 14400 bit/s
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM Supports A4 page width (215 mm)
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM Supports B4 page width (255 mm)
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM Supports A3 page width (303 mm)
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM Supports A4 page length (297 mm)
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM Supports B4 page length (364 mm)
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM Supports unlimited page length
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM Supports 1-D MH
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM Supports 2-D MR
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM Supports 2-D MMR
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM Supports JBIG
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM Supports no ECM
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM Supports T.30 Annex A, 64-byte ECM
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM Supports T.30 Annex A, 256-byte ECM
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM Supports 0 ms/scanline
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM Supports 5 ms/scanline
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM Supports 10 ms, 5 ms/scanline
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM Supports 10 ms/scanline
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM Supports 20 ms, 10 ms/scanline
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM Supports 20 ms/scanline
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM Supports 40 ms, 20 ms/scanline
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM Supports 40 ms/scanline
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: <-- [9:AT+FRM=?\r]
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: --> [39:24,48,72,73,74,96,97,98,121,122,145,146]
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: --> [2:OK]
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM WWW.SOFT-SWITCH.ORG spandsp/
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: <-- [5:ATM0\r]
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: --> [2:OK]
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: STATE CHANGE: BASE -> RUNNING (timeout 30)
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: MODEM input buffering disabled
Oct 3 04:23:18 ubuntuphone FaxSend[8338]: SEND FAX: JOB 38 DEST 1004 COMMID 000000123 DEVICE '/dev/ttyIAX0' FROM 'fax <fax@95.56.129.224>' USER fax
Oct 3 04:24:03 ubuntuphone FaxSend[8338]: SEND FAILED: JOB 38 DEST 1004 ERR [3] No answer from remote
Oct 3 04:24:04 ubuntuphone FaxQueuer[7153]: NOTIFY: bin/notify "sendq/q38" "requeued" "" "04:29"
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
Код: Выделить всё
iaxmodem ttyIAX0
[2013-10-03 03:46:02] Modem started
[2013-10-03 03:46:02] Setting device = '/dev/ttyIAX0'
[2013-10-03 03:46:02] Setting owner = 'uucp:uucp'
[2013-10-03 03:46:02] Setting mode = '660'
[2013-10-03 03:46:02] Setting port = 4570
[2013-10-03 03:46:02] Setting refresh = 60
[2013-10-03 03:46:02] Setting server = '127.0.0.1'
[2013-10-03 03:46:02] Setting peername = '2222'
[2013-10-03 03:46:02] Setting secret = 'password!'
[2013-10-03 03:46:02] Setting codec = alaw
[2013-10-03 03:46:02] Opened pty, slave device: /dev/pts/2
[2013-10-03 03:46:02] Removed old /dev/ttyIAX0
[2013-10-03 03:46:02] Created /dev/ttyIAX0 symbolic link
Ignoring unknown information element 'Unknown IE' (54) of length 0
[2013-10-03 03:46:02] Registration completed successfully.
Ignoring unknown information element 'Unknown IE' (54) of length 0
Ignoring unknown information element 'Unknown IE' (54) of length 0
Ignoring unknown information element 'Unknown IE' (54) of length 0
Ignoring unknown information element 'Unknown IE' (54) of length 0
Ignoring unknown information element 'Unknown IE' (54) of length 0
[2013-10-03 03:46:19] Hanging Up
[2013-10-03 03:46:23] Dialing '1004'
[2013-10-03 03:46:57] Registration completed successfully.
Ignoring unknown information element 'Unknown IE' (54) of length 0
Ignoring unknown information element 'Unknown IE' (54) of length 0
[2013-10-03 03:47:09] Hanging Up
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
Код: Выделить всё
ps -ef | grep fax
uucp 7153 1 0 03:43 ? 00:00:00 /usr/sbin/faxq
uucp 7156 1 0 03:43 ? 00:00:00 /usr/sbin/hfaxd -d -i 4559
uucp 7179 1 0 03:43 ? 00:00:05 /usr/sbin/faxgetty -D ttyIAX0
root 8381 3090 0 04:27 pts/3 00:00:00 grep --color=auto fax
Конфиги:
/etc/iaxmodem/ttyIAX0
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
Код: Выделить всё
device /dev/ttyIAX0
owner uucp:uucp
mode 660
port 4570
refresh 60
server 127.0.0.1
peername 2222
secret password!
codec alaw
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
Код: Выделить всё
[general]
bindport = 4569
bindaddr =0.0.0.0
disallow=all
allow=alaw
[2222]
type=friend
secret=password!
port=4570
host=dynamic
context=fax-tx
defaultexpirey= 360
requirecalltoken=no
qualify=yes
Код: Выделить всё
Name/Username Host Mask Port Status Description
2222 127.0.0.1 (D) 255.255.255.255 4570 OK (3 ms)
1 iax2 peers [1 online, 0 offline, 0 unmonitored]