[asterisk-commits] russell: branch russell/iax2_performance r51143 -
/team/russell/iax2_performa...
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Tue Jan 16 09:41:09 MST 2007
Author: russell
Date: Tue Jan 16 10:41:08 2007
New Revision: 51143
URL: http://svn.digium.com/view/asterisk?view=rev&rev=51143
Log:
Remove some debug output and also remove the old code for finding the correct
pvt structure for a media frame.
Modified:
team/russell/iax2_performance/channels/chan_iax2.c
Modified: team/russell/iax2_performance/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/team/russell/iax2_performance/channels/chan_iax2.c?view=diff&rev=51143&r1=51142&r2=51143
==============================================================================
--- team/russell/iax2_performance/channels/chan_iax2.c (original)
+++ team/russell/iax2_performance/channels/chan_iax2.c Tue Jan 16 10:41:08 2007
@@ -1308,29 +1308,6 @@
break;
}
AST_RWLIST_UNLOCK(&pvt_hash_tbl[hash]);
- if (res < 1)
- ast_log(LOG_WARNING, "Didn't find the pvt struct in the hash table!\n");
- /* Look for an existing connection first */
- for (x=1;(res < 1) && (x<maxnontrunkcall);x++) {
- ast_mutex_lock(&iaxsl[x]);
- if (iaxs[x]) {
- /* Look for an exact match */
- if (match(sin, callno, dcallno, iaxs[x])) {
- res = x;
- }
- }
- ast_mutex_unlock(&iaxsl[x]);
- }
- for (x=TRUNK_CALL_START;(res < 1) && (x<maxtrunkcall);x++) {
- ast_mutex_lock(&iaxsl[x]);
- if (iaxs[x]) {
- /* Look for an exact match */
- if (match(sin, callno, dcallno, iaxs[x])) {
- res = x;
- }
- }
- ast_mutex_unlock(&iaxsl[x]);
- }
}
if ((res < 1) && (new >= NEW_ALLOW)) {
if (!iax2_getpeername(*sin, host, sizeof(host), lockpeer))
More information about the asterisk-commits
mailing list