Re: How to Mute Mic during TAPI call

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



<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_SETHOOKSWITCHSPEA­KER) is supported (according to PHONECAPS) then
try this:
if (lpPhoneCaps->dwPhoneFeatures & PHONEFEATURE_SETHOOKSWITCHSPEA­KER)
// 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.



.



Relevant Pages

  • Re: Versioning,creating web pages in Word 2007
    ... combining document changes.Is it the option i use for comparing and merging ... I would like to know if i can insert movie clips using Sharepoint? ... The old File=>Versions feature is gone from Word 2007. ... I seem to understand that versioning and creating web pages can be ...
    (microsoft.public.word.docmanagement)
  • Feature-by-feature comparisons for ISV vs IBM software?
    ... various ISV vs IBM software product *features* side by side? ... I am particularly interested in comparing IBM Fault Analyzer and File ... Manager versus competing tools on a feature basis. ... message is not the intended recipient or an authorized representative of the ...
    (bit.listserv.ibm-main)
  • Yet another approach to the "Telco" challenge
    ... I have created version of the COBOL "Telco" application. ... not familiar with the "debate" - this feature tends to be ... I haven't created a production RW program using the Fujitsu compiler, ... I think that comparing this with the ...
    (comp.lang.cobol)
  • Changes to /usr/src/sbin/md5.c
    ... I made some changes to md5wich adds a new feature for comparing ... inputfiles e.g: ...
    (freebsd-hackers)
  • Re: diy 6-acre contour map
    ... very interesting set of replies and attitudes. ... Comparing it to a builder's transit is like comparing ... reflectorless feature is pretty handy as well. ...
    (sci.engr.surveying)