[asterisk-commits] branch 1.2 r9953 - /branches/1.2/rtp.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Tue Feb 14 11:23:13 MST 2006
Author: kpfleming
Date: Tue Feb 14 12:23:13 2006
New Revision: 9953
URL: http://svn.digium.com/view/asterisk?rev=9953&view=rev
Log:
revert yesterday's temporary fix for 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=9953&r1=9952&r2=9953&view=diff
==============================================================================
--- branches/1.2/rtp.c (original)
+++ branches/1.2/rtp.c Tue Feb 14 12:23:13 2006
@@ -1,7 +1,7 @@
/*
* Asterisk -- An open source telephony toolkit.
*
- * Copyright (C) 1999 - 2006, Digium, Inc.
+ * Copyright (C) 1999 - 2005, Digium, Inc.
*
* Mark Spencer <markster at digium.com>
*
@@ -807,6 +807,17 @@
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