Re: problem with second call
- From: "Andreas Marschall [MVP TAPI]" <Andreas.Marschall@xxxxxxxxxx>
- Date: Thu, 3 Nov 2005 21:53:13 +0100
"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.
.
- References:
- problem with second call
- From: Jerry
- Re: problem with second call
- From: Andreas Marschall [MVP TAPI]
- Re: problem with second call
- From: Jerry
- problem with second call
- Prev by Date: Re: problem with second call
- Next by Date: Need to enter Tapilines
- Previous by thread: Re: problem with second call
- Next by thread: Need to enter Tapilines
- Index(es):
Relevant Pages
|