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

Joshua Colp asteriskteam at digium.com
Mon Sep 25 08:00:58 CDT 2017


Joshua Colp has submitted this change and it was merged. ( https://gerrit.asterisk.org/6579 )

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(-)

Approvals:
  George Joseph: Looks good to me, but someone else must approve
  Joshua Colp: Looks good to me, approved; Approved for Submit



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/6579
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Iaa86d41fccfbc1b559a30ccf740d78a3b5f8a98c
Gerrit-Change-Number: 6579
Gerrit-PatchSet: 1
Gerrit-Owner: Sean Bright <sean.bright at gmail.com>
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20170925/8cfc10b7/attachment.html>


More information about the asterisk-code-review mailing list