Details

    • Type: New Feature New Feature
    • Status: Closed
    • Severity: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Target Release Version/s: None
    • Component/s: Applications/General
    • Labels:
      None
    • Mantis ID:
      2467
    • Regression:
      No

      Description

      This app was put together so as to be able to deal with answering machines when making outbound calls. The idea is that you probably don't want to start playing your soundfile until there has been a given amount of silence.

      Here is a simple implementation; note that it can be called repeatedly to deal with cadences of different situations:

      Exten => 7001,1,WaitForSilence(200,7)
      Exten => 7001,2,WaitForSilence(700,1)
      Exten => 7001,3,Playback,outboundmsg
      Exten => 7001,4,Hangup

      This in (1) waits for silence 200ms, 7 times (1.4 seconds). Then upon that being done, it waits for silence 700ms once.

      This deals with the possibility of multiple short periods of silence occuring within or before an answering machine message (200 x 7 instances), and then waits for 700ms of silence to be SURE that the remote side really is ready for you to talk. This essentially emulates human behavior when calling an answering machine, and in my tests, this configuration works very well.

      This code is based on *'s internal DSP functions. It should be ready for inclusion in the CVS head. Just edit apps/Makefile to include app_waitforsilence.c in app list.

      This app can be used for good or for evil; please use only for good.

        Activity

        Hide
        davetroy added a comment -

        Been using this for some time without incident; no further changes to report. Should be good to go.

        Show
        davetroy added a comment - Been using this for some time without incident; no further changes to report. Should be good to go.
        Hide
        twisted added a comment -

        still going okay here?

        Markster, any ideas on if this will go in or not? I'd like to see something happen one way or the other..

        Show
        twisted added a comment - still going okay here? Markster, any ideas on if this will go in or not? I'd like to see something happen one way or the other..
        Hide
        Mark Spencer added a comment -

        Added to CVS with modifications.

        Show
        Mark Spencer added a comment - Added to CVS with modifications.
        Hide
        Russell Bryant added a comment -

        not in 1.0

        Show
        Russell Bryant added a comment - not in 1.0
        Hide
        Digium Subversion added a comment -

        Repository: asterisk
        Revision: 4329

        U trunk/apps/Makefile
        A trunk/apps/app_waitforsilence.c

        ------------------------------------------------------------------------
        r4329 | markster | 2008-01-15 15:14:52 -0600 (Tue, 15 Jan 2008) | 2 lines

        Add WaitForSilence application (bug ASTERISK-2431)

        ------------------------------------------------------------------------

        http://svn.digium.com/view/asterisk?view=rev&revision=4329

        Show
        Digium Subversion added a comment - Repository: asterisk Revision: 4329 U trunk/apps/Makefile A trunk/apps/app_waitforsilence.c ------------------------------------------------------------------------ r4329 | markster | 2008-01-15 15:14:52 -0600 (Tue, 15 Jan 2008) | 2 lines Add WaitForSilence application (bug ASTERISK-2431 ) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=4329

          People

          • Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development