Re: How to programmatically clear "Wait for dial tone before dialing"?
- From: "Bob Day" <xxxxxx@xxxxxxxxxx>
- Date: Fri, 18 May 2007 12:53:14 -0400
Problem solved!! First, I look into Jack's method but soon realized
that I am just not deep enough into TAPI (at least not yet) to go that
route. But I found another way that's within my current skill level.
I poked around under 0000 of the modem device registry key
mentioned in earlier posts, and found some other things of interest:
Under the Settings key there's a value called "Blind_On", which is the
AT command code for setting a modem to blind dialing mode. (In
surfing the Internet I discovered that "blind dialing" is what gets set
when you clear the "Wait for dial tone before dialing" checkbox.)
The Blind_On value given for my modem is "X3".
Also, under 0000, there's a key called "VoiceDialNumberSetup",
which contains a series of values (six for my modem) to set a modem
to voice mode. "So", I wonder, "What if I add another command to
the list? -- like 'atX3<cr>'? Will that command get executed along
with the rest of the commands on the list?"
Yes!, I found out. So, what I'm doing in my code is adding the
additional "at[blind dialing code]<cr>" command to the values in the
VoiceDialNumberSetup key before issuing lineMakeCall, and
using "," (comma) as my telephone number dialing string. Doing that,
I can reliably accomplish my original goal of joining an ongoing call.
On exit from my program I remove the added AT command, and since,
apparently, Windows XP (the OS I'm interested in) reinitializes the
modem every time it uses it, everything should be OK.
-- Bob Day
"Matthias Moetje [MVP]" <moetje@xxxxxxxxxxxxxxxxxxx> wrote in message news:O4wC4PMmHHA.3280@xxxxxxxxxxxxxxxxxxxxxxx
Bob,
I'd recommend rather using the method Jack suggested. This is the
official way of changing modem settings. If you change the settings
in the registry you might need to restart the telephony service.
(which will fail unless RAS is disabled, so you will probably need
to restart the computer).
Best regards,
Matthias Moetje
------------------------------------- TERASENS GmbH
Augustenstraße 24
80333 Munich, GERMANY
------------------------------------- Fon: +49 89 143370-0
Fax: +49 89 143370-22
e-mail: moetje at terasens dot com
www: www.terasens.com
-------------------------------------
"Bob Day" <xxxxxx@xxxxxxxxxx> wrote in message news:emqeuW1lHHA.2596@xxxxxxxxxxxxxxxxxxxxxxxThanks, Jack, I'll check out your suggestion. I found the "Wait for dial tone before dialing" checkbox bit. It's the second bit in from the right in byte 17 (counting from zero) in the "Default" (not the "(Default)") value
in HKLM\SYSTEM\CurrentControlSet\Control\Class\
{4D36E96D-E325-11CE-BFC1-08002BE10318}\0000 (Thanks
again to Matthias for posting the key.) However, no matter how I cleared
the checkbox programmatically (in inline code, in a separate thread, or in
a separate process) it didn't help.
In order to get the setting to "take", I had to use Device Manager to verify that the checkbox was clear (which it always was, so in that respect my checkbox clearing code worked). So evidently when Device Manager sees that the checkbox is now clear, it makes some other modification. Does anyone have any clue what that modification might be?
Anyway, right now, I think I'll look into your suggestion. Thanks!
-- Bob Day
"Jack" <replyto@it> wrote in message news:%238iZj2xlHHA.3760@xxxxxxxxxxxxxxxxxxxxxxxIf you want to do it just for yourself, use:
lineGetDevConfig / lineSetDevConfig with TAPI device class "comm/datamodem".
1.
use lineGetDevConfig and retrieve twice the modem's structure:
one structure with the option turn off
and the second structure with that option turn on.
2.
Now, depending on what you want: use lineSetDevConfig and load the structure you need.
Hope it helps,
Jack
"Bob Day" <xxxxxx@xxxxxxxxxx> wrote in message news:%23KhjllklHHA.4552@xxxxxxxxxxxxxxxxxxxxxxxIn the modem properties dialog box in Device Manager,
there is a checkbox labelled "Wait for dial tone before dialing".
Is there any way, programmatically, to enable or disable
"Wait for dial tone before dialing"?
-- Bob Day
.
- Follow-Ups:
- References:
- How to programmatically clear "Wait for dial tone before dialing"?
- From: Bob Day
- Re: How to programmatically clear "Wait for dial tone before dialing"?
- From: Jack
- Re: How to programmatically clear "Wait for dial tone before dialing"?
- From: Bob Day
- Re: How to programmatically clear "Wait for dial tone before dialing"?
- From: Matthias Moetje [MVP]
- How to programmatically clear "Wait for dial tone before dialing"?
- Prev by Date: Re: problem in receiving calls
- Next by Date: Re: How to programmatically clear "Wait for dial tone before dialing"?
- Previous by thread: Re: How to programmatically clear "Wait for dial tone before dialing"?
- Next by thread: Re: How to programmatically clear "Wait for dial tone before dialing"?
- Index(es):
Relevant Pages
|