You are not logged in.

1

Saturday, April 17th 2004, 8:37am

Script to dial phone

Hi,

kde AddressBook can dial-out telephone. In Settings box there is place to type in Dial-out script name (Script-Hooks).

But I can NOT find reasonable script to dial normal phone connected to AT modem. I have SDI internet connection and phone is connected to modem only to allow easy dialing from kAddressBook.

Any suggestions?

Marek

P.S.

I have tested my own simple script

echo ATDT$1 > /dev/modem
#wait 2 seconds
echo ATH > /dev/modem

It sort of works but wait time should be varied for short and long (i.e. international) numbers. Better solution will be to check modem response (i.e. OK).

m4ktub

Intermediate

Posts: 257

Location: Lisbon, Portugal

Occupation: Software Engineer

  • Send private message

2

Monday, April 19th 2004, 3:22pm

Have you looked at the chat command. I don't know if it solves you problem but it is quite complex.

I can't post a link to the manpage but you can alway type yourself "man:chat" in the konqueror location bar.

3

Thursday, April 22nd 2004, 7:21am

Oh man... you'd think this would be easy but it's not.

This used to work for me, but no longer. Maybe you'll have more luck with it:
[code:1]
/usr/sbin/chat '' ATZ OK ATDP%N < /dev/ttyS0 > /dev/ttyS0
[/code:1]

I can't seem to use chat anymore, which is the main problem I think. Beats me why (Debian Sid).