Results 1 to 2 of 2
Hi,
I am trying to create a command-line phone dialer to use in a php app.
when using wvdialconf, it creates this wvdial.conf file:
[Dialer Defaults]
Init2 = ATQ0 V1 ...
- 06-10-2011 #1Just Joined!
- Join Date
- Jun 2011
- Posts
- 2
modem init string from wvdial
Hi,
I am trying to create a command-line phone dialer to use in a php app.
when using wvdialconf, it creates this wvdial.conf file:
[Dialer Defaults]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Phone = 12345
ISDN = 0
Username = user
Init1 = ATZ
Password = pwd
Modem = /dev/ttyS6
Baud = 230400
when I enter wvdial on the command prompt, it works. wvdial is for connecting to the internet. i want to establish a voice call, so wvdial has to hang up after dialing the number. it isn't build for that.
My question is: How can I put together a init string i can send to the modem like this:
$ echo [init string] > /dev/ttyS6
if I only do: '$ echo ATDT123456 > /dev/ttyS6' nothing happens.
if I send above int1 and init2 strings to the modem i get an error message: command x doesn't exist.
I tried this with a UCOM nordic v90 and a U.S. robotics 56k external (serial) modem.
- 06-11-2011 #2Just Joined!
- Join Date
- Jun 2011
- Posts
- 2
solved
I got it working with a kermit-script:
#!/usr/local/bin/kermit +
SET LINE /dev/ttyS6
DIAL 0123456789;
ECHO OK
EXIT
END 0
install the package ckermit.
save this script in a text file and run it ($ kermit filename)
any better / faster solutions?


Reply With Quote