Solved

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

Posted on 2004-08-09
11
338 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

730 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