Page 2 of 2 FirstFirst 12
Results 41 to 57 of 57

Thread: sending phone key tones after connecting using mscomm32.ocx

  1. #41
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429

    Re: sending phone key tones after connecting using mscomm32.ocx

    Can the same be done with an ADSL Modem?

  2. #42
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    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.

  3. #43
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429

    Re: sending phone key tones after connecting using mscomm32.ocx

    Quote 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!).

  4. #44
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    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.

  5. #45
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803

    Re: sending phone key tones after connecting using mscomm32.ocx

    Quote 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.
    Quote 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...

  6. #46
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    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)

  7. #47
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803

    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.

  8. #48

    Thread Starter
    Lively Member
    Join Date
    Jan 2003
    Location
    Sydney
    Posts
    69

    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 !

  9. #49
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803

    Re: sending phone key tones after connecting using mscomm32.ocx

    Quote 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...

  10. #50

    Thread Starter
    Lively Member
    Join Date
    Jan 2003
    Location
    Sydney
    Posts
    69

    Re: sending phone key tones after connecting using mscomm32.ocx

    arrrrrr
    you're right!

    just tested it// works a treat!!!

    *spins*

  11. #51
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803

    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.

  12. #52

    Thread Starter
    Lively Member
    Join Date
    Jan 2003
    Location
    Sydney
    Posts
    69

    Re: sending phone key tones after connecting using mscomm32.ocx

    good stuff!!

  13. #53
    Old Member moeur's Avatar
    Join Date
    Nov 2004
    Location
    Wait'n for Free Stuff
    Posts
    2,712

    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.

  14. #54
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803

    Re: sending phone key tones after connecting using mscomm32.ocx

    Quote Originally Posted by moeur
    Which modem did you buy?
    AOpen FM56-PX 56K V.92 PCI Modem

    Quote 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

    Quote 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.

  15. #55

    Thread Starter
    Lively Member
    Join Date
    Jan 2003
    Location
    Sydney
    Posts
    69

    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

  16. #56
    New Member
    Join Date
    Aug 2008
    Posts
    1

    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

  17. #57
    PowerPoster CDRIVE's Avatar
    Join Date
    Jul 2007
    Posts
    2,620

    Re: sending phone key tones after connecting using mscomm32.ocx

    Quote 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??

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width