From: Joshua Colp Date: Mon, 21 Apr 2008 14:39:32 +0000 (+0000) Subject: Only drop audio if we receive it without a progress indication. We allow other frames... X-Git-Tag: 1.4.20-rc1~37 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3053679ade75bcbcc4194ca88195e7d3ca856aa4;p=thirdparty%2Fasterisk.git Only drop audio if we receive it without a progress indication. We allow other frames through such as DTMF because they may be needed to complete the call. (closes issue #12440) Reported by: aragon git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@114322 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 9e7146a2ef..6eeea7e567 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -4386,7 +4386,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 (p->invitestate != INV_EARLY_MEDIA && ast->_state != AST_STATE_UP) { + if (fr->frametype == AST_FRAME_VOICE && p->invitestate != INV_EARLY_MEDIA && ast->_state != AST_STATE_UP) { fr = &ast_null_frame; }