Click to See Complete Forum and Search --> : Script to dial the phone...?


CraigM
11-14-2002, 08:34 PM
Can anyone here tell me how to build a simple script to dial out on the phone? Not to get PPP or a modem connection, just to dial the phone.

Here's a try that didn't work:

#!/bin/bash
#Dialout script
echo ATDT$1 > /dev/modem

with a mate to hang up when I pick up the phone to talk:

#!/bin/bash
#Reset modem
echo ATH >/dev/modem
echo ATZ >/dev/modem

The dialout does not get the modem, an external USR Sportster V90, to dial out. The lights flicker but that's all.

If I change the redirection (">") to a pipe ("|") the TR light comes on and stays on until I run the reset command.

Does anyone know how to get this modem, which is very standard and accepts normal AT commands, to pick up and dial out using a simple bash script?

Craig

TomSi
11-14-2002, 09:33 PM
Originally posted by CraigM
Can anyone here tell me how to build a simple script to dial out on the phone? Not to get PPP or a modem connection, just to dial the phone.

Here's a try that didn't work:

#!/bin/bash
#Dialout script
echo ATDT$1 > /dev/modem

with a mate to hang up when I pick up the phone to talk:

#!/bin/bash
#Reset modem
echo ATH >/dev/modem
echo ATZ >/dev/modem

The dialout does not get the modem, an external USR Sportster V90, to dial out. The lights flicker but that's all.

If I change the redirection (">") to a pipe ("|") the TR light comes on and stays on until I run the reset command.

Does anyone know how to get this modem, which is very standard and accepts normal AT commands, to pick up and dial out using a simple bash script?

Craig
I don't know how to dial the phone, but I think there are some of problems in your command.
the > is adding the data to the end of /dev/moduem, and the | is building a pipe pass the data to /dev/moduem, and let /dev/moduem handle this data. but I don't think the /dev/moduem can do it.
I think you should find out a application can work with AT command.
Maybe I am wrong, so I want go on talking it with you.

CraigM
11-14-2002, 10:04 PM
Thanks, Tom. Actually, I've been looking for a small app that would dial the phone for me. Haven't found such a thing in Linux, which surprised me at first. then I realized Linux hasn't really been targeted for the desktop user until the most recent distributions. So it's no surprising that little touches like paste-and-dial-it phone dialers aren't available.

I'd use one of the many Windows dialers if I knew how to direct it to the serial port...

Craig