Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please Help me....

dial a phone through modem, (MSComm1.Output = "ATDT123456;")
when the party pick the phone ...
i would like to play a wave file....

please help me
Tony
Posted
Updated 7-May-10 6:23am
v3

It is not possible.
You COM interface will only send data. You need different hardware to do this
 
Share this answer
 
it is possible michele......
you ever try this?


Dim Comport As String = "COM4"
Dim modemPort As New SerialPort(Comport, 9600)
Dim fileByte As Byte()
Dim offset As Integer = 42
modemPort.Open()
modemPort.Write("ATX4&D2DT1234567;" & vbCrLf)
modemPort.Write("AT+VTX" & vbCrLf)
modemPort.Write("AT+VSM=133,8000" & vbCrLf)
fileByte = My.Computer.FileSystem.ReadAllBytes("C:\bell.wav")
modemPort.Write(fileByte, offset, fileByte.Length - offset)



This is the way to do that, but something missing i don't know, if any one know help me
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900