app_dial: Enable early-media video

Certain applications (e.g. door-phone) require that also video is transmitted
before a call is accepted.

Change-Id: I9842e1dc2f6e1c2c49dc33fe615255007d2f821e
This commit is contained in:
Florian Floimair
2018-02-27 10:01:38 +01:00
parent 68df9e609e
commit 69463c612d
2 changed files with 10 additions and 0 deletions

View File

@@ -1609,6 +1609,7 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in,
break;
}
break;
case AST_FRAME_VIDEO:
case AST_FRAME_VOICE:
case AST_FRAME_IMAGE:
if (caller_entertained) {
@@ -1707,6 +1708,7 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in,
ast_log(LOG_WARNING, "Unable to send URL\n");
}
break;
case AST_FRAME_VIDEO:
case AST_FRAME_VOICE:
case AST_FRAME_IMAGE:
if (!single || caller_entertained) {