Asterisk
  1. Asterisk
  2. ASTERISK-4805

[patch] Remove realtime priority for AGI scripts

    Details

    • Type: Bug Bug
    • Status: Closed
    • Severity: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Target Release Version/s: None
    • Component/s: Resources/res_agi
    • Labels:
      None
    • Mantis ID:
      4930
    • Regression:
      No

      Description

      On Wednesday 10 August 2005 12:40, Steven Critchfield wrote:
      > When asterisk is run in the pseudo realtime mode, any agi app that
      > runs also inherits this priority and can compete with asterisk to
      > complete it's task. While some agi apps may not take long to start up
      > and then spend a large amount of time waiting for asterisk to reply
      > to events, it is the start up time of an agi app that can cause
      > problems.
      >
      > Specifically we have a complex perl script that was causing up to 1
      > second of choppy audio on other zap channels when a new call was
      > started. It would get worse with the more concurrent calls running as
      > asterisk had more work to do and the perl script still had a fixed
      > amount of work to get accomplished before it could go to a mostly
      > idle state.
      >
      > After discussions with Tilghman about the solution, here is a set of
      > diffs that I think need a moment more of peer review before being
      > accepted.
      >
      > I do have a disclaimer on file with Digium.

        Activity

        Hide
        Kevin P. Fleming (Inactive) added a comment -

        Committed to CVS HEAD, thanks!

        Show
        Kevin P. Fleming (Inactive) added a comment - Committed to CVS HEAD, thanks!
        Hide
        Digium Subversion added a comment -

        Repository: asterisk
        Revision: 6368

        U trunk/asterisk.c
        U trunk/include/asterisk.h
        U trunk/res/res_agi.c

        ------------------------------------------------------------------------
        r6368 | kpfleming | 2008-01-15 15:44:56 -0600 (Tue, 15 Jan 2008) | 2 lines

        make sure realtime/high scheduling priority is relinquished before executing an AGI script (issue ASTERISK-4805)

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

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

        Show
        Digium Subversion added a comment - Repository: asterisk Revision: 6368 U trunk/asterisk.c U trunk/include/asterisk.h U trunk/res/res_agi.c ------------------------------------------------------------------------ r6368 | kpfleming | 2008-01-15 15:44:56 -0600 (Tue, 15 Jan 2008) | 2 lines make sure realtime/high scheduling priority is relinquished before executing an AGI script (issue ASTERISK-4805 ) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=6368

          People

          • Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development