[asterisk-commits] app stream echo: Don't echo declined streams (asterisk[master])
SVN commits to the Asterisk project
asterisk-commits at lists.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-commits/attachments/20170925/af07e131/attachment-0001.html>
More information about the asterisk-commits
mailing list