mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
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
This commit is contained in:
@@ -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>
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user