Click here to get back home

Send DTMF tones

 HomeNewsGroups | Search | About
 microsoft.public.smartphone.developer    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Send DTMF tones Veena 07-09-2007
---> Re: Send DTMF tones Peter Foot [MVP...07-09-2007
Get Chitika Premium
Posted by Veena on July 9, 2007, 4:54 am
Please log in for more thread options
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.


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.
>


Posted by Veena on July 10, 2007, 2:55 am
Please log in for more thread options
Hi Peter,
Thank you very much for replying.
No i am not aware of this.I tried using RIL interface too but no
success.
Just want to clarify..You mean to say i call ShellExecuteEx("dtmf:2");
is it?
Here "2" would stand for the digit whose dtmaf i want to send right?
But how would i know if it has been successfully sent?

Please reply back, till then i'll try doing this.

Thanks again


Posted by Peter Foot [MVP] on July 10, 2007, 4:08 am
Please log in for more thread options
Yes you follow dtmf: with the key (or keys) you want to pass, this includes
the * # and p (pause) characters. No I don't believe you'll get a return
value to know if it was successful or not though.

Peter

--
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility

> Hi Peter,
> Thank you very much for replying.
> No i am not aware of this.I tried using RIL interface too but no
> success.
> Just want to clarify..You mean to say i call ShellExecuteEx("dtmf:2");
> is it?
> Here "2" would stand for the digit whose dtmaf i want to send right?
> But how would i know if it has been successfully sent?
>
> Please reply back, till then i'll try doing this.
>
> Thanks again
>


Posted by Veena on July 10, 2007, 6:56 am
Please log in for more thread options
Hi,
Thanks once again for replying back.
I tried using ShellExecuteEx() wherein i passed lpFile paramater of
the SHELLEXECUTEINFO structure as "dtmf:2" considering digit 2. Now
just to confirm whether i receive this DTMF signal, i used
RIL_SetDTMFMonitoring function but again i am not getting any
notification using the same. Any other suggestions which i could try
to confirm?

Thank you very much


Similar ThreadsPosted
How to dial or send DTMF keys January 9, 2006, 6:55 pm
Generate DTMF over Alex Feinman TAPI May 18, 2006, 1:05 pm
Reading key tones October 30, 2005, 12:39 pm
Move Beyond Games And Ring Tones, NOKIA Challenges October 31, 2008, 5:51 am
Send SMS February 1, 2006, 10:51 am
How can I send Chinese SMS? October 24, 2005, 5:48 pm
Suddenly I can't send SMS through SMS-API October 29, 2005, 6:19 am
Re: is there a api for check and send sms? October 31, 2006, 12:44 am
Re: is there a api for check and send sms? November 9, 2006, 3:17 am
Send APDU to SIM December 27, 2006, 7:55 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap