Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. tapi???

tapi???

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mpallavi
    wrote on last edited by
    #1

    hi.. Can anybody tell me how to go about this.. My application requires the key entered on a telephone (PSTN phone connected to usb port using an adapter).. to appear on the screen (edit box provided by me to hold the phone number).. The thing is, I dont know from where to start.. Is TAPI is what i require to study??? .. I need not worry about the networking part of it.. Just collect voice from telephone and save it and play it back.. (one module that is playing back of wave files is done.. i am doing the recording of voice using microphone at present..) ... Awaiting suggestions.. regards pallavi

    C J 2 Replies Last reply
    0
    • M mpallavi

      hi.. Can anybody tell me how to go about this.. My application requires the key entered on a telephone (PSTN phone connected to usb port using an adapter).. to appear on the screen (edit box provided by me to hold the phone number).. The thing is, I dont know from where to start.. Is TAPI is what i require to study??? .. I need not worry about the networking part of it.. Just collect voice from telephone and save it and play it back.. (one module that is playing back of wave files is done.. i am doing the recording of voice using microphone at present..) ... Awaiting suggestions.. regards pallavi

      C Offline
      C Offline
      Claudio Grazioli
      wrote on last edited by
      #2

      mpallavi wrote: Is TAPI is what i require to study??? Basically: Yes. To control a phone (or a PBX) TAPI normaly is the way to go. But: You need a TAPI driver. You can only control phones and PBX's that have a TAPI driver. In your case, I think the adapter you use to connect the phone to the PC must have a TAPI driver. mpallavi wrote: Just collect voice from telephone and save it And here is your next problem. Most TAPI drivers support TAPI version 2.x. But TAPI 2.x does not support capturing the voice stream of the phone. Capturing voice streams from the phone is optionally supported by TAPI 3.x. But just optionally. So even if you have a TAPI 3.x driver for your phone/adapter it's unsure if it supports capturing voice streams. Claudio Claudio's Website

      1 Reply Last reply
      0
      • M mpallavi

        hi.. Can anybody tell me how to go about this.. My application requires the key entered on a telephone (PSTN phone connected to usb port using an adapter).. to appear on the screen (edit box provided by me to hold the phone number).. The thing is, I dont know from where to start.. Is TAPI is what i require to study??? .. I need not worry about the networking part of it.. Just collect voice from telephone and save it and play it back.. (one module that is playing back of wave files is done.. i am doing the recording of voice using microphone at present..) ... Awaiting suggestions.. regards pallavi

        J Offline
        J Offline
        jerry0davis
        wrote on last edited by
        #3

        I have a similar setup. On my PC the phone becomes another sound device. I just use DirectX's DirectSound to record. The tricky bit is to record from a non-default device. Look at the DirectSound samples in the DirecrtX SDK for examples on how record, and how to set the recording and playing device you require. DirectX 9c SDK[^]. As for button presses the PSTN adaptor has a COM interface that send messages when a button is pressed. Also I use the Microsoft RTC API SDK[^] to make SIP telephone calls. A PSTN gateway is also required.


        I feel like I'm diagonally parked in a parallel universe Jerry Davis http://www.astad.org
        http://www.jvf.co.uk

        M 1 Reply Last reply
        0
        • J jerry0davis

          I have a similar setup. On my PC the phone becomes another sound device. I just use DirectX's DirectSound to record. The tricky bit is to record from a non-default device. Look at the DirectSound samples in the DirecrtX SDK for examples on how record, and how to set the recording and playing device you require. DirectX 9c SDK[^]. As for button presses the PSTN adaptor has a COM interface that send messages when a button is pressed. Also I use the Microsoft RTC API SDK[^] to make SIP telephone calls. A PSTN gateway is also required.


          I feel like I'm diagonally parked in a parallel universe Jerry Davis http://www.astad.org
          http://www.jvf.co.uk

          M Offline
          M Offline
          mpallavi
          wrote on last edited by
          #4

          Hello Jerry I have written a program that records voice spoken over microphone .. Will the same program work if mircophone is replaced by the PSTN telephone ? My job is to record the outgoing calls.. I need not take care of VOIP or networking part of it.. How to interact with the COM interface to make buttons pressed on the phone to appear on the screen.. Can you suggest some links or sample code for the same.. i will be very thankful.. regards pal

          J 1 Reply Last reply
          0
          • M mpallavi

            Hello Jerry I have written a program that records voice spoken over microphone .. Will the same program work if mircophone is replaced by the PSTN telephone ? My job is to record the outgoing calls.. I need not take care of VOIP or networking part of it.. How to interact with the COM interface to make buttons pressed on the phone to appear on the screen.. Can you suggest some links or sample code for the same.. i will be very thankful.. regards pal

            J Offline
            J Offline
            jerry0davis
            wrote on last edited by
            #5

            It all really depends on how your PSTN adaptor works. My adaptor appears as a second sound card. I then just simply record from the micrphone on the PSTN adaptor. I use DirectX to record. Can you see an extra sound card on your system? I have another PSTN->IP adaptor that this method wouldn't work for.


            I feel like I'm diagonally parked in a parallel universe Jerry Davis http://www.astad.org
            http://www.jvf.co.uk

            M 1 Reply Last reply
            0
            • J jerry0davis

              It all really depends on how your PSTN adaptor works. My adaptor appears as a second sound card. I then just simply record from the micrphone on the PSTN adaptor. I use DirectX to record. Can you see an extra sound card on your system? I have another PSTN->IP adaptor that this method wouldn't work for.


              I feel like I'm diagonally parked in a parallel universe Jerry Davis http://www.astad.org
              http://www.jvf.co.uk

              M Offline
              M Offline
              mpallavi
              wrote on last edited by
              #6

              No .. there is no extra sound card.. the phone adapter is connected to usb port and uses the standard usb driver.. the client driver is getting programmed .. Please excuse me if something is wrong.. I am new to programming such application that needs to communicate with the device drivers.. also VC++ is new to me.. I am recording sound using MCI.. ... Require some guidance.. regards pal

              J 1 Reply Last reply
              0
              • M mpallavi

                No .. there is no extra sound card.. the phone adapter is connected to usb port and uses the standard usb driver.. the client driver is getting programmed .. Please excuse me if something is wrong.. I am new to programming such application that needs to communicate with the device drivers.. also VC++ is new to me.. I am recording sound using MCI.. ... Require some guidance.. regards pal

                J Offline
                J Offline
                jerry0davis
                wrote on last edited by
                #7

                If you're programming the driver, then I cannot help you I'm afraid. Sorry


                I feel like I'm diagonally parked in a parallel universe Jerry Davis http://www.astad.org
                http://www.jvf.co.uk

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups