Google Answers Logo
View Question
 
Q: Placing phone call from a linux server ( No Answer,   2 Comments )
Question  
Subject: Placing phone call from a linux server
Category: Computers > Programming
Asked by: amit_palshikar-ga
List Price: $4.50
Posted: 08 Oct 2003 13:48 PDT
Expires: 07 Nov 2003 12:48 PST
Question ID: 264327
I want to know if there is a way for me to make phone call to any
given number from a linux server? I am especially interested in
writing a php script that will do it for me. Will the server need to
have a phone/fax modem to achieve this?

Request for Question Clarification by denco-ga on 08 Oct 2003 14:35 PDT
Howdy amit_palshika,

There appears to be a hardware/software solution for what
you seek, but it does not appear to be PHP hackable, etc.

As part of the above package, you have to sign up for the
service, but they advertise "No monthly fees! No monthly
minimums! No connection fees!"

Would this work as an Answer for you?

Thanks!  denco-ga

Clarification of Question by amit_palshikar-ga on 08 Oct 2003 21:41 PDT
I am not sure whether that would solve my problem. What I intend to do
is that people would be able to signup on my website and then on
special occasions like their b'days, I would like my server/script to
place a call to them on the phone number on record and play a
prerecorded wav file. Can this be achieved using the solution that you
are suggesting?

Request for Question Clarification by webadept-ga on 09 Oct 2003 01:54 PDT
Hi, 

You are going to need a modem, and the sound libraries. It's going to
take some install's and some mucking about, but I know this can be
done. Several PBX systems now run on Linux (I use to work for a call
center as the sysAdmin) so I know the libraries and functions are out
there.

First, get a modem (56k) and the phone line and get it setup so that
you can dial out. After that, if you can get that far, I, or one of
the other researchers here will be able to help you with the rest.

webadept-ga
Answer  
There is no answer at this time.

Comments  
Subject: Re: Placing phone call from a linux server
From: siliconetix-ga on 13 Oct 2003 00:14 PDT
 
The better solution would be to run a script (PERL) as a cronjob. 
Each day at a particular time, it would execute, read the information
from the database or file with the b-day data, and generate an action
(if necessary).  This action can be to place a call, send an email,
etc.  Using PHP for this doesn't really make sense.  If a
hardware/software solution exists for making the call, you should be
able to access it via the system calls from within your script to make
the phone call.  Another (quicker) option might be to send them a text
message on their cell phone (pretty straight-forward using a number of
SMS interfaces -- try mobile.yahoo.com) by means of cURL.  Just a
thought...
Subject: Re: Placing phone call from a linux server
From: roderickm-ga on 25 Oct 2003 07:39 PDT
 
The Asterisk Open-Source PBX can do this for you and more. Asterisk is
free -- visit http://asterisk.org/ for more info. A modem really isn't
going to give you the reliability and audio quality you want anyway.
Believe me, I used Asterisk to replace a vgetty-based voicemodem
system, and the customers were extremely satisfied with the results.
You will be, too.

If you want to use a phone line directly connected to your linux
server, then you'll need an FXO interface. I strongly suggest that if
you choose Asterisk, you use Digium hardware. It's sold by the same
folks that actually developed Asterisk, and is designed specifically
to work well with Asterisk. It's also only $99.95, which is a steal as
far as telelphony interfaces are concerned.
   http://store.yahoo.com/asteriskpbx/wildcardx100p.html

If you don't want to pay for an extra phone line and FXO interface, or
plan not to make a lot of calls, consider using a VoIP provider that
will connect you to the public switched telephone network at
competitive rates. Within the Asterisk community of users, NuFone
comes highly recommended. I use them myself, and you could make almost
60 hours of calls for about the same as it would cost to buy the FXO
interface. They have excellent support via email and participate often
in the Asterisk-Users mailing list, though their website is still
under development.
   http://nufone.net/

Finally, for an explanation of how it would all be put together: your
PHP script would need to verify the request with a call or email. Be
aware of the potential for abuse (a script could quickly sign up a
thousand different email addresses all with the same victim's phone
number, scheduled for calling on a single day). Once you've
sufficiently verified the request, your PHP script should log it in a
small database.

Then write a small perl script that is triggered by cron every day.
The perl script would look in the database to see if there are any
calls scheduled for the day. If so, the script dynamically generates
an outgoing call file for each call to be made and drops it in
/var/spool/asterisk/outgoing. Once you have Asterisk installed, see
the "sample.call" file for an example of the outgoing call file. The
application specified by the call file might be a simple Playback of a
canned WAV file, an interactive voice response (i.e., "press 1 to
leave a return message," etc.), or even a speech-synthesized dynamic
greeting customized to your recipient.

If this is a project with a budget, feel free to contact me for
implementation assistance. If it's just a hobby thing, then read the
asterisk-users list archives, join the list, and have fun with open
source telephony!

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy