[Asterisk-code-review] app stream echo: Don't echo declined streams (asterisk[15.0])

Sean Bright asteriskteam at digium.com
Sat Sep 23 12:33:49 CDT 2017


Sean Bright has uploaded this change for review. ( https://gerrit.asterisk.org/6578


Change subject: app_stream_echo: Don't echo declined streams
......................................................................

app_stream_echo: Don't echo declined streams

Discovered while experimenting with Cyber Mega Phone 2K Ultimate Dynamic
Edition after accepting the audio request but declining the video one.

Change-Id: Iaa86d41fccfbc1b559a30ccf740d78a3b5f8a98c
---
M apps/app_stream_echo.c
1 file changed, 5 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/78/6578/1

diff --git a/apps/app_stream_echo.c b/apps/app_stream_echo.c
index 9695dcc..717ed1c 100644
--- a/apps/app_stream_echo.c
+++ b/apps/app_stream_echo.c
@@ -249,6 +249,11 @@
 			continue;
 		}
 
+		if (ast_stream_get_state(stream) == AST_STREAM_STATE_REMOVED) {
+			/* Don't copy removed/declined streams */
+			continue;
+		}
+
 		do {
 			stream = ast_stream_clone(stream, NULL);
 

-- 
To view, visit https://gerrit.asterisk.org/6578
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 15.0
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iaa86d41fccfbc1b559a30ccf740d78a3b5f8a98c
Gerrit-Change-Number: 6578
Gerrit-PatchSet: 1
Gerrit-Owner: Sean Bright <sean.bright at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20170923/db6746f6/attachment.html>


More information about the asterisk-code-review mailing list