[asterisk-commits] branch 1.2 r9818 - /branches/1.2/rtp.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Feb 13 17:46:01 MST 2006


Author: kpfleming
Date: Mon Feb 13 18:46:00 2006
New Revision: 9818

URL: http://svn.digium.com/view/asterisk?rev=9818&view=rev
Log:
don't try to use peer's dynamic codec numbers, it leads to duplication (issue #6052)

Modified:
    branches/1.2/rtp.c

Modified: branches/1.2/rtp.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/rtp.c?rev=9818&r1=9817&r2=9818&view=diff
==============================================================================
--- branches/1.2/rtp.c (original)
+++ branches/1.2/rtp.c Mon Feb 13 18:46:00 2006
@@ -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 at digium.com>
  *
@@ -807,17 +807,6 @@
 		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;



More information about the asterisk-commits mailing list