[asterisk-commits] tilghman: branch 1.4 r127133 - in /branches/1.4: build_tools/ channels/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jul 1 15:25:38 CDT 2008


Author: tilghman
Date: Tue Jul  1 15:25:37 2008
New Revision: 127133

URL: http://svn.digium.com/view/asterisk?view=rev&rev=127133
Log:
Disable the old, slow search for matching callno in chan_iax2 (but allow it to be reenabled for debugging)

Modified:
    branches/1.4/build_tools/cflags.xml
    branches/1.4/channels/chan_iax2.c

Modified: branches/1.4/build_tools/cflags.xml
URL: http://svn.digium.com/view/asterisk/branches/1.4/build_tools/cflags.xml?view=diff&rev=127133&r1=127132&r2=127133
==============================================================================
--- branches/1.4/build_tools/cflags.xml (original)
+++ branches/1.4/build_tools/cflags.xml Tue Jul  1 15:25:37 2008
@@ -13,6 +13,8 @@
 		</member>
 		<member name="STATIC_BUILD" displayname="Build static binaries">
 		</member>
+		<member name="IAX_OLD_FIND" displayname="Use the old, slow method of searching for IAX callnos">
+		</member>
 		<member name="LOADABLE_MODULES" displayname="Runtime module loading">
 			<defaultenabled>yes</defaultenabled>
 		</member>

Modified: branches/1.4/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_iax2.c?view=diff&rev=127133&r1=127132&r2=127133
==============================================================================
--- branches/1.4/channels/chan_iax2.c (original)
+++ branches/1.4/channels/chan_iax2.c Tue Jul  1 15:25:37 2008
@@ -1563,6 +1563,7 @@
 			return res;
 		}
 
+#ifdef IAX_OLD_FIND
 		/* If we get here, we SHOULD NOT find a call structure for this
 		   callno; if we do, it means that there is a call structure that
 		   has a peer callno but did NOT get entered into the hash table,
@@ -1601,6 +1602,7 @@
 		if (res) {
 			ast_log(LOG_WARNING, "Old call search code found call number %d that was not in hash table!\n", res);
 		}
+#endif
 	}
 	if (!res && (new >= NEW_ALLOW)) {
 		int start, found = 0;




More information about the asterisk-commits mailing list