aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_iax2.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-01 20:25:37 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-01 20:25:37 +0000
commitf8ffe3550e8ea1ef8ace24eb161647266ef3c701 (patch)
tree138371e6ef48d042f1119254a8628301ce549b89 /channels/chan_iax2.c
parent0ac398d617b84934e59e8d1f7fefbff858021f0b (diff)
Disable the old, slow search for matching callno in chan_iax2 (but allow it to be reenabled for debugging)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@127133 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_iax2.c')
-rw-r--r--channels/chan_iax2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index 9f30359e2..9234a5d17 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;