Management of phone calls

Hi,

I would want to be able to control incoming and outgoing calls. I know I can
detect them with an object of SystemState.

Now, there are several problems:

- Can I detect them if the events occurs out from my application
- Can I finish a phone call
If it it possible:
- I don't know if I can close an incoming phone call or if only the OS is able to do it.
- I don't also know if it is possible to finish an outgoing phone call that I haven't initialized into my programme.

Anyone can help me

Thanks a lot.

Alvaro Penarrubia




Answer this question

Management of phone calls

  • NetPochi

    Thank you very much.

    So this API is not supported for Smartphone Only for PPC



  • jayakhanna

    Hi Alvaro

    Exactly, the OpenNETCF.Tapi is a managed wrapper for the native TAPI API.
    The native APIs documentation can be found here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/mobilesdk5/html/mob5conTelephonyAPITAPI.asp

    I just found out that a new version of this TAPI libary is avaliable here: http://www.alexfeinman.com/download.asp doc=Tapiv2.zip
    This is a .NET CF 2.0 version including the source code for the TAPI library.

    Michael



  • Christopher Ireland

    Hi Alvaro

    Ending (finish) a phone call is possible using TAPI.
    Here are the basic steps needed to get this done:
    Initialize TAPI (lineInitializeEx) and open the GSM line (lineOpen).
    call lineGetNewCalls to find active phone calls.
    call lineDrop to end a active phone call.

    You can basically end any calls - including the ones initialted by the standard phone UI.

    The system (SystemState) doesn't tell you whether an outgoing call was initiated by your app or not. You'l have to keep track of this yourself.

    Hope this helps
    Michael



  • DaveTaylor

    Yes, this is a native API (C / C++)

    But there is a managed wrapper available here: http://www.alexfeinman.com/download.asp doc=tapi1.6.zip yo

    I suspect that this a problem/limitation on the emulator OS - but this is just a wild guess.

    Michael



  • Faraz_Ahmed

    Hi michael

    I tried what u sad,

    I see all the call, but lineDrop doesn't work..

    i this it related to how i open the phone line ( the privelege ), the only way i can see the calls, is in Monitor mode, and not the owner..

    if i open the line in Owner mode, i not see any calls..

    do you know how to solve this

    Regards
    Mishka.


  • Wei Wang father of twins

    Hi Alvaro

    "Error retrieving information from user datasore. Platform not found" :
    My best guess is that you did not install 'Windows Mobile 5.0 Pocket PC' SDK. The tapiv2 needs this SDK installed.

    You're getting the 'The associated source control plug-in not instaled or could not be initialized.' because the project is under version control and VS 2005 cannot find the responsible provider.
    To get rid of these messages, select 'Permanently remove source control association bindings.'

    On Windows Mobile, there is no tapi.dll file. The standard TAPI API lives in coredll.dll. The extended API (Cell specific stuff) lives in cellcore.dll.

    OpenNETCF.Tapi is just a namespace. The managed TAPI wrapper is the TapiLib project available in download I mensiond in my last post.

    Michael



  • Claudeb1965

    Thanks, but... I think I don't know how to use the example to which you refer.

    The project is in a previous version (than VS2005) and doesn't work well. In addition, the reference to tapi.dll fails (even modifying the path to Tapi\TapiLib\bin\Debug [the only Tapi.dll that I found]).

    I think that OpenNETCF.Tapi is an "adaptation" of the C library to C#, right I'm not sure of where to find the original TAPI and the OpenNETCF's.

    Can you help me (a little more)

    Thank you.

    Alvaro



  • Kamen

    Hi Michael, I'm quite shamed because I still have some (the same) problems.

    When the VS trys to open the solution (TapiApp) shows for three times (one per project [StructValidator,TapiApp and TapiLib]) the couple of messages:

    Error retrieving information from user datasore. Platform not found.

    and

    The project could not be opened because it refers to a device platform that does not exist in your datasore.

    And then, it offers you (radio buttons):

    The associated source control plug-in not instaled or could not be initialized.

    · Temporaly work uncontrolled

    · Permanently remove source control association bindings.

    I am using the Visual Studio 2005 Version 8.0.50727.42 and .NET FWork V2.0.50727.

    Besides, I would want to know where I can find the files Tapi.dll and OpenNETCF.Tapi.

    I'm sorry for disturbing you too much.

    Thank you,

    Alvaro



  • TomJ72

    You can be sure this helps. Thank you very much.

    But, a couple of question more...

    • this API is programed in C (or C++) not in C#, it isn't

    I think there's no equivalent in C#. Thus, I suppose I have to use it in native code, with the dll, etc..

    • I have not a real phone yet, and I work with the emulator. I try to catch an outgoing call made by other application with SystemState, but it doesn't work (if it is made by my own programme it functions rightly). Can you guess why

     

     

    Thanks

    Alvaro Penarrubia



  • Management of phone calls