mpd as a dial-in server
Dmitry Tolstov
dima at ibch.ru
Fri Dec 17 13:17:29 PST 2004
Hello,
I am trying to configure mpd-3.18_2 as a dial-in server with USR
Sportster voice modem. It works perfectly, but if connection dies
during authentication mpd says "waiting for ring" but keeps on
attempts:
...
AUTHPROTO CHAP MD5
[usr] LCP: rec'd Terminate Request #3 link 0 (Ack-Sent)
[usr] LCP: state change Ack-Sent --> Req-Sent
[usr] LCP: SendTerminateAck #8
[usr] LCP: SendConfigReq #9
ACFCOMP
PROTOCOMP
ACCMAP 0x000a0000
MRU 1500
MAGICNUM 765bac42
AUTHPROTO CHAP MD5
[usr] LCP: rec'd Terminate Request #4 link 0 (Req-Sent)
[usr] LCP: SendTerminateAck #10
[usr] LCP: SendConfigReq #11
ACFCOMP
PROTOCOMP
ACCMAP 0x000a0000
MRU 1500
MAGICNUM 765bac42
AUTHPROTO CHAP MD5
[usr] carrier detect (CD) signal lost
[usr] device: DOWN event in state UP
[usr] device is now in state DOWN
[usr] link: DOWN event
[usr] LCP: Down event
[usr] LCP: state change Req-Sent --> Starting
[usr] LCP: phase shift ESTABLISH --> DEAD
[usr] device: OPEN event in state DOWN
[usr] pausing 7 seconds before open
[usr] device is now in state DOWN
[usr] chat: Waiting for ring...
[usr] device: OPEN event in state DOWN
[usr] pausing 2 seconds before open
[usr] device is now in state DOWN
[usr] device: OPEN event in state DOWN
[usr] device is now in state OPENING
[usr] chat script succeeded
[usr] device: UP event in state OPENING
[usr] device is now in state UP
[usr] link: UP event
[usr] link: origination is remote
[usr] LCP: Up event
[usr] LCP: state change Starting --> Req-Sent
[usr] LCP: phase shift DEAD --> ESTABLISH
[usr] LCP: SendConfigReq #12
ACFCOMP
PROTOCOMP
ACCMAP 0x000a0000
MRU 1500
MAGICNUM 1ee9dd8a
AUTHPROTO CHAP MD5
MP MRRU 1600
MP SHORTSEQ
ENDPOINTDISC [802.1] 00 80 48 c4 43 b1
[usr] carrier detect (CD) signal lost
[usr] device: DOWN event in state UP
[usr] device is now in state DOWN
[usr] link: DOWN event
[usr] LCP: Down event
[usr] LCP: state change Req-Sent --> Starting
[usr] LCP: phase shift ESTABLISH --> DEAD
[usr] device: OPEN event in state DOWN
[usr] pausing 9 seconds before open
[usr] device is now in state DOWN
[usr] chat: Detected USR Sportster modem.
[usr] chat: Waiting for ring...
[usr] device: OPEN event in state DOWN
[usr] device is now in state OPENING
[usr] chat script succeeded
[usr] device: UP event in state OPENING
[usr] device is now in state UP
[usr] link: UP event
[usr] link: origination is remote
[usr] LCP: Up event
[usr] LCP: state change Starting --> Req-Sent
[usr] LCP: phase shift DEAD --> ESTABLISH
[usr] LCP: SendConfigReq #13
ACFCOMP
PROTOCOMP
ACCMAP 0x000a0000
MRU 1500
MAGICNUM 0682471d
AUTHPROTO CHAP MD5
MP MRRU 1600
MP SHORTSEQ
ENDPOINTDISC [802.1] 00 80 48 c4 43 b1
[usr] carrier detect (CD) signal lost
[usr] device: DOWN event in state UP
[usr] device is now in state DOWN
[usr] link: DOWN event
[usr] LCP: Down event
[usr] LCP: state change Req-Sent --> Starting
[usr] LCP: phase shift ESTABLISH --> DEAD
[usr] device: OPEN event in state DOWN
[usr] pausing 9 seconds before open
[usr] device is now in state DOWN
[usr] chat: Detected USR Sportster modem.
[usr] chat: Waiting for ring...
[usr] device: OPEN event in state DOWN
[usr] device is now in state OPENING
[usr] chat script succeeded
[usr] device: UP event in state OPENING
[usr] device is now in state UP
[usr] link: UP event
[usr] link: origination is remote
[usr] LCP: Up event
[usr] LCP: state change Starting --> Req-Sent
[usr] LCP: phase shift DEAD --> ESTABLISH
[usr] LCP: SendConfigReq #14
ACFCOMP
PROTOCOMP
ACCMAP 0x000a0000
MRU 1500
MAGICNUM b52aae59
AUTHPROTO CHAP MD5
MP MRRU 1600
MP SHORTSEQ
ENDPOINTDISC [802.1] 00 80 48 c4 43 b1
[usr] carrier detect (CD) signal lost
[usr] device: DOWN event in state UP
[usr] device is now in state DOWN
[usr] link: DOWN event
[usr] LCP: Down event
[usr] LCP: state change Req-Sent --> Starting
[usr] LCP: phase shift ESTABLISH --> DEAD
[usr] device: OPEN event in state DOWN
[usr] pausing 7 seconds before open
[usr] device is now in state DOWN
...
and so on
When I try to redial mpd answers the phone and hangs up immediately.
mpd.conf
default:
load dialin
dialin:
new -i ng0 dialin usr
set iface addrs 192.168.1.210 192.168.1.1
set iface idle 0
set iface session 0
set bundle enable noretry
set ipcp dns 194.85.9.11
set ipcp ranges 192.168.1.210/32 192.168.1.1/32
set ipcp yes vjcomp
set link enable chap-md5
set link disable pap chap-msv1 chap-msv2
set link deny chap pap
set link yes acfcomp protocomp
set modem idle-script AnswerCall
mpd.links
usr:
set link type modem
set modem device /dev/cuaa1
set modem speed 115200
Thanks,
-Dmitry.
More information about the freebsd-questions
mailing list