Re: How to programmatically clear "Wait for dial tone before dialing"?

Tech-Archive recommends: Speed Up your PC by fixing your registry



Please see my first reply in here.
just substitute X0 for X3.
It is much safer to add initilizing string in modem properties than editing
Windows registry.
Jack

"Bob Day" <xxxxxx@xxxxxxxxxx> wrote in message
news:OP6RW0WmHHA.2552@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Thanks, 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@xxxxxxxxxxxxxxxxxxxxxxx
If 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@xxxxxxxxxxxxxxxxxxxxxxx
In 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






.



Relevant Pages

  • Re: How to programmatically clear "Wait for dial tone before dialing"?
    ... Under the Settings key there's a value called "Blind_On", ... AT command code for setting a modem to blind dialing mode. ... when you clear the "Wait for dial tone before dialing" checkbox.) ...
    (microsoft.public.win32.programmer.tapi)
  • Re: How to programmatically clear "Wait for dial tone before dialing"?
    ... code that's given in the Blind_On value in the registry for the modem ... It is much safer to add initilizing string in modem properties than editing Windows registry. ... AT command code for setting a modem to blind dialing mode. ... when you clear the "Wait for dial tone before dialing" checkbox.) ...
    (microsoft.public.win32.programmer.tapi)
  • Re: SOUND DURING DIAL-UP HAS STOPPED
    ... I have checked the settings of my modem properties. ... connection for IE6,perhaps in some of the settings,but I ... >Dialing sounds do not come from your soundcard they come ...
    (microsoft.public.windows.inetexplorer.ie6.setup)
  • Re: How to programmatically clear "Wait for dial tone before dialing"?
    ... You can set each modem to set this on startup by configuring the modem in ... I have found that if I manually uncheck the "Wait for dial tone before ... "Wait for dial tone before dialing" checkbox before running my program, ...
    (microsoft.public.win32.programmer.tapi)
  • disable incoming fax
    ... fax checkbox. ... Going backto the To do List the checkmark is still in there and the modem ...
    (microsoft.public.windows.server.sbs)