Re: lineOpen fails with INVALMEDIAMODE

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




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.




.



Relevant Pages

  • Re: Unknown mode monitoring data/voice call
    ... > I try to do something like monitoring application, ... > redirect to one applicaiton (data or voice capability). ... > line media mode? ... See my TAPI and TSPI FAQ: ...
    (microsoft.public.win32.programmer.tapi)
  • Re: how to start faxback service
    ... TAPI does not support fax itself but TAPI client applications ... Therefore the media mode exists. ... Matthias Moetje ... TERASENS GmbH ...
    (microsoft.public.win32.programmer.tapi)
  • Re: Media mode and call privilege question /Avaya PBX problems
    ... that it might be the media mode and perhaps call privilege settings, ... It might be that the Avaya ... Try it with TAPI Browser TB20 before starting to code anything yourself. ...
    (microsoft.public.win32.programmer.tapi)
  • Re: dwMediaModes - LineDevCaps
    ... You do a bit-wise AND operation to check whether a given media mode is ... Microsoft MVP for TAPI / Windows SDK ... TAPI development around the world (Frappr! ... * Please post all messages and replies to the newsgroup so all may ...
    (microsoft.public.win32.programmer.tapi)
  • Can not make call with Siemens TC35 GSM
    ... I tried to make a connection via TAPI with a TC35. ... When I am using AT commands in a terminal program everything works fine. ... The default protocol is V.32 so I tried to initiate an ordinary DATAMODEM ...
    (microsoft.public.win32.programmer.tapi)