mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
1) Add \p\c after CONNECT for modems which give CONNECT before
carrier up 2) Add more chat-fail codes 3) Add comment about complete/abort scripts, when modem handle DTR drop properly
This commit is contained in:
parent
bacf044f40
commit
a36226d6ef
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=1450
|
@ -23,13 +23,17 @@ dialer hayes
|
|||
# 4) send "ATDT", then the telephone number (after translating any
|
||||
# dialcodes).
|
||||
# 5) wait until the modem echoes "CONNECT"
|
||||
chat "" ATZ\r\d\c OK ATDT\T CONNECT
|
||||
# 6) Wait a little more, if your modem give CONNECT before carrier up
|
||||
chat "" ATZ\r\d\c OK ATDT\T CONNECT \p\c
|
||||
|
||||
# If we get "BUSY" or "NO CARRIER" during the dial chat script we
|
||||
# abort the dial immediately.
|
||||
chat-fail BUSY
|
||||
chat-fail ERROR
|
||||
chat-fail NO\sDIALTONE
|
||||
chat-fail NO\sCARRIER
|
||||
|
||||
# When the call is over, we make sure we hangup the modem.
|
||||
# You don't need this stuff, if you modem can handle DTR drop properly
|
||||
complete \d\d+++\d\dATH\r\c
|
||||
abort \d\d+++\d\dATH\r\c
|
||||
|
|
Loading…
Reference in a new issue