Connecting Tech Pros Worldwide Forums | Help | Site Map

Telephony project

Roger
Guest
 
Posts: n/a
#1: Sep 26 '05
I'm new to Python and need to do a (low level, I think) telephony
project ( POTS, all local calling) in WinXp.
1. Fetch phone number from my ASCII data.
2. Dial (always a local number) phone (through USRobotics 56K? ).
3. Ask @3 questions to called phone number. Y/N Y/N Y/N
4. Save answers to ASCII file.
5. Say 'Thanks', hang up.
Repeat till eof()
And...I've not seen any telephony books in/for Python. Any and all
help, suggestions, directions, etc. would be *GREATLY* appreciated.

TIA


Paul Rubin
Guest
 
Posts: n/a
#2: Sep 26 '05

re: Telephony project


"Roger" <maxwell.roger@googlemail.com> writes:[color=blue]
> 1. Fetch phone number from my ASCII data.
> 2. Dial (always a local number) phone (through USRobotics 56K? ).
> 3. Ask @3 questions to called phone number. Y/N Y/N Y/N
> 4. Save answers to ASCII file.
> 5. Say 'Thanks', hang up.
> Repeat till eof()[/color]

There is an excellent graphic on the web showing how to do this phone
spamming with Python. It used to be at http://goatse.cx but I don't
know where it is now.
Roger
Guest
 
Posts: n/a
#3: Sep 27 '05

re: Telephony project


"CheckOn" is the working name for my project. Our church
community has many elderly who are at home but close to assisted living
placements. Many do not have family and rely on volunteer caretakers
and lunch providers for their socialization. We are trying to make
phone contact with these members to check on their needs, wellbeing,
and ability to take care of themselves. In sharing that information
with other denominations in our city, we discovered that others were
having identical issues. The numbers are larger than we anticipated.
Thus the project. Thanks for your interest.

Mike
Guest
 
Posts: n/a
#4: Sep 27 '05

re: Telephony project



I was able to do something like this in Python a while back. You'll need one
of:
(a) A telephone line dialer/monitor & DTMF I/O board that works through the
serial port, and a phone audio tap that mixes the soundcard I/O to the phone
(b) A TAPI-compliant modem that does everything you need
(c) A digital POTS phone that is controllable through serial, USB or your
LAN, or a TAPI interface.
(d) VOIP software and service than uses SIP, etc. (I found this I found
this:
http://softphones.globaliptel.com/(c...e844bcd86b2955,
but am in no way endorsing it. Also check out http://www.sipfoundry.org/)

I used method (a) -- (b) tends to be a pain (as most OEM TAPI modems have
some fatal flaw or three...) and (c/d) may be more possible now that before.
I used voice reco on the input side rather then DTMF, but I was doing it
from local phone exensions on the same loop, not for outside calls, and not
for the elderly, so DTMF is probably better anyway. (If you need to know the
exact hardware I used, I can find out.)

The other option is to not have your own hardware at all and use a
service -- there are companies provide web services that let you
write/generate markup (VoiceXML or other) to make the calls, wait for DTMF
or voice input, etc. (Though I had trouble Googling one at the moment -
there were more a few years ago...)

m



"Roger" <maxwell.roger@googlemail.com> wrote in message
news:1127816655.712927.289850@g14g2000cwa.googlegr oups.com...[color=blue]
> "CheckOn" is the working name for my project. Our church
> community has many elderly who are at home but close to assisted living
> placements. Many do not have family and rely on volunteer caretakers
> and lunch providers for their socialization. We are trying to make
> phone contact with these members to check on their needs, wellbeing,
> and ability to take care of themselves. In sharing that information
> with other denominations in our city, we discovered that others were
> having identical issues. The numbers are larger than we anticipated.
> Thus the project. Thanks for your interest.
>[/color]


aaron
Guest
 
Posts: n/a
#5: Sep 27 '05

re: Telephony project


It will be much easier to use asterisk, there's a win32 version aterisk
available but it does not support hardware phone, voip only.
A clone FXO card only cost $15 on ebay.

"Roger" <maxwell.roger@googlemail.com> wrote in message
news:1127758835.527555.217870@g47g2000cwa.googlegr oups.com...[color=blue]
> I'm new to Python and need to do a (low level, I think) telephony
> project ( POTS, all local calling) in WinXp.
> 1. Fetch phone number from my ASCII data.
> 2. Dial (always a local number) phone (through USRobotics 56K? ).
> 3. Ask @3 questions to called phone number. Y/N Y/N Y/N
> 4. Save answers to ASCII file.
> 5. Say 'Thanks', hang up.
> Repeat till eof()
> And...I've not seen any telephony books in/for Python. Any and all
> help, suggestions, directions, etc. would be *GREATLY* appreciated.
>
> TIA
>[/color]


Miki Tebeka
Guest
 
Posts: n/a
#6: Sep 28 '05

re: Telephony project


Hello Roger,
[color=blue]
> 1. Fetch phone number from my ASCII data.[/color]
Trivial in Python.
[color=blue]
> 2. Dial (always a local number) phone (through USRobotics 56K? ).[/color]
Can't recall that.[color=blue]
> 3. Ask @3 questions to called phone number. Y/N Y/N Y/N[/color]
You can use flite (http://www.speech.cs.cmu.edu/flite/) for Text-To-Speech.
(e.g. system("flite -t 'how are you?'"))
[color=blue]
> 4. Save answers to ASCII file.[/color]
You need to get the audio, maybe you can use portaudio
(http://www.portaudio.com/)
[color=blue]
> 5. Say 'Thanks', hang up.[/color]
flit again.
[color=blue]
> Repeat till eof()[/color]
Trivial.

HTH.
--
------------------------------------------------------------------------
Miki Tebeka <mtebeka@qualcomm.com>
http://tebeka.bizhat.com
The only difference between children and adults is the price of the toys

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)

iD8DBQFDOorp8jAdENsUuJsRAqcdAJ4g+PK/IngBFKEIHBzUfdnFCBw1VQCgu4Cv
fkv6Mdc7TfS+1oEVaDN0dbk=
=iT+3
-----END PGP SIGNATURE-----

Roger
Guest
 
Posts: n/a
#7: Sep 29 '05

re: Telephony project


Thanks for all the helpful postings! A clearer specification for
my project is that the CALLER speaks directly to list_member. And
enters, thru GUI checkbox(s), answering: r_u_ok?; Send chuch member to
visit list_member; call Social Worker, help needed, etc. An important
element is to verify that the elderly member has been called. When,
and by whom. And if additional care, contact is needed.
After reading replys I think I can do all Python work. I'm
looking at pySerial to manage the phone calls. The s/w needs to be
GUI, ez to use (elderly volunteers) and work on donated (read 'old')
hardware. Thank you all for your advice, pointers, and suggestions. rm

Closed Thread