Re: error return from "connect"

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



"Boyd" <Boyd@xxxxxxxxxxxxxxxxxxxxxxxxx> schrieb im Newsbeitrag
news:632A1ED0-BCE8-4881-B18C-C92EA4BE1169@xxxxxxxxxxxxxxxx
> I am using the SDK sample application "tapisend." I get as far as the
> following code snippet:
> ==========
> LogMessage("CreateAndConnectCall: attempting a synchronous connect");
> hr = pCall->Connect(VARIANT_TRUE);
> if (S_OK != hr)
> ==========
> The error number returned is 1. This is not one of the stated possible
> error responses for "Connect". My current setup should cause an error
> indicating "no dial tone."
> For the purpose of having a utility that can generate useful diagnostic
> messages when such things do go wrong, I need to be able to acquire the
> correct error state.
> Is there a function such as the Win32 function "GetLastError" to retrieve
> the proper error code?

Boyd,
you can use FormatMessage() to get an error description from TAPI3.DLL for the
corresponding TAPI_E_ constants like my Toto® Tool TAPI_Error_Codes does.
See my TAPI and TSPI FAQ:

Q: Where are TAPI errors codes defined ?
http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm#_Q:_Where_are


Can you reproduce the issue with TAPI Browser TB3x ?
Please post a TB3x.log.
See my TAPI and TSPI FAQ:

Q: Where can I download TAPI Browser ?
http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm#_Q:_Where_can

Q: Is there a user guide available for TAPI Browser TB3x ?
http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm#_Q:_Is_there_2

--
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: ACD groups and Agents: how can i get a Agents state?
    ... Agents and ACD groups. ... It only supports agent / ACD functionality according to TAPI 2.0. ... tapi browser 3 to test this problem. ... * Please post all messages and replies to the newsgroup so all may ...
    (microsoft.public.win32.programmer.tapi)
  • Re: Call Connected.
    ... > I posted a question regarding conference calls last week and have recieved ... > some replies which has given some things to try but I just want to clear ... > something up in my own mind as I'm not very knowledgeable in TAPI. ... Try it with TAPI Browser TB20 before starting to code anything yourself. ...
    (microsoft.public.win32.programmer.tapi)
  • Re: lineGetID fails
    ... Bart. ... > See my TAPI and TSPI FAQ: ... Where can I download TAPI Browser? ... > * Please post all messages and replies to the newsgroup so all may ...
    (microsoft.public.win32.programmer.tapi)
  • Re: Going on with the Playback in VB
    ... then i create an ItTerminal to use with ItMediaPlayback and ... The thing i gonna to do first is try to learn a little more about Tapi ... > Can you reproduce the issue with TAPI Browser TB3x? ... > * Please post all messages and replies to the newsgroup so all may ...
    (microsoft.public.win32.programmer.tapi)
  • Re: TAPI Browser refresher/quick tutorial
    ... In the TAPI Browser, I never see any TE_CALLNOTIFICATION object instantiate ... > * Please post all messages and replies to the newsgroup so all may ...
    (microsoft.public.win32.programmer.tapi)