NetworkAnswerCall
This function answers the current incoming call.
DWORD NetworkAnswerCall(void);
Parameters
none

Return values
Zero indicates success. A negative error number indicates that an error occurred. For additional error information, enable the library debug mode.

Remarks
When a new call arrives (NETWORK_EVENT_CALL_IN / NETWORK_EVENT_RING), the application can answer this call using NetworkAnswerCall. After the call has been successfully answered, the call typically transitions to the connected state (NETWORK_EVENT_CALL_CONNECT).

Sample
// Our phone callback func
void PhoneCallback(DWORD dwEvent,LPVOID lpvParam,DWORD cbParam)
{
    switch (dwEvent)
    {
        case NETWORK_EVENT_CALL_IN:
        {
            TCHAR szNumber[255]={0};
            for (unsigned int i=0;i<cbParam;i++) szNumber[i] = (TCHAR)(((char *)lpvParam)[i]);
            // process the incoming phone number
            if (_tcscmp(szNumber, TEXT("555123123") == 0) NetworkAnswerCall(); //answer automatically calls from this number (555123123)             ...
        }
        break;
    ...
...

// Application entry point
int WINAPI WinMain(HINSTANCE hInstance,
    HINSTANCE hPrevInstance,
    LPTSTR lpCmdLine,
    int nCmdShow)
{
    // Load the TAPI Library
    if (LoadDynTapiDll(TEXT("\\DynTapiDll.dll")) != ERROR_SUCCESS) {
    MessageBox(0, TEXT("Cannot load DynTapiDll.dll . Try to reinstall this sample."), TEXT(""), MB_ICONERROR);
    return 0;
    }
    DebugMode(1);
    // Init the Library network component
    if (NetworkInit(hInstance) != ERROR_SUCCESS) {
    UnloadDynTapiDll();
    MessageBox(0, TEXT("Error using the network, does this device have a phone module?"), TEXT(""), MB_ICONERROR);
    return 0;
    }
    // Set callback for events
    SetNetworkEventCallback((tpfnCallback)PhoneCallback);
    ...
    NetworkDeinit();
    UnloadDynTapiDll();
    ...

Requirements
OS Versions: Windows CE 1.0 and later.
Header: dyntapi.h.
Dll Library: dyntapidll.dll.

For the latest DynTAPI version, visit www.teksoftco.com.