Re: can't get voice on phone line

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Andreas Marschall [MVP TAPI] (Andreas.Marschall_at_I-B-A-M.de)
Date: 08/05/04


Date: Thu, 5 Aug 2004 20:41:04 +0200


"Rahul" <abemailkar@yahoo.co.in> schrieb im Newsbeitrag
news:3af110da.0408050925.7c5a098b@posting.google.com...
> I'm developing tapi application for my school project ,which
> can make call,recieve call & send wave file on phone line.
> I can make call but can't listen any sound neither ringing nor the
> voice of person at other end.Also he can not listen my sound.
> I've tried with both internal 56k data-voice-fax modem ,by connection
> speaker & microphone at sound card jack.
> Also I've tried with extenal sound modem on speaker jack given with
> modem.But no result...

Rahul,
You may want to try phoneSetHookSwitch(hPhone, PHONEHOOKSWITCHDEV_SPEAKER,
PHONEHOOKSWITCHMODE_MICSPEAKER).

The API sequence needed for this looks like:
lineInitializeEx()
lineOpen()
lineGetID("tapi/phone")
phoneInitialize()
phoneOpen()
lineMakeCall()
phoneSetHookSwitch()

Try it with TAPI Browser TB20 before starting to code anything yourself.
See my TAPI and TSPI FAQ:

Q: Where can I download TAPI Browser ?
http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm#_Q:_Where_can

Q: Is there a user guide available for TAPI Browser TB20 ?
http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm#_Q:_Is_there_1

-- 
Best Regards
Andreas Marschall
Microsoft MVP for TAPI / Windows SDK
TAPI / TSP Developer and Tester
http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm
* Please post all messages and replies to the newsgroup so all may
* benefit from the discussion.  Private mail is usually not replied to.
* This posting is provided "AS IS" with no warranties, and confers no rights.