Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
|
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 5th, 2004, 01:49 PM
Registered User
 
Join Date: Mar 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default TAPI: Detecting Dialed Digits [VC++]

hi there to all experts..

I am making a Tapi application which is supposed to recv a call n then detect the digits pressed by the calling party. I am able to pick up the the line but still cannot detect the digits.
One more problem that i am facing is that the i recv the LINECALLSTATE_CONNECTED message after the calling party disconnects.
Moreover the Modem keeps producing the annoying sounds.
I'll be really greatfull to u all if neone can help me solve these problems.and if u know ne link where i can find a sample code, do tell me

thanx
 
Old March 7th, 2004, 09:08 PM
Authorized User
 
Join Date: Jun 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

    I think you shuold learn more about AT command at first.
You should use AT command set config at modem such as "AT0=3 AT&W" ect.
    The modem will auto pick the line whem ring coming after set successful,You will receive the data on COM port such as "connected at 9600" ect.
    Good lucky
 
Old March 8th, 2004, 03:18 AM
Registered User
 
Join Date: Mar 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanx for ur suggestion. it really fels like tht i hv to learn AT commands first.
but what i learned from MSDN is tht if ur modem is TAPI compliant u just need to call the TAPI functions.Whatever i think tht i'll hv to go for AT commands first.
can u please tell me some links where i can find more information on the these commands.

thanx.

 
Old March 8th, 2004, 11:55 PM
Authorized User
 
Join Date: Jun 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

pls use the key words "AT Command modem" search in google.com.
You will get a lot of results.
http://www.modem.com/general/extendat.html is one of the result
 
Old September 14th, 2006, 03:00 AM
Registered User
 
Join Date: Sep 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It's veyry simple
In your TAPI callback function
Whenever your get the meaage
LINE_CALLSTATE and the dwParam1 is LINECALLSTATE_CONNECTED

You call the function lineMonitorDigits, from now your application can get the detect the digit.
And you can get the digit which press by caller or callee, and whenever the message LINE_MONITORDIGITS come.
you cheack dwParam2 parameter to get the digit.

if(dwParam2 == LINEDIGITMODE_DTMF)
{
   short digit = LOBYTE(dwParam1);
}

Have success full.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Restricting the # of digits after a decimal in a K stevenyoo321 VB How-To 1 April 18th, 2007 07:52 AM
Testing a string for digits bonekrusher XSLT 2 March 18th, 2007 02:48 PM
TAPI IN VC++ hina Visual C++ 2 October 6th, 2005 01:15 AM
convert VC++ 5.0 project to VC++ 6.0 MIDL ERR mdahd90943 Visual C++ 0 May 26th, 2005 08:57 AM
Number of Digits Colonel Angus Javascript How-To 3 December 1st, 2004 09:12 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.