Asked By Veena
09-Jul-07 04:54 AM

Hello All,
I want to send DTMF tones while an voice call is going on. I am using
TAPI for the same. LineGenerateDigits function should do this as per
the documentation. But it gives LINEERR_OPERATIONFAILED when i execute
it. Could anyone please help me.
I have opened an line connection using (dialed a number)
lineOpen (
g_hLineApp, // Usage handle for TAPI
g_dwCurrentLineID, // Cannot use the LINEMAPPER value
&g_CurrentLineInfo.hLine, // Line handle
g_CurrentLineInfo.dwAPIVersion,
// API version number
0, // Must set to zero for Windows CE
0, // No data passed back
LINECALLPRIVILEGE_OWNER + LINECALLPRIVILEGE_MONITOR, //
Can only make an outgoing call
LINEMEDIAMODE_INTERACTIVEVOICE|LINEMEDIAMODE_DATAMODEM,//Media
mode
NULL))
When i get connected indication which is given by
LINECALLSTATE_CONNECTED, i am calling:
LPCWSTR tone = TEXT("2");
error = lineGenerateDigits(g_hCall, LINEDIGITMODE_DTMF,tone, 600);
This function returns error LINEERR_OPERATIONFAILED error.
Please help.