Telephony project

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Roger

    #1

    Telephony project

    I'm new to Python and need to do a (low level, I think) telephony
    project ( POTS, all local calling) in WinXp.
    1. Fetch phone number from my ASCII data.
    2. Dial (always a local number) phone (through USRobotics 56K? ).
    3. Ask @3 questions to called phone number. Y/N Y/N Y/N
    4. Save answers to ASCII file.
    5. Say 'Thanks', hang up.
    Repeat till eof()
    And...I've not seen any telephony books in/for Python. Any and all
    help, suggestions, directions, etc. would be *GREATLY* appreciated.

    TIA

  • Paul Rubin

    #2
    Re: Telephony project

    "Roger" <maxwell.roger@ googlemail.com> writes:[color=blue]
    > 1. Fetch phone number from my ASCII data.
    > 2. Dial (always a local number) phone (through USRobotics 56K? ).
    > 3. Ask @3 questions to called phone number. Y/N Y/N Y/N
    > 4. Save answers to ASCII file.
    > 5. Say 'Thanks', hang up.
    > Repeat till eof()[/color]

    There is an excellent graphic on the web showing how to do this phone
    spamming with Python. It used to be at http://goatse.cx but I don't
    know where it is now.

    Comment

    • Roger

      #3
      Re: Telephony project

      "CheckOn" is the working name for my project. Our church
      community has many elderly who are at home but close to assisted living
      placements. Many do not have family and rely on volunteer caretakers
      and lunch providers for their socialization. We are trying to make
      phone contact with these members to check on their needs, wellbeing,
      and ability to take care of themselves. In sharing that information
      with other denominations in our city, we discovered that others were
      having identical issues. The numbers are larger than we anticipated.
      Thus the project. Thanks for your interest.

      Comment

      • Mike

        #4
        Re: Telephony project


        I was able to do something like this in Python a while back. You'll need one
        of:
        (a) A telephone line dialer/monitor & DTMF I/O board that works through the
        serial port, and a phone audio tap that mixes the soundcard I/O to the phone
        (b) A TAPI-compliant modem that does everything you need
        (c) A digital POTS phone that is controllable through serial, USB or your
        LAN, or a TAPI interface.
        (d) VOIP software and service than uses SIP, etc. (I found this I found
        this:
        http://softphones.globaliptel.com/(c...e844bcd86b2955,
        but am in no way endorsing it. Also check out http://www.sipfoundry.org/)

        I used method (a) -- (b) tends to be a pain (as most OEM TAPI modems have
        some fatal flaw or three...) and (c/d) may be more possible now that before.
        I used voice reco on the input side rather then DTMF, but I was doing it
        from local phone exensions on the same loop, not for outside calls, and not
        for the elderly, so DTMF is probably better anyway. (If you need to know the
        exact hardware I used, I can find out.)

        The other option is to not have your own hardware at all and use a
        service -- there are companies provide web services that let you
        write/generate markup (VoiceXML or other) to make the calls, wait for DTMF
        or voice input, etc. (Though I had trouble Googling one at the moment -
        there were more a few years ago...)

        m



        "Roger" <maxwell.roger@ googlemail.com> wrote in message
        news:1127816655 .712927.289850@ g14g2000cwa.goo glegroups.com.. .[color=blue]
        > "CheckOn" is the working name for my project. Our church
        > community has many elderly who are at home but close to assisted living
        > placements. Many do not have family and rely on volunteer caretakers
        > and lunch providers for their socialization. We are trying to make
        > phone contact with these members to check on their needs, wellbeing,
        > and ability to take care of themselves. In sharing that information
        > with other denominations in our city, we discovered that others were
        > having identical issues. The numbers are larger than we anticipated.
        > Thus the project. Thanks for your interest.
        >[/color]


        Comment

        • aaron

          #5
          Re: Telephony project

          It will be much easier to use asterisk, there's a win32 version aterisk
          available but it does not support hardware phone, voip only.
          A clone FXO card only cost $15 on ebay.

          "Roger" <maxwell.roger@ googlemail.com> wrote in message
          news:1127758835 .527555.217870@ g47g2000cwa.goo glegroups.com.. .[color=blue]
          > I'm new to Python and need to do a (low level, I think) telephony
          > project ( POTS, all local calling) in WinXp.
          > 1. Fetch phone number from my ASCII data.
          > 2. Dial (always a local number) phone (through USRobotics 56K? ).
          > 3. Ask @3 questions to called phone number. Y/N Y/N Y/N
          > 4. Save answers to ASCII file.
          > 5. Say 'Thanks', hang up.
          > Repeat till eof()
          > And...I've not seen any telephony books in/for Python. Any and all
          > help, suggestions, directions, etc. would be *GREATLY* appreciated.
          >
          > TIA
          >[/color]


          Comment

          • Miki Tebeka

            #6
            Re: Telephony project

            Hello Roger,
            [color=blue]
            > 1. Fetch phone number from my ASCII data.[/color]
            Trivial in Python.
            [color=blue]
            > 2. Dial (always a local number) phone (through USRobotics 56K? ).[/color]
            Can't recall that.[color=blue]
            > 3. Ask @3 questions to called phone number. Y/N Y/N Y/N[/color]
            You can use flite (http://www.speech.cs.cmu.edu/flite/) for Text-To-Speech.
            (e.g. system("flite -t 'how are you?'"))
            [color=blue]
            > 4. Save answers to ASCII file.[/color]
            You need to get the audio, maybe you can use portaudio
            (http://www.portaudio.com/)
            [color=blue]
            > 5. Say 'Thanks', hang up.[/color]
            flit again.
            [color=blue]
            > Repeat till eof()[/color]
            Trivial.

            HTH.
            --
            ------------------------------------------------------------------------
            Miki Tebeka <mtebeka@qualco mm.com>

            The only difference between children and adults is the price of the toys

            -----BEGIN PGP SIGNATURE-----
            Version: GnuPG v1.4.1 (Cygwin)

            iD8DBQFDOorp8jA dENsUuJsRAqcdAJ 4g+PK/IngBFKEIHBzUfdn FCBw1VQCgu4Cv
            fkv6Mdc7TfS+1oE VaDN0dbk=
            =iT+3
            -----END PGP SIGNATURE-----

            Comment

            • Roger

              #7
              Re: Telephony project

              Thanks for all the helpful postings! A clearer specification for
              my project is that the CALLER speaks directly to list_member. And
              enters, thru GUI checkbox(s), answering: r_u_ok?; Send chuch member to
              visit list_member; call Social Worker, help needed, etc. An important
              element is to verify that the elderly member has been called. When,
              and by whom. And if additional care, contact is needed.
              After reading replys I think I can do all Python work. I'm
              looking at pySerial to manage the phone calls. The s/w needs to be
              GUI, ez to use (elderly volunteers) and work on donated (read 'old')
              hardware. Thank you all for your advice, pointers, and suggestions. rm

              Comment

              Working...