I'm still trying to produce the dial-tone with mgetty.
This is my mgetty.config file in /etc/mgetty
Code:
debug 4
fax-id
speed 38400
issue-file /etc/issue.mgetty
init-chat ""
This is my options file in /etc/ppp
Code:
debug
login
require-pap
ms-dns 192.168.1.1
proxyarp
ktune
This is my options.ttySHSF1 in /etc/ppp
Code:
192.168.1.150:192.168.1.151
netmask 255.255.255.0
*Note: ttySHSF1 is the name of the modem I'm using
I can connect with some things, but if it requires a dial-tone, I have to do annoying, lengthy workarounds that are needed if I can do this.
Code:
# resets the modem
ATZE1
# puts the modem into voice mode
AT+FCLASS=8
# opens the connection
AT+VLS=1
# produces the tone
AT+VTS=[440,350,255]
# closes the connection so it can answer
ATH
# answers the connection
ATA
These are what I need to set my modem to do, I think it needs to be ran in a script style, executing one after another.
I don't understand how to do this, or what the syntax for multiple commands are.
I thought it might have to do with the init-chat line in mgetty.config but after looking it up online, it seems it goes in the forum of a send, confirm, send, confirm..., I think I just need to do it in a forum of send, send, send....
If I have to do it in the init-chat sequence, how to I string the modem commands together?
Do I do it like this:
Code:
init-chat "ATZE1&AT+FCLASS=8&AT+VLS=1&AT+VTS=[440,350,255]&ATH&ATA"
Or this:
Code:
init-chat "ATZE1;AT+FCLASS=8;AT+VLS=1;AT+VTS=[440,350,255];ATH;ATA"
Or this:
Code:
init-chat "ATZE1 ok AT+FCLASS=8 ok AT+VLS=1 ok AT+VTS=[440,350,255] okATH ok ATA"
Or this:
Code:
init-chat "ATZE1AT+FCLASS=8AT+VLS=1AT+VTS=[440,350,255]ATHATA"
Or some other way?
I'm very eager to get this working.
Thank you.
Bookmarks