mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-11 12:28:27 +00:00
Merge "Local channels: Do not block control -1 payloads." into 13
This commit is contained in:
@@ -409,12 +409,7 @@ static int unreal_queue_indicate(struct ast_unreal_pvt *p, struct ast_channel *a
|
|||||||
int isoutbound;
|
int isoutbound;
|
||||||
|
|
||||||
ao2_lock(p);
|
ao2_lock(p);
|
||||||
/*
|
if (ast_test_flag(p, AST_UNREAL_NO_OPTIMIZATION)) {
|
||||||
* Block -1 stop tones events if we are to be optimized out. We
|
|
||||||
* don't need a flurry of these events on an unreal channel chain
|
|
||||||
* when initially connected to slow the optimization process.
|
|
||||||
*/
|
|
||||||
if (0 <= condition || ast_test_flag(p, AST_UNREAL_NO_OPTIMIZATION)) {
|
|
||||||
struct ast_frame f = {
|
struct ast_frame f = {
|
||||||
.frametype = AST_FRAME_CONTROL,
|
.frametype = AST_FRAME_CONTROL,
|
||||||
.subclass.integer = condition,
|
.subclass.integer = condition,
|
||||||
|
|||||||
Reference in New Issue
Block a user