diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-08-03 17:00:54 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-08-03 17:00:54 +0000 |
commit | 0b53dcb60a74a412afcb311ea212f7d69c537db9 (patch) | |
tree | d1d0d7217f8e951b0c3a7a86f084879f065e79f2 /channels/chan_mgcp.c | |
parent | eb2a6747d16a59e47c067b87683bf3a46e9d6d91 (diff) |
Don't offer codecs not allowed on a reinvite
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3574 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_mgcp.c')
-rwxr-xr-x | channels/chan_mgcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c index f30e4ab4a..ac3af25bf 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); } |