mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-09 22:45:49 +00:00
automerge commit
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@33327 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -5866,11 +5866,9 @@ static int auth_fail(int callno, int failcode)
|
||||
ast_mutex_lock(&iaxsl[callno]);
|
||||
iaxs[callno]->authfail = failcode;
|
||||
if (delayreject) {
|
||||
ast_mutex_lock(&iaxsl[callno]);
|
||||
if (iaxs[callno]->authid > -1)
|
||||
ast_sched_del(sched, iaxs[callno]->authid);
|
||||
iaxs[callno]->authid = ast_sched_add(sched, 1000, auth_reject, (void *)(long)callno);
|
||||
ast_mutex_unlock(&iaxsl[callno]);
|
||||
} else
|
||||
auth_reject((void *)(long)callno);
|
||||
ast_mutex_unlock(&iaxsl[callno]);
|
||||
|
Reference in New Issue
Block a user