]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_agi: Prevent an AGI from eating frames it should not. (Re-do) 79/4879/1
authorRichard Mudgett <rmudgett@digium.com>
Tue, 31 Jan 2017 22:38:49 +0000 (16:38 -0600)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 2 Feb 2017 19:02:03 +0000 (13:02 -0600)
commit97c308471d2ead6473499b0026b72f8ed7b516eb
treeec54c9c2dd18d99fb429e9e12f5ebe3835ff6074
parent72e3fc58455e08307a06e57099c8362879688ea0
res_agi: Prevent an AGI from eating frames it should not. (Re-do)

A dialplan intercept routine is equivalent to an interrupt routine.  As
such, the routine must be done quickly and you do not have access to the
media stream.  These restrictions are necessary because the media stream
is the responsibility of some other code and interfering with or delaying
that processing is bad.  A possible future dialplan processing
architecture change may allow the interception routine to run in a
different thread from the main thread handling the media and remove the
execution time restriction.

* Made res_agi.c:run_agi() running an AGI in an interception routine run
in DeadAGI mode.  No touchy channel frames.

ASTERISK-25951

ASTERISK-26343

ASTERISK-26716

Change-Id: I638f147ca7a7f2590d7194a8ef4090eb191e4e43
include/asterisk/channel.h
main/channel.c
res/res_agi.c