how to hangup a call?

how to hangup a call

Answer this question

how to hangup a call?

  • Christian Liensberger - MSP

    Generally - by P/Invoking TAPI functions lineInitialize, lineOpen, lineGetNewCalls and lineDrop

  • Bandile

    That would be Platform.

  • Madhusudanan

    But of course there are no data types for TAPI. It's up to you to declare them, juts like in case with any P/Invoke.

    From your questions it appears you're not that familiar with P/Invoke to take on to TAPI (which is _really_ nasty), perhaps using ready to go TAPI wrapper created by Alex is your best bet.

    If you determined to do it yourself, this should get your started:

    http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnnetcomp/html/PInvokeLib.asp



  • Chris Bowring

    hi alex:

    I have seen the api about lineInitialize, lineOpen, lineGetNewCalls and lineDrop.

    But there are no the data type for these api at c#.

    Such as,

    LONG WINAPI lineGetNewCalls(
     HLINE hLine,
     DWORD dwAddressID,
     DWORD dwSelect,
     LPLINECALLLIST lpCallList 
    );
     there are no the data type of HLINE DWORD LPLINECALLLIST in c# .net cf 
     
    how to call these api at c# .net cf 2.0 code 
    Please give me a samples code 
    Thank you.
     
     

  • James Alexander

    hi Ilya

    You said that P/Invoke. what is the 'p' in the P/Invoke

    Thank you


  • Jobr77

    hi Ilya

    I have seen your link.

    There are many P/Invoke api.

    but I do not knew how to call them.

    which parameter for the api is right

    such as :

    LONG WINAPI lineGetNewCalls(
     HLINE hLine,
     DWORD dwAddressID,
     DWORD dwSelect,
     LPLINECALLLIST lpCallList 
    );
      if I want to call linegetnewcalls at c#.
      how to define HLINE, DWORD , LPLINECALLLIST type data as parameter for lineGetNewCalls 
      Thank you
     

  • rahoward

    You should look up definition of these in respective .h files and use managed equivalent. Some C++ knowledge required.



  • how to hangup a call?