[Asterisk-code-review] app stream echo: Don't echo declined streams (asterisk[master])
    Sean Bright 
    asteriskteam at digium.com
       
    Sat Sep 23 12:33:54 CDT 2017
    
    
  
Sean Bright has uploaded this change for review. ( 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(-)
  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/79/6579/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/6579
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iaa86d41fccfbc1b559a30ccf740d78a3b5f8a98c
Gerrit-Change-Number: 6579
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/ca989bb4/attachment.html>
    
    
More information about the asterisk-code-review
mailing list