aboutsummaryrefslogtreecommitdiffstats
path: root/rtp.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-02-14 00:46:00 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-02-14 00:46:00 +0000
commit5ac713c7fb6ed2ecab4df5b5aed4938b0108bec1 (patch)
treecf484aa7db4f2c979e4a658ecb134ac1a973226c /rtp.c
parent13269cd3d84c9a4bfd369f65685daf84328615a3 (diff)
don't try to use peer's dynamic codec numbers, it leads to duplication (issue #6052)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@9818 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'rtp.c')
-rw-r--r--rtp.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/rtp.c b/rtp.c
index 0c475ed98..6a725d248 100644
--- a/rtp.c
+++ b/rtp.c
@@ -1,7 +1,7 @@
/*
* Asterisk -- An open source telephony toolkit.
*
- * Copyright (C) 1999 - 2005, Digium, Inc.
+ * Copyright (C) 1999 - 2006, Digium, Inc.
*
* Mark Spencer <markster@digium.com>
*
@@ -807,17 +807,6 @@ int ast_rtp_lookup_code(struct ast_rtp* rtp, const int isAstFormat, const int co
return rtp->rtp_lookup_code_cache_result;
}
- /* Check the dynamic list first */
- for (pt = 0; pt < MAX_RTP_PT; ++pt) {
- if (rtp->current_RTP_PT[pt].code == code && rtp->current_RTP_PT[pt].isAstFormat == isAstFormat) {
- rtp->rtp_lookup_code_cache_isAstFormat = isAstFormat;
- rtp->rtp_lookup_code_cache_code = code;
- rtp->rtp_lookup_code_cache_result = pt;
- return pt;
- }
- }
-
- /* Then the static list */
for (pt = 0; pt < MAX_RTP_PT; ++pt) {
if (static_RTP_PT[pt].code == code && static_RTP_PT[pt].isAstFormat == isAstFormat) {
rtp->rtp_lookup_code_cache_isAstFormat = isAstFormat;