Solved

How to get a modem to answer the phone and play a WAV file...

Posted on 2004-08-09
11
333 Views
Last Modified: 2011-10-03
Hi,

I wish to develop an app that dows the following:

  1. Answer the phone (via a Modem)
  2. Play a WAV file to the person on the other end of the line
  3. Listens for DTMF tones to recognise the number(s) entered

Any ideas???

Thanks,

James
0
Comment
Question by:jatkin
11 Comments
 
LVL 22

Accepted Solution

by:
DarkoLord earned 500 total points
ID: 11751297
Hi, try looking at this project... It has all the things you want...

http://www.geocities.com/sfrare/vbtapi3.html

Darko
0
 
LVL 7

Expert Comment

by:_agj_
ID: 11751340
there is a ms modem control supplied in vb....
0
 
LVL 4

Author Comment

by:jatkin
ID: 11751933
Hi DarkoLord...

This looks like exactly what I am after, however, I have a Lasat 560 Voice modem and it does not come up in the list of available devices??  
Any ideas?

James
0
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
LVL 22

Expert Comment

by:DarkoLord
ID: 11752068
Maybe it doesn't support audio (TAPIMEDIATYPE_AUDIO)... Try to debug the FilleDeviceList function in dlgsetup form and see where it filters your device...

Darko
0
 
LVL 5

Expert Comment

by:amit1978
ID: 11752347
I also looking for the same answer.

Thanks DarkoLoard


0
 
LVL 4

Author Comment

by:jatkin
ID: 11760096
Hi...

I've been having real problems with the Lasat Modem, so I've switched to a US Robotics Sportster Voice 33.6...

It is working better than before, but now when I run the sample software, the modem answers the call and instead of playing the message, it appears to overwrite the GREET.WAV file with one minutes worth of silence!!!

As far as the hardware is concerned, I am a little confused that the Wave Device driver for the modem is installed as a "Unimodem Half-Duplex Audio Device"

I believe that this is a reincarnation of the Wave device installed for the Lasat, but XP won't let me install the correct driver!

Don't know if this is the cause, but I thought it would be worth mentioning....

Any ideas?

James
0
 
LVL 22

Expert Comment

by:DarkoLord
ID: 11761045
Hmm you can try some of the answering machine programs that can be found on www.download.com (search for "answering machine") so you can see if it's a hardware/driver or software problem

Darko
0
 
LVL 4

Author Comment

by:jatkin
ID: 11791810
Hi,

Ok, I now have a nice shiny new Data/Voice/Fax modem...

Still get no selectable modems in the list of devices????  I've checked out the 'FillDeviceList' and I get the following results for objCrtAddress.ServiceProviderName:

   unimdm.tsp
   kmddsp.tsp
   kmddsp.tsp
   ndptsp.tsp
   ndptsp.tsp
   ipconf.tsp
   h323.tsp

Any ideas where my modem is hiding!!!!!!!

I have tried the software that comes with the modem and it answers the phone, plays a message and records the caller...

Well that's Friday 13th for you...  :-)
0
 
LVL 4

Author Comment

by:jatkin
ID: 11817836
I have tried using TeleTools and I get some success with it.  I have modified the DialAnswer example project and I get somewhere with the project...

I would still like to do this without the need to shell out $$$ for a control - allbeit a pretty nice one!

Any other suggestions would be appreciated...
0
 
LVL 22

Expert Comment

by:DarkoLord
ID: 11859882
Hmm... try using the unimdm.tsp to access the modem...

Darko
0
 
LVL 4

Author Comment

by:jatkin
ID: 11940278
Hi again...

Right, I have just purchased a Creative ModemBlaster Serial to see if it is better at the job...
Indeed it is!!!  Looks like the world of TAPI and Voice Modem devices is going to be a world of hurt!!!

Anyway, my problem appears to be pretty much resolved. Thanks for the help...

James
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question