From b6aa728a584ea857fc2b33b8d50348c283ffa185 Mon Sep 17 00:00:00 2001
From: George Joseph <gjoseph@digium.com>
Date: Tue, 19 Sep 2017 04:44:28 -0600
Subject: [PATCH] chan_pjsip: Ignore AST_CONTROL_STREAM_TOPOLOGY_CHANGED for
 now

chan_pjsip_indicate was missing a case for the recently added
AST_CONTROL_STREAM_TOPOLOGY_CHANGED condition and was returning an
error and causing the call to be hung up instead of just ignoring
it.

ASTERISK-27260
Reported by: Daniel Heckl

Change-Id: I4fecbb00a0b8a853da85155065c1a6bddf235e80
---
 channels/chan_pjsip.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/channels/chan_pjsip.c b/channels/chan_pjsip.c
index 841654c927..84b508b611 100644
--- a/channels/chan_pjsip.c
+++ b/channels/chan_pjsip.c
@@ -1738,6 +1738,8 @@ static int chan_pjsip_indicate(struct ast_channel *ast, int condition, const voi
 		topology = data;
 		res = handle_topology_request_change(channel->session, topology);
 		break;
+	case AST_CONTROL_STREAM_TOPOLOGY_CHANGED:
+		break;
 	case -1:
 		res = -1;
 		break;
-- 
GitLab