From: Mark Spencer Date: Tue, 3 Aug 2004 17:00:54 +0000 (+0000) Subject: Don't offer codecs not allowed on a reinvite X-Git-Tag: 1.0.0-rc2~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07f349766c8a2e82b6f4acc169240b494e96ec60;p=thirdparty%2Fasterisk.git Don't offer codecs not allowed on a reinvite git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3574 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c index f30e4ab4a7..ac3af25bf0 100755 --- a/channels/chan_mgcp.c +++ b/channels/chan_mgcp.c @@ -1930,7 +1930,7 @@ static int transmit_modify_with_sdp(struct mgcp_subchannel *sub, struct ast_rtp } snprintf(local, sizeof(local), "p:20"); for (x=1;x<= AST_FORMAT_MAX_AUDIO; x <<= 1) { - if (capability & x) { + if (p->capability & x) { snprintf(tmp, sizeof(tmp), ", a:%s", ast_rtp_lookup_mime_subtype(1, x)); strncat(local, tmp, sizeof(local) - strlen(local) - 1); }