не могу настроить callback с помощью ppp+mgetty
без калбека работает все нормально, прописываю номер телефона в ppp.secret
модем с сервера звонит к клиенту, с обоих сторон поднимают трубку но "шумит" модем только на стороне клинта
через некоторое время сервер ложит трубку.
ОС сервера bsd 4.10 stable, клинета ХР.
вот лог:
Jul 10 05:43:58 bsd ppp[90812]: tun0: Chat: Phone: 555555
Jul 10 05:43:58 bsd ppp[90812]: tun0: Chat: deflink: Dial attempt 1 of 1
Jul 10 05:43:58 bsd ppp[90812]: tun0: Chat: Send: AT^M
Jul 10 05:43:58 bsd ppp[90812]: tun0: Chat: Expect(25): OK
Jul 10 05:43:59 bsd ppp[90812]: tun0: Chat: Received: AT^M^M
Jul 10 05:43:59 bsd ppp[90812]: tun0: Chat: Received: OK^M
Jul 10 05:43:59 bsd ppp[90812]: tun0: Chat: Send: ATDT555555^M
Jul 10 05:43:59 bsd ppp[90812]: tun0: Chat: Expect(25): CONNECT
Jul 10 05:44:24 bsd ppp[90812]: tun0: Chat: Expect timeout
Jul 10 05:44:24 bsd ppp[90812]: tun0: Warning: Chat script failed
Jul 10 05:44:24 bsd ppp[90812]: tun0: Phase: deflink: dial -> hangup
Jul 10 05:44:24 bsd ppp[90812]: tun0: Phase: deflink: Disconnected!
Jul 10 05:44:24 bsd ppp[90812]: tun0: Phase: deflink: Connect time: 26 secs: 0 octets in, 0 octets out
Jul 10 05:44:24 bsd ppp[90812]: tun0: Phase: deflink: 12 packets in, 7 packets out
Jul 10 05:44:24 bsd ppp[90812]: tun0: Phase: total 0 bytes/sec, peak 0 bytes/sec on Sat Jul 10 05:43:58
2004
Jul 10 05:44:24 bsd ppp[90812]: tun0: Phase: deflink: hangup -> closed
Jul 10 05:44:24 bsd ppp[90812]: tun0: Phase: bundle: Dead
Jul 10 05:44:24 bsd ppp[90812]: tun0: Phase: PPP Terminated (normal).
ppp.conf:
------------------
dialin:
enable pap passwdauth
set log Phase Chat LCP IPCP CCP tun command
set ifaddr 10.0.0.2 10.0.0.0/24
set speed 57600
set device /dev/cuaa0 /dev/cuaa1
set callback cbcp
set cbcp
set log +cbcp
set dial "TIMEOUT 25 \"\" AT OK-AT-OK ATDT\\T CONNECT"
ppp.secret:
--------------------
dial * 10.0.0.201 * 555555
login.config:
--------------------
/AutoPPP/ - - /etc/ppp/ppp.sh
ppp.sh:
-------------------
#!/bin/sh
/usr/sbin/ppp -direct dialin
mgetty.config:
-------------------
debug 4
fax-id 00 00 000000
speed 57600
direct NO
blocking NO
port-owner uucp
port-group uucp
port-mode 0660
toggle-dtr YES
toggle-dtr-waittime 500
data-only NO
fax-only NO
modem-type auto
init-chat "" ATS0=0Q0&D3&C1 OK
modem-check-time 3600
rings 1
answer-chat "" ATA CONNECT \c \r
answer-chat-timeout 80
autobauding NO
ringback NO
ringback-time 30
ignore-carrier false
issue-file /etc/issue
prompt-waittime 500
login-prompt @!login:
login-time 240
diskspace 1024
notify faxadmin
fax-owner uucp
fax-group modem
fax-mode 0660
в логе есть ошибка: "Warning: Chat script failed", какой еще chat script нужен для калбека?!