Re: problem with second call



"Jerry" <jvelders@xxxxxxxxxxxxxx> schrieb im Newsbeitrag
news:11mkrfbntl5ukc3@xxxxxxxxxxxxxxxxxxxxx
> Andreas .. first of all, let me thank you for your help/guidance. I'm
> extremely impressed with your diligence and support in this news group. I'm
> reporting back what I found in the hopes that someone else may benefit ..

Jerry, thanks for your feedback.

> As it turned out, the reason that lineOpen was failing on the second attempt
> was because I had used LINECALLPRIVILEGE_OWNER |
> LINECALLPRIVILEGE_MONITOR on the lineOpen command. When I changed this to
> LINECALLPRIVILEGE_NONE, the second lineOpen succeeded.

Using LINECALLPRIVILEGE_NONE does not open the COM port at lineOpen() but only
at lineMakeCall().
With LINECALLPRIVILEGE_NONE you won't get notifications on incoming calls.

> At that point, I
> started seeing a failure on the second call to lineMakeCall
> (LINEERR_RESOURCEUNAVAIL). A little digging found that the hComm handle
> was not being closed properly on the disconnect, making it unavailable for
> use on subsequent calls. At this point I can connect/disconnect repeatedly
> without any problems.

:-)

I guess now it works with LINECALLPRIVILEGE_OWNER | LINECALLPRIVILEGE_MONITOR
at lineOpen() too?

> Thanks again.

You are welcome.

--
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: Help regarding setting up a Customer Care
    ... Amilan, you are welcome. ... Andreas Marschall ... Microsoft MVP for TAPI / Windows SDK ... >> * Please post all messages and replies to the newsgroup so all may ...
    (microsoft.public.win32.programmer.tapi)
  • Re: DTMF Detection in H323 Line connected to NetMeeting
    ... > Thanks Andreas & Matthias for your replies. ... > Client B NetMeeting to Server A running TB3x. ... Microsoft MVP for TAPI / Windows SDK ...
    (microsoft.public.win32.programmer.tapi)
  • Re: When TSP starts ?
    ... >> Your replies on this news group is impressive. ... >> On some of my machines, my TSP starts immediately as soon as ... > If there is any app or service that is using TAPI and is ... > Andreas Marschall ...
    (microsoft.public.win32.programmer.tapi)
  • Re: Call Center application in Visual Basic
    ... 100E PBX support TAPI Extended Services. ... Andreas Marschall ... >> * Please post all messages and replies to the newsgroup so all may ...
    (microsoft.public.win32.programmer.tapi)
  • Re: lineMakeCall on W2k server SP4 (bug?)
    ... > I know what is happening: asynchronous call lineMakeCall returns before ... > As you can see, in first log output there is 0xFFFFFFFF as value of handle, ... Microsoft MVP for TAPI / Windows SDK ... * Please post all messages and replies to the newsgroup so all may ...
    (microsoft.public.win32.programmer.tapi)