Re: Error in TAPI3..
From: Grant Schenck (schenckg_at_optonline.net)
Date: 06/25/04
- Previous message: Grant Schenck: "Re: Program architecture for TAPI v1.4 to v2.2"
- In reply to: Andreas Marschall [MVP TAPI]: "Re: Error in TAPI3.."
- Next in thread: updesh: "Re: Error in TAPI3.."
- Reply: updesh: "Re: Error in TAPI3.."
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 25 Jun 2004 16:48:55 -0400
BTW, just be aware that depending on the TSP you may get the
LINECALLSTATE_IDLE before the LINE_REPLY associated with the lineDrop
request.
-- Grant Schenck Grant Schenck Software schenckg@optonline.net http://grantschenck.tripod.com "Andreas Marschall [MVP TAPI]" <Andreas.Marschall@I-B-A-M.de> wrote in message news:OnjuwxpWEHA.3528@TK2MSFTNGP10.phx.gbl... > "updesh" <updesh@callshift.com> schrieb im Newsbeitrag > news:Ov%23jrBhWEHA.1000@TK2MSFTNGP12.phx.gbl... > > I have some issues....I use this code to hang up the line.. > > > > void HangupCall() > > { > > > > lineDeallocateCall(hLineApp); > > lineClose(hLineApp); > > lineShutdown(hLineApp); > > hLineApp=NULL; > > hLine=NULL; > > lphCall=NULL; > > > > } > > > > it doesn't hangs up.. what's missing here.. > > Updesh, > to hang up (end a call) you need to: > - lineDrop(hCall) > - wait for corresponding LINE_REPLY > - wait for LINECALLSTATE_IDLE > - lineDeallocateCall(hCall) > > You DON'T need to: > > lineClose(hLine); > > lineShutdown(hLineApp); > This needs only to be be done on program exit. > > -- > 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. > >
- Previous message: Grant Schenck: "Re: Program architecture for TAPI v1.4 to v2.2"
- In reply to: Andreas Marschall [MVP TAPI]: "Re: Error in TAPI3.."
- Next in thread: updesh: "Re: Error in TAPI3.."
- Reply: updesh: "Re: Error in TAPI3.."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|