|
Posted by Peter Foot [MVP] on July 9, 2007, 10:03 am
Please log in for more thread options
Have you tried the alternative approach of using the dtmf: pluggable
protocol e.g. use ShellExecuteEx to launch
"dtmf:2"
Peter
--
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility
> 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.
>
|