summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--channels/chan_sip.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 1982f1fc8..e68718646 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -5647,7 +5647,13 @@ static struct ast_frame *sip_read(struct ast_channel *ast)
}
}
+ /* Only allow audio through if they sent progress with SDP, or if the channel is actually answered */
+ if (p->invitestate != INV_EARLY_MEDIA && ast->_state != AST_STATE_UP) {
+ fr = &ast_null_frame;
+ }
+
sip_pvt_unlock(p);
+
return fr;
}