summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index b6f169f04..01cca0542 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -5912,7 +5912,7 @@ 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 (fr->frametype == AST_FRAME_VOICE && p->invitestate != INV_EARLY_MEDIA && ast->_state != AST_STATE_UP) {
+ if (fr && fr->frametype == AST_FRAME_VOICE && p->invitestate != INV_EARLY_MEDIA && ast->_state != AST_STATE_UP) {
fr = &ast_null_frame;
}