Re: How to Mute Mic during TAPI call
- From: "Andreas Marschall [MVP TAPI]" <Andreas.Marschall@xxxxxxxxxx>
- Date: Tue, 26 Jul 2005 15:54:10 +0200
<raj.rr7@xxxxxxxxx> schrieb im Newsbeitrag
news:1122384475.862407.44270@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Thanks for ur help, But i wanna know where did i make mistake in
> comparing PHONECAPS.dwPhoneFeatures to the phone feature constants
> supported by TSP.
Raj,
if you want to check whether a feature (e.g.
PHONEFEATURE_SETHOOKSWITCHSPEAKER) is supported (according to PHONECAPS) then
try this:
if (lpPhoneCaps->dwPhoneFeatures & PHONEFEATURE_SETHOOKSWITCHSPEAKER)
// you need to logical AND the dwPhoneFeatures with the flag of interest.
> This is what i compare and i dont find any comparision so does it show
> that this all things are not supported by TSP/TAPI ??
Yes all the feature I decoded im my previous posting are supported,
but you comparison logic (== instead of &) was faulty.
> Still i want to mute the mic for that the code listed below gives error
> PHONEERR_OPERATIONUNAVAIL
> result = phoneSetHookSwitch(hPhone,
> PHONEHOOKSWITCHDEV_SPEAKER,
> PHONEHOOKSWITCHMODE_MICSPEAKER);
> What could be the reason for this error. Can you help me.
Please take a look at the PHONECAPS:
..dwSettableHandsetHookSwitchModes
..dwSettableSpeakerHookSwitchModes.dwSettableHeadsetHookSwitchModes
..dwMonitoredHandsetHookSwitchModes
..dwMonitoredSpeakerHookSwitchModes
..dwMonitoredHeadsetHookSwitchModes
In your case PHONECAPS.dwSettableSpeakerHookSwitchModes must include the
PHONEHOOKSWITCHMODE_MICSPEAKER flag:
if (lpPhoneCaps->dwSettableSpeakerHookSwitchModes &
PHONEHOOKSWITCHMODE_MICSPEAKER)
--
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.
.
- Follow-Ups:
- Re: How to Mute Mic during TAPI call
- From: raj . rr7
- Re: How to Mute Mic during TAPI call
- References:
- How to Mute Mic during TAPI call
- From: raj . rr7
- Re: How to Mute Mic during TAPI call
- From: Grant Schenck
- Re: How to Mute Mic during TAPI call
- From: raj . rr7
- Re: How to Mute Mic during TAPI call
- From: Andreas Marschall [MVP TAPI]
- Re: How to Mute Mic during TAPI call
- From: raj . rr7
- How to Mute Mic during TAPI call
- Prev by Date: Re: How to Mute Mic during TAPI call
- Next by Date: Re: Alcatel OmniPCX Office - using third-party TAPI
- Previous by thread: Re: How to Mute Mic during TAPI call
- Next by thread: Re: How to Mute Mic during TAPI call
- Index(es):
Relevant Pages
|