LINUX.ORG.RU
ФорумAdmin

mgetty каждые 5 секунд переинициализирует модем


0

0

Пытаюсь настроить dial-in server. Запустил mgetty, а она мне переинициализацию модема каждые 5-10 секунд запускает. и в логах вот что пишет:
03/06 14:21:29 yS1  mgetty: experimental test release 1.1.25-Feb01
03/06 14:21:29 yS1  check for lockfiles
03/06 14:21:29 yS1  locking the line
03/06 14:21:29 yS1  lowering DTR to reset Modem
03/06 14:21:30 yS1  send: ATZ[0d]
03/06 14:21:30 yS1  waiting for ``OK'' ** found **
03/06 14:21:30 yS1  send: ATE1[0d]
03/06 14:21:30 yS1  waiting for ``OK'' ** found **
03/06 14:21:30 yS1  send: ATQ2[0d]
03/06 14:21:30 yS1  waiting for ``OK'' ** found **
03/06 14:21:30 yS1  send: AT&C1[0d]
03/06 14:21:30 yS1  waiting for ``OK'' ** found **
03/06 14:21:30 yS1  send: AT&D3[0d]
03/06 14:21:30 yS1  waiting for ``OK'' ** found **
03/06 14:21:30 yS1  send: ATL5[0d]
03/06 14:21:30 yS1  waiting for ``OK'' ** found **
03/06 14:21:30 yS1  send: ATS0=0[0d]
03/06 14:21:30 yS1  waiting for ``OK'' ** found **
03/06 14:21:30 yS1  send: AT&W0&W1[0d]
03/06 14:21:30 yS1  waiting for ``OK'' ** found **
03/06 14:21:31 yS1  send: ATI2[0d]
03/06 14:21:31 yS1  do_stat: expect 'OK' ** found **
03/06 14:21:31 yS1  send: ATI12[0d]
03/06 14:21:31 yS1  do_stat: expect 'OK' ** found **
03/06 14:21:31 yS1  waiting...
03/06 14:21:31 yS1  wfr: waiting for ``RING''
03/06 14:21:41 yS1  mdm_read_byte: read returned -1: Interrupted system call
03/06 14:21:41 yS1  wfr: timeout waiting for RING
03/06 14:21:41 yS1  huh? Junk on the line?
03/06 14:21:41 yS1   >>> could be a dial-out program without proper locking - check this!

Уж и так и сяк бился, немогу понять в чем проблемма. Трубу модем берёт нормально, вот только договориться с звонящим модемом неможет. Конфиг на mgetty прилагаю:
# mgetty configuration file
debug 4
fax-id 00 00 000000
fax-owner root
fax-group uucp
fax-mode 0660
port ttyS1
port-owner uucp
port-group uucp
port-mode 0664
direct NO
blocking YES
toggle-dtr YES
toggle-dtr-waittime 500
speed 115200
modem-type auto
data-only YES
fax-only NO
modem-check-time 3600
force-init-chat "" \d\d\d+++\d\d\dATH0 OK ATZ OK
init-chat "" ATZ OK ATE1 OK ATQ2 OK AT&C1 OK AT&D3 OK ATL5 OK ATS0=0 OK AT&W0&W1 OK
answer-chat "" ATA CONNECT \c \r
answer-chat-timeout 80
statistics-chat "" ATI2 OK ATI12 OK
statistics-file /var/log/ppp/ppp.stat
autobauding NO
ringback NO
ringback-time 30
ignore-carrier false
issue-file /etc/issue.net
prompt-waittime 500
login-prompt @_login:
login-time 240
diskspace 1024

Помогите плз.
anonymous
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.