|
-
Oct 17th, 2005, 04:25 PM
#41
Re: sending phone key tones after connecting using mscomm32.ocx
Can the same be done with an ADSL Modem?
-
Oct 17th, 2005, 04:49 PM
#42
Re: sending phone key tones after connecting using mscomm32.ocx
I don't think it is a voice modem, nor does it support the AT command set.
This is only for analog modems.
-
Oct 17th, 2005, 05:57 PM
#43
Re: sending phone key tones after connecting using mscomm32.ocx
 Originally Posted by dglienna
I don't think it is a voice modem, nor does it support the AT command set.
This is only for analog modems.
G'Day David,
Your right, I didn't think the question tru long enough (doh!).
-
Oct 17th, 2005, 09:29 PM
#44
Re: sending phone key tones after connecting using mscomm32.ocx
The second command ERROR'd, I dialed the number, typed AT+VTX, got the CONNECT, and tried to send Asterisk.wav
AT+FCLASS=8
AT+VSM=0
AT+VRX ' this is to receive... I did not test for transmit yet...
Same error. Sound Card in Use.
I was able to press keys on my cellphone and see the numbers in HyperTerminal, though. Didn't know I could do that.
-
Oct 17th, 2005, 10:07 PM
#45
Re: sending phone key tones after connecting using mscomm32.ocx
 Originally Posted by dglienna
Same error. Sound Card in Use.
The sound you get is as data, through the comm port. So if you do this with HyperTerminal, then you get the sound in the HyperTerminal.
Just type those commands in the HyperTerminal, type the AT+VRX command, so you receive sound (to visually see the data in the hyper terminal).
I'm just trying to figure out how to save that data as wav (maybe). And when I do figure it out how to read the sound, then I'll try playing the sound.
Remember, you don't use the sound card... you read/write on the comm port.
I don't know why you have the option in the sound properties, that part doesnot makes sence to me anymore.
 Originally Posted by dglienna
I was able to press keys on my cellphone and see the numbers in HyperTerminal, though. Didn't know I could do that. 
That's pretty cool, I have to try that too...
-
Oct 17th, 2005, 10:18 PM
#46
Re: sending phone key tones after connecting using mscomm32.ocx
I was calling my cellphone from my laptop, hoping to hear the wave file in the cellphone. I thought selecting modem output would do it, but apparently not.
I wasn't trying to receive in Hyperterminal. (also had trouble hanging up. had to close HyperTerminal)
-
Oct 19th, 2005, 10:17 AM
#47
Re: sending phone key tones after connecting using mscomm32.ocx
Did you guys get it to work ?
Cuz I can't... and I blame it on the modem.
When I give the command AT+VSM=? I only get 4 options. And all of them seem to be encoded somehow.
When I try to play the recorded/saved sound from the modem, all I get is weird/distorted noises.
I don't have an option to record as plain wav !
I have to return the modem back, and buy a better one. This one sucks !
Edit And it's Half-Duplex ! besides that I have only 4 options for AT+VSM=? command !
Last edited by CVMichael; Oct 19th, 2005 at 10:21 AM.
-
Oct 19th, 2005, 05:45 PM
#48
Thread Starter
Lively Member
Re: sending phone key tones after connecting using mscomm32.ocx
I only got as far as playing the dial tones using at+vts=<number>
as far as wav sounds go, I still get that error that the sound card is being used. haven't been able to get around it.. it's quite frustrating. . It coud be the modem, but I've tried a few different ones now with the same result.. I'm heading down the road of sticking a speaker in the headset's microphone and playing the sound down the line that way... but i'm sure there HAS to be a way to do it as it's meant !
-
Oct 19th, 2005, 05:50 PM
#49
Re: sending phone key tones after connecting using mscomm32.ocx
 Originally Posted by mikepol
as far as wav sounds go, I still get that error that the sound card is being used.
Don't use the sound card !
After you issue the AT+VSM=# command, you read the sound from the COMM port, your not using the sound card at all....
Just give these commands in the HyperTerminal
AT+FCLASS=8
AT+VSM=0
AT+VRX
And you will see that right after the AT+VRX you will get a "CONNECT" message then you will see a LOT of "garbage" data, that's actually the sound that comes from the line...
-
Oct 19th, 2005, 05:58 PM
#50
Thread Starter
Lively Member
Re: sending phone key tones after connecting using mscomm32.ocx
arrrrrr
you're right!
just tested it// works a treat!!!
*spins*
-
Nov 1st, 2005, 03:12 PM
#51
Re: sending phone key tones after connecting using mscomm32.ocx
For those of you who are still trying to get this to work (like me):
I found out that for some modems, there is an extra command you have to give to enable sound; it's AT+VLS
I bought a new modem (full-deplex, the old one was half-duplex), and for this modem, I have to give the following commands:
AT+FCLASS=8
AT+VLS=1 <- new command
AT+VSM=0
AT+VRX <- to receive sound
<- here, read the sound from the comm port
If you do: AT+VLS=?
You will get a list, kind of like the command AT+VSM=?, and you have to choose one from the list, for my modem 0 does not work... 1 works, and I did not try the others...
Now I can finally start programming on my own ansering machine !
Last edited by CVMichael; Nov 1st, 2005 at 04:15 PM.
-
Nov 1st, 2005, 04:34 PM
#52
Thread Starter
Lively Member
Re: sending phone key tones after connecting using mscomm32.ocx
-
Nov 1st, 2005, 04:46 PM
#53
Re: sending phone key tones after connecting using mscomm32.ocx
Which modem did you buy?
I was thinking of getting one to build an answering machine too.
I long ago wrote some code to get the caller ID string and announce the caller over the PC speakers. I used an access database to store a phone book and lookup table for incoming calls.
Now I'd like to make seperate mailboxes and have different greetings for incoming calls depending on what the caller ID is.
Keep posting the code as you build it if you don't mind.
-
Nov 1st, 2005, 05:01 PM
#54
Re: sending phone key tones after connecting using mscomm32.ocx
 Originally Posted by moeur
Which modem did you buy?
AOpen FM56-PX 56K V.92 PCI Modem

 Originally Posted by moeur
Now I'd like to make seperate mailboxes and have different greetings for incoming calls depending on what the caller ID is.
Thanks for the idea 
 Originally Posted by moeur
Keep posting the code as you build it if you don't mind.
Sure, in this thread ? I think we should make a new thread for that, what do you think ?
Last edited by CVMichael; Nov 1st, 2005 at 05:17 PM.
-
Nov 1st, 2005, 05:06 PM
#55
Thread Starter
Lively Member
Re: sending phone key tones after connecting using mscomm32.ocx
I think we should make a new thread for that, what do you think
if you do, post a link to it here
-
Aug 5th, 2008, 03:00 PM
#56
New Member
Re: sending phone key tones after connecting using mscomm32.ocx
Hello to you all,
Right now, I want to make a telephony software, and I tried almost everything that you all said, but with out anything working out.
I saw what CVMichael, and I really liked all his posts, but the problem is I can't get things to work.
Right now, my voice modem can call any mobile or land-line easily, but the problem is I can't hear the voice of the ringing on the SPEAKERs at all, I tried to change the output sound to Modem#0 Line PlayBack, but things didn't work out.
Here is my code:
Code:
MSComm1.Output = "AT+FCLASS=8" & vbCr
MSComm1.Output = "AT+VRX" & vbCr
MSComm1.Output = "AT+VTX" & vbCr
MSComm1.Output = "ATD0123686884" & vbCr
-
Aug 5th, 2008, 10:55 PM
#57
Re: sending phone key tones after connecting using mscomm32.ocx
 Originally Posted by mikepol
thanks for that!
so it looks like I cant use AT commands to send further tones down the line? I have to hardwire a speaker into the handset speaker? the handset IS connected to the modem...

This thread has progressed quite a bit since the post that's quoted above, so if what I'm going to say has been covered already then just ignore it. Anyway, In order to send audio down the Tel line (after the number has been dialed) you should be using the Semicolon AT command modifier. Using the semicolon instructs the modem to remain in Terminal Mode after dialing the number.
Code:
'Wait for dial tone & dial the number using DTMF. Stay in (;)Terminal Mode
MSCommSendAlarm.Output = "ATDTW" & txtNumToDial & ";" & Chr(13)
<--- Did someone help you? Please rate their post. The little green squares make us feel really smart!
If topic has been resolved, please pull down the Thread Tools & mark it Resolved.
Is VB consuming your life, and is that a bad thing?? 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|