Link to home
Start Free TrialLog in
Avatar of serg111
serg111

asked on

phone call

I need the application to place a phone call to entered phone number.
RasDial() returns error "Can't fine phone book file" !?

What is the simple way to place phone call?
Avatar of jhance
jhance

RasDial() is for dialing with the intent of making a Dial-Up Networking (a.k.a. RAS) connection.  This is not what you want to use.

You need to use TAPI to dial a voice call.  Doing this is far beyond the scope of a 100 pt. question.  I'd suggest you get a copy of Chris Sells excellent book, Windows Telephony Programming.  It has everything you need to know about TAPI and dialing.

Of course, you can also bypass all that, open the serial port that has the modem on it, and send an "ATDT555-1212" dialing string.  but I don't recommend this due to potentials conflicts and incompatibilities.

ASKER CERTIFIED SOLUTION
Avatar of AlexVirochovsky
AlexVirochovsky

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of serg111

ASKER

Yes, I'm using RasDial() to make a Dial-Up Networking connection
serq,

make sure you are passing NULL to RasDial for PhoneBook and not the empty string. This is a pointer and therefore passing it a string will work but if you want to use the default phonebook you need to pass null.

Also, if you are using Win95 then you can't use this value at all (e.g. you MUST pass NULL) as Win95 keeps the phonebook in the registry.

Hope this helps,
maluberian