KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    Linux42.org    OpenSkillz.com   


- Content .- Fans  .- Knowledge Base  . 



KDE Other Utility

Score 65%


Link:  http://
Downloads:  956
Submitted:  Sep 19 2004
Updated:  Nov 11 2004


The phone-dialer is a small and simple perl-program that uses an analogous modem to dial.

I used it to enhance kaddressbook, so phone numbers are clickable (see screenshot). That's the reason why I post it here, though it is not really a KDE application ...

It works with my modem and my system, but I have no experiences gathered with other configurations. However, the Hayes-AT-commandset for modems is a standard and should work for every modem.

Just copy or move the phone.pl file somewhere in your $PATH.

A few command line options are described in the file itself. The most important are:
"call 'number'" or "dial 'number'" -- dials
"hangup" -- hangs up the modem
"--device=/dev/modem" -- selects the device file

Something about the number:
You can use numbers with leading + and country code ("+33 2 123456" for a number in france). If the country code is equal with your given area-code (--area=33), then +33 is omitted and replaced by a 0 (zero). Otherwise (if the number is not startet by +), nothing is changed, except that "-" _within_ numbers are removed ("069-1234-5678-90"). Spaces whithin numbers are allowed, but then the whole number has to be in ".

Of course, I give absolutely no guaranty, that phone.pl does not kill you, your system, the president or anybody else ;-)


- GUI-interface for hangup (use --ui=kde or --ui=tk as option)
- minor bugfixes
- using Getopt::Long for handling of options
- more general default-values

Send to a friend
Other  Apps  from reiter
Report inappropriate content


 don't work

 by sarahb523 on: Sep 30 2004
Score 50%

Your script don't work for my elsa mikrolink 56K. The initstring is ATZ and a pick up isn't alowed. After init and sending the dial string your script hangs in the loop of phone_readecho.

I wrote a very simple bash script without any "intelligence" and it works great:

# phone.sh
BEEP=`which beep`

if [ -n $BEEP ]; then
beep -f 800

echo "ATDT$1;" >> /dev/modem
sleep 1
kdialog --msgbox "After the connection is established, pick up the phone and press ok. "
echo "ATH0" >> /dev/modem

The only thing I have to do is the removal of any non numeric character in the number string.

Reply to this


 Re: don't work

 by reiter on: Sep 30 2004
Score 50%

If you have "ATZ" as initstring, "AT ATZ" will be sent to the modem -- You have to give just the Z (or whatever) without the "AT".

I don't deny that your script works well, but phone.pl gives you more (not documented ... (-: ) comfort. Not only that it does some initialization (volume of the modem for example). Other commands like "redial" are as well as possible ("phone redial").

Reply to this


 Dial and Hangup

 by stegru on: Oct 1 2004
Score 50%

Both scripts are working well.

But how do you manage dialing and hanging-up after picking up the phone
from within Kadressbook with the Perl-Program?
You can call phone.pl either for a
call or for hangup, don't you?

What about adding a simple dialog
for this task like the shell-script


Reply to this


 Re: Dial and Hangup

 by reiter on: Oct 2 2004
Score 50%

On my system, I added phone.pl as Non-KDE-program with parameter "hangup" to Kicker, so I just have to click to hangup. But that is mainly an improvised solution though it works well.

But I am working on a better solution:
I think of a small window too, but since the script itself is not dependent on KDE, I think I shouldn't use something like kdialog.

Reply to this


 tone no phone

 by zdravo on: Dec 9 2004
Score 50%

I tried your script, but although it brings up the dial tone it doesn't dial the number.

I'm using a conexant winmodem on mandrake 10.1 with drivers from linuxant.

Any ideas would be welcome, as would an idiots guide on how to "plug" this in to kde3 address book.


Reply to this


 Doesn't work at all

 by bbroeksema on: Jan 17 2006
Score 50%

Hi the script doesn't work at all for me. (Both don't work, btw). This is the first time i try something with a modem in linux so i probably forget something. Can you give me some hints on things i could try? Kernel configuration for example.

Reply to this


 Have to install perl-tk to run

 by BryanFRitt on: May 20 2009
Score 50%

Had to install perl-tk to run this, otherwise, I'd get this message, when I try to run it:

Can't locate Tk.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/bin/phone.pl line 6.
BEGIN failed--compilation aborted at /usr/bin/phone.pl line 6.

Reply to this


 read() on closed filehandle FH

 by BryanFRitt on: May 20 2009
Score 50%

When I try to run this program, I get a bunch of

read() on closed filehandle FHR at ./16319-phone.pl line 163.

errors, and nothing else.

Reply to this

Add commentBack

How do you like Plasma 5?
 The best KDE Desktop ever.
 Definitely a nice improvement.
 Not decided yet. Haven't tried it yet.
 I do not like some of the changes.
 KDE is taking the wrong way.
 I am still sticking with KDE 3.5.
 I have no opinion, but wanted to vote anyway.

 Who we are
More about us
Frequently Asked Questions
Updates on identi.ca
Updates on Twitter
Content RSS   
Events RSS   

Add App
Public API
About KDE-Apps.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Sponsor us
Report Abuse

Copyright 2003-2016 KDE-Apps.org Team  
All rights reserved. KDE-Apps.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
KDE and K Desktop Environment are trademarks of KDE e.V.