]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Disable the old, slow search for matching callno in chan_iax2 (but allow it to be...
authorTilghman Lesher <tilghman@meg.abyt.es>
Tue, 1 Jul 2008 20:25:37 +0000 (20:25 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Tue, 1 Jul 2008 20:25:37 +0000 (20:25 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@127133 65c4cc65-6c06-0410-ace0-fbb531ad65f3

build_tools/cflags.xml
channels/chan_iax2.c

index db140d6aae9b2efbd0e32a4d851348d8d98433cc..b027cb017dbe294695e414971fc79331651cfb0a 100644 (file)
@@ -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>
index 9f30359e2c78cf46880d7391e31183b417b64119..9234a5d177fff23b19c8dfbc06c7dd77ab7e3b7f 100644 (file)
@@ -1563,6 +1563,7 @@ static int __find_callno(unsigned short callno, unsigned short dcallno, struct s
                        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 @@ static int __find_callno(unsigned short callno, unsigned short dcallno, struct s
                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;