Re: Problem answering calls

Tech-Archive recommends: Speed Up your PC by fixing your registry



Correct. You either wrap TAPI 3.x or 2.x (I'd recommend 2.x.)

You could also check out some of the third party TAPI controls. I believe
some of those support .NET.

Look on Andreas Marschall's TAPI FAQ, he has some references to various TAPI
controls.

http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm
--
Grant Schenck
http://grantschenck.tripod.com

"Brennon" <Brennon@xxxxxxxxxxxxxxx> wrote in message
news:ux4Q8$fYFHA.3488@xxxxxxxxxxxxxxxxxxxxxxx
> So I've got to build a wrapper in VB6/C++ and then access those exposed
> functions in order to interact with TAPI?
>
> ...
>
> ...
>
> Fantastic. I'm not event sure how to do that. Any pointers?
>
> Thanks,
> Brennon
>
> "Grant Schenck" <schenckg@xxxxxxxxxxxxx> wrote in message
> news:uDsYU2fYFHA.228@xxxxxxxxxxxxxxxxxxxxxxx
> > Using TAPI 3.x directly from .NET is not supported. See this KB
article:
> > http://support.microsoft.com/default.aspx?scid=kb;en-us;841712
> >
> > While I haven't tried to use it, reports on this new group indicate that
> it
> > sort of works but eventually fails.
> > --
> > Grant Schenck
> > http://grantschenck.tripod.com
> >
> >
> >
> > "Brennon" <Brennon@xxxxxxxxxxxxxxx> wrote in message
> > news:#i4MSTYYFHA.3188@xxxxxxxxxxxxxxxxxxxxxxx
> > > I'm using vs.net 2003 and interop (com) to access TAPI 3 for my 3com
> > nbx100.
> > > I've been tinkering with it and have had some minor success. I can
make
> > > calls and hang up active calls. I can detect incoming calls and
trigger
> an
> > > event off of them. What I CAN'T do is get the calls to pickup once
they
> > have
> > > been detected and the CallNotificationEven has been triggered.
> > >
> > > I can get the calls to pickup using the tapi3.0 browser, however. That
> > works
> > > just fine. Clearly I've borked my code somewhere.
> > >
> > > The error I'm getting is when I try and create an ITBasicCallControl
> > object
> > > and assign the event call to it. Tells me 'The specified cast is
> invalid'.
> > > Relevant code is below. Anybody got any ideas? I'm trying to run this
as
> > an
> > > asynchronous thread, if that matters.
> > >
> > > Private CallNotificationObject As ITCallNotificationEvent
> > >
> > > Private Sub CallNotificationEvent()
> > >
> > > ' Get the ITCallNotification interface.
> > >
> > > Dim objCallNotificationEvent As ITCallNotificationEvent
> > >
> > > objCallNotificationEvent = CallNotificationObject
> > >
> > > Dim LocalAddress As ITAddress
> > >
> > > LocalAddress = CallNotificationObject.Call.Address
> > >
> > > 'query ITCallInfo interface for the new call, and store it
> > >
> > > Dim ReceivedCallInfo As ITCallInfo
> > >
> > > ReceivedCallInfo = objCallNotificationEvent.Call
> > >
> > > ' Get the ITBasicCallControl interface.
> > >
> > > Dim objCallControl As ITBasicCallControl
> > >
> > > objCallControl = ReceivedCallInfo // It errors out right here.
> 'Specified
> > > cast is invalid'
> > >
> > >
> > >
> > > 'Answer
> > >
> > > objCallControl.Answer()
> > >
> > > end Sub
> > >
> > >
> >
> >
>
>


.



Relevant Pages

  • Re: Problem answering calls
    ... > Using TAPI 3.x directly from .NET is not supported. ... >> Private CallNotificationObject As ITCallNotificationEvent ... >> Dim objCallNotificationEvent As ITCallNotificationEvent ...
    (microsoft.public.win32.programmer.tapi)
  • Re: Cast Error when trying to get BasicCallControl
    ... Dim objCallNotificationEvent As ITCallNotificationEvent ... Set objCallNotificationEvent = pEvent ... Dim gobjReceivedCallInfo As ITCallInfo ... Microsoft MVP for TAPI / Windows SDK ...
    (microsoft.public.win32.programmer.tapi)
  • Re: >> Conference Calls
    ... I'd expect ITCallNotificationEvent only for new incoming calls but you were ... In general TAPI 2.x is the more complete API compared to TAPI 3.x. ... Has TAPI3 any disadvantages over TAPI2? ... * Please post all messages and replies to the newsgroup so all may ...
    (microsoft.public.win32.programmer.tapi)
  • Re: getting Information
    ... "Jens" schrieb im Newsbeitrag ... > ITCallNotificationEvent CallEvent; ... See my TAPI and TSPI FAQ: ... * Please post all messages and replies to the newsgroup so all may ...
    (microsoft.public.win32.programmer.tapi)