Esempio n. 1
0
JNIEXPORT jint JNICALL Java_net_xtapi_serviceProvider_MSTAPI_answerCall
  (JNIEnv *pEnv, jobject oObj, jint lHandle)
{
	long lRet;
	char szDebug[256];

	wsprintf(szDebug,"answerCall handle %d",lHandle);
	debugString(4,"answerCall",szDebug,_where());

	lRet = lineAnswer((HCALL)lHandle,NULL,0);

	wsprintf(szDebug,"lineAnswer returned %d",lRet);
	debugString(4,"answerCall",szDebug,_where());

	return lRet;
}
Esempio n. 2
0
File: xtapi.c Progetto: btb/d2x
int xtapi_device_answer()
{
	LONG retval;
	int xtapi_ret = XTAPI_SUCCESS;

	if (!TapiDev.hCall) return XTAPI_NOTOPEN;

	retval = xtapi_device_wait_for_reply(
			lineAnswer(TapiDev.hCall, NULL, 0)
	);
	
	if (retval < 0) {
		xtapi_ret = xtapi_err(retval);
	}

	return xtapi_ret;
}