msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Program can't send "stop" messgage because it's being blocke

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Syntax
Author Message
Kristian Frost



Joined: 04 Oct 2007
Posts: 15

PostPosted: Fri Jun 30, 2006 12:47 pm    Post subject: Program can't send "stop" messgage because it's being blocke Reply with quote

Hi,
Very new to VB. I've been thrown in at the deep end at the start of a
univeristy placement.
I think I have the problem described, while going through some rather more
complex stuff in the background, so please bear with me while I describe
it, in case the problem is actually something else entirely.

I'm using the MS TAPI3 COM objects to set up, call and answer a phone call
over two 56K modems.
I've selected a modem, set up the call to be made, and set up an event on
the second modem to answer when it registers an incoming call on its line.
I've tested these things seperately and they seem to work.
Then I send the following line:

Call objCallControl.Connect(True)

Which starts a call object, which is set not to return until the call is
answered, or it times out.
Because the exact same software is the software that's trying to answer
the call, it can't respond to the call to answer until this outgoing call
has "finished", i.e. until it has failed to be answered and processed
through to its two-minute timeout.
This then starts the slightly surreal situation where the line picks up,
dials, fires a "Call incoming" event which it blocks, times out, then
allowing the incoming call event to answer the other modem on the other
(now closed) line.

There is a simple workaround in TAPI that I've used for the moment, which
is to send:

Call objCallControl.Connect(False)

which just sends out a call event and returns immediately, regardless of
whether it's been answered or not.

I'm not sure this is safe, but at the moment, I don't know how to allow
that event to fire and answer the call while the call is still valid to be
answered.

Any ideas?

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

Archived from group: microsoft>public>vb>syntax
Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
"Send Keys" to a particular program... Hi I need to send "crtl+m" keyspress via VBscript to Indesing. How can i do this?? whats the command? "Crtl+m" is a shortcut Key to a particular plug-in funtions that is not Thanks a lot!!!! SpeeD72

send keys???? If you want to type in the letter e you just press the e key if you want to type in an e with an accent è you type in ALT 138 Here is what I would like to do Click on a command button and the è(with the accent and all) would be placed on the cpliboard. Is

How can i send MSG to as400 Dear Friends i need to send a MSG to as400 then it will run automaticaly a RPG programe. how can i send a MSG or is there a way to run RPG programe using VB6 I am using vb6 so i need to send command using vb6 Thx Anuradha Thennakoon

Send music files Hello i'm a student informatics and i'm busy with a music database project. I've a database with all my songs in and i want to play them with Windows media player. So i have a listbox, when i select song they stand in that lisbox and when i push the play

send a file by mail can vb 5 or 6 send a file by mail to a computer in the internet? how?
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Syntax All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group