Re: what command sequence (tapi 2.x) is needed to switch from voice to data?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

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


Date: Tue, 4 Jan 2005 13:05:07 +0100


"Twilight Utilities" <nospam_russell@antispam_twilightutilities.com> schrieb
im Newsbeitrag news:%23dwDXLC8EHA.2788@TK2MSFTNGP15.phx.gbl...
> I have been trying it but I get a LINEERR_INVALCALLSTATE <unknown> which is
> wierd because the docs on it say:
>
> hCall
> A handle to the call whose parameters are to be changed. The application
> must be an owner of the call. The call state of hCall can be any state
> except idle or disconnected.
>
> and I test my call state before the call and it seems copasetic. Also I have
> been running portmon from www.wininternals.com sniffing the port and I do
> not see VoiceToDataAnswer being executed.
>
> Is there something else I need to set? BTW, I'm using unimodem as my tsp.

It seems that it isn't supported by UniModem.TSP.

Are you trying it on an outgoing or incoming call?

Why do you want to change from voice to data?
Isn't it possible to start with data mode?

If you know what AT commands are need to initiate do the VoiceToDataAnswer you
may want to try sending them in passthrough mode.
You can send call related AT commands in LINEBEARERMODE_PASSTHROUGH.
See MSDN Library:
http://msdn.microsoft.com/library/en-us/tapi/tapi2/passthrough_mode.asp
See Michael Dunn's TAPI Site - FAQ:
http://www.rainyjay.com/tapi/faq_passthough.htm
Please note that after switching to LINEBEARERMODE_PASSTHROUGH you can't leave
this bearer mode any more until the call ends.

-- 
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: Monitoring modem in PASS THROUGH mode
    ... > logfile contains all AT commands sent. ... I haven't tried by myself but you may want to try to set the log file ... Microsoft MVP for TAPI / Windows SDK ... * Please post all messages and replies to the newsgroup so all may ...
    (microsoft.public.win32.programmer.tapi)
  • Re: what command sequence (tapi 2.x) is needed to switch from voice to data?
    ... The call state of hCall can be any state ... >> I See a command sequence in the ddk called VoiceToDataAnswer which is ... > Microsoft MVP for TAPI / Windows SDK ... > * Please post all messages and replies to the newsgroup so all may ...
    (microsoft.public.win32.programmer.tapi)
  • Re: Transferring call on an internal extension using TAPI 3.1 in Windows XP
    ... As you have already noticed this feature is modem dependant. ... You can send call related AT commands in LINEBEARERMODE_PASSTHROUGH. ... See Michael Dunn's TAPI Site - FAQ: ... * Please post all messages and replies to the newsgroup so all may ...
    (microsoft.public.win32.programmer.tapi)
  • Re: TAPI on PocketPC problem
    ... I mean I want to control this modem from ... Do you want to send AT commands via TAPI? ... You can send call related AT commands in LINEBEARERMODE_PASSTHROUGH. ... * Please post all messages and replies to the newsgroup so all may ...
    (microsoft.public.win32.programmer.tapi)
  • Re: Extracting hCall from dwCallsOffset
    ... I thought as a quick test I could just move dwCallsOffset into my hCall ... So now I am wondering if I got it wrong and maybe the value in dwCallsOffset ... Microsoft MVP for TAPI / Windows SDK ... * Please post all messages and replies to the newsgroup so all may ...
    (microsoft.public.win32.programmer.tapi)