From a904d0f74f2b65f0392de62663a2ff440ca49bb5 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Tue, 1 Jul 2008 20:25:37 +0000 Subject: [PATCH] Disable the old, slow search for matching callno in chan_iax2 (but allow it to be reenabled for debugging) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@127133 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- build_tools/cflags.xml | 2 ++ channels/chan_iax2.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/build_tools/cflags.xml b/build_tools/cflags.xml index db140d6aae..b027cb017d 100644 --- a/build_tools/cflags.xml +++ b/build_tools/cflags.xml @@ -13,6 +13,8 @@ + + yes diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 9f30359e2c..9234a5d177 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -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;