Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Modem control 1

Status
Not open for further replies.

netwalker1

Programmer
Feb 5, 2000
1,241
EG
How can I control my modem ?<br>
how can I feel the tones ? ( DTMF tones )<br>
how can I make a dial ?<br>
how can I transfer voice over the modem ?<br>
plz anybody helps me ..
 
There is a Sample that comes with VB called &quot;Dialer&quot;<br>
here is a little code to start.<br>
----------------------------------------<br>
Number$ = &quot;555-1212&quot;<br>
DialString$ = &quot;ATDT&quot; + Number$<br>
' Communications port settings.<br>
MSComm1.CommPort = SerialPort ' this is gotten from the Command line<br>
MSComm1.InputLen = 0<br>
MSComm1.Settings = &quot;300,N,8,1&quot;<br>
' Flush the input buffer.<br>
MSComm1.InBufferCount = 0<br>
<br>
' Dial the number.<br>
MSComm1.Output = DialString$<br>
<br>
' Wait for &quot;OK&quot; to come back from the modem.<br>
Do<br>
dummy = DoEvents()<br>
<br>
' If there is data in the buffer, then read it.<br>
If MSComm1.InBufferCount Then<br>
FromModem$ = FromModem$ + MSComm1.Input<br>
'Debug.Print FromModem$<br>
End If<br>
Loop<br>
<br>
' Disconnect the modem.<br>
MSComm1.Output = &quot;ATH&quot; + Chr$(13)<br>
<br>
' Close the port.<br>
MSComm1.PortOpen = False<br>
----------------------------------------<br>
<br>
I know how to dial and so forth not how to send voice though.<br>
What do you want to do? Play .WAV files or Talk over it. <p> DougP<br><a href=mailto: dposton@universal1.com> dposton@universal1.com</a><br><a href= > </a><br>
 
Thanx DougP , I want to transfer voice through a modem...<br>
so I want the function to answer the phone dial from the modem and to transfer voice
 
Transfer Voice???<br>
<br>
There are third party Phone answering program available which maybe more what you want (offer more flexibility) <br>
<p> DougP<br><a href=mailto: dposton@universal1.com> dposton@universal1.com</a><br><a href= > </a><br>
 
Where can I get this program ?<br>
( Is the TAPI can help me to control the modem ? )<br>

 
MessageMan VoiceMail System<br>
BeCubed Software has released our MessageMan VoiceMail System.<br>
<br>
For more info, check out the MessageMan website.<br>
<br>
<A HREF=" TARGET="_new"><br>
Whoa its &quot;3 Grand&quot; sorry about that one.<br>
<br>
Heres a heads up on third party stuff to keep in mind.<br>
When you upgrade to the next version of VB you will probably need to upgrade the 3rd Party Stuff (more $$$$)<br>
Also need to make sure it runs on all 4 Windows versons '95, '98, NT, 2000 if you are distributing.<br>
I don't like them either because of the Registering involved in distribution (Missing that extra .Dll file)<br>
<br>
<p> DougP<br><a href=mailto: dposton@universal1.com> dposton@universal1.com</a><br><a href= > </a><br>
 
Thanx too much..<br>
But, Can u till me how can I answer a call.. From my modem ?<br>

 
I'm not sure about that.<br>
Well there is (was) program that came with '95 called phone dialer. If you ran it, it would annser the phone<br>
But NO it is not programmable thru VB.<br>
<br>
Also your modem should have come with programs.<br>
Now they do not work with VB either but they will allow you to talk with a microphone attached to your sound card and you need speakers too hear.<br>
Also try checking with your modem manufacturer they just <br>
(You need to talk to Tech Support.)<br>
may have some examples which are more than likely in BASIC.<br>
I mean DOS basic but the code is the same and can be pasted with little modification in VB.<br>
<br>
<p> DougP<br><a href=mailto: dposton@universal1.com> dposton@universal1.com</a><br><a href= > </a><br>
 
Hey, Now I can sence the ring..<br>
Example :<br>
mscomm1.output=&quot;s0?&quot;+vbCr<br>
mscomm1.output=&quot;AT=1&quot;+vbCr<br>
this will sence the ring # 1 ( as AT=1 )<br>
But To this moment I can't deal with caller..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top