Re: lineOpen fails with INVALMEDIAMODE
- From: Matt <Matt@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 12 Oct 2006 01:28:02 -0700
Hi Andreas,
Thanks for your help.
I've tried a few different combinations of the media mode and priveleges and
have made some progress...
If I chose just DATAMODEM mode that it opens successfully with any specified
privelege.
If I chose INTERACTIVEVOICE only, then I can open it with priveleges
specified as just MONITOR, but not when I specify OWNER (either with MONITOR
or by itself).
Does this mean that I can't register my application to be the owner of voice
calls? Is there something I can do to rectify this?
Thanks again for your help.
Best Regards,
Matt
"Andreas Marschall [MVP TAPI]" wrote:
"Matt" <Matt@xxxxxxxxxxxxxxxxxxxxxxxxx> schrieb im Newsbeitrag.
news:AEDB7111-CD21-4175-9B37-496AEED9CD03@xxxxxxxxxxxxxxxx
I'm having a problem with lineOpen returning a failcode of INVALMEDIAMODE
with one particular device (the same code works OK with another modem).
I've reproduced the sequence in TapiBrowser and pasted the log below. After
the call to lineOpen fails, I've called lineGetDevCaps to check that the
mediamode I'm requesting is supported and it is!
Calling lineOpen
dwDeviceID=x2
dwPrivileges=x4
dwMediaModes=x14
lineOpen returned LINEERR_INVALMEDIAMODE
LINEDEVCAPS
dwProviderInfoSize=x3e
dwProviderInfoOffset=x124
646e6957 2073776f 656c6554 6e6f6870 Windows Telephon
65532079 63697672 72502065 6469766f y Service Provid
66207265 5520726f 6576696e 6c617372 er for Universal
646f4d20 44206d65 65766972 xxxx0072 Modem Driver.
dwPermanentLineID=x8f4399
dwLineNameSize=x1c
dwLineNameOffset=x1a0
6e617453 64726164 36392020 62203030 Standard 9600 b
4d207370 6d65646f 00322320 xxxxxxxx ps Modem #2.
dwMediaModes=x14, INTERACTIVEVOICE DATAMODEM
Matt,
you may want to try to lineOpen() with either _INTERACTIVEVOICE or _DATAMODEM,
but not both media modes concurrently.
In addition you may want to try to lineOpen() with dwPrivileges = _OWNER +
_MONITOR
--
Best Regards
Andreas Marschall
Microsoft MVP for TAPI / Windows SDK
TAPI / TSP Developer and Tester
My TAPI and TSPI FAQ:
http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm
My Toto® Tools (a collection of free, mostly TAPI related tools):
http://www.i-b-a-m.de/Andreas_Marschall's_Toto_Tools.htm
TAPI development around the world (Frappr! map):
http://www.frappr.com/TAPIaroundTheWorld
* 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: lineOpen fails with INVALMEDIAMODE
- From: Andreas Marschall [MVP TAPI]
- Re: lineOpen fails with INVALMEDIAMODE
- References:
- lineOpen fails with INVALMEDIAMODE
- From: Matt
- Re: lineOpen fails with INVALMEDIAMODE
- From: Andreas Marschall [MVP TAPI]
- lineOpen fails with INVALMEDIAMODE
- Prev by Date: Re: TAPI 3.x browser
- Next by Date: Re: TAPI 3.x browser
- Previous by thread: Re: lineOpen fails with INVALMEDIAMODE
- Next by thread: Re: lineOpen fails with INVALMEDIAMODE
- Index(es):
Relevant Pages
|