mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-15 06:18:38 +00:00
automerge commit
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@60261 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -11606,17 +11606,20 @@ retrylock:
|
|||||||
/* Go ahead and lock the owner if it has one -- we may need it */
|
/* Go ahead and lock the owner if it has one -- we may need it */
|
||||||
if (p->owner && ast_mutex_trylock(&p->owner->lock)) {
|
if (p->owner && ast_mutex_trylock(&p->owner->lock)) {
|
||||||
ast_log(LOG_DEBUG, "Failed to grab lock, trying again...\n");
|
ast_log(LOG_DEBUG, "Failed to grab lock, trying again...\n");
|
||||||
ast_mutex_unlock(&p->lock);
|
if (--lockretry) {
|
||||||
ast_mutex_unlock(&netlock);
|
ast_mutex_unlock(&p->lock);
|
||||||
/* Sleep for a very short amount of time */
|
ast_mutex_unlock(&netlock);
|
||||||
usleep(1);
|
usleep(1);
|
||||||
if (--lockretry)
|
|
||||||
goto retrylock;
|
goto retrylock;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (!lockretry) {
|
if (!lockretry) {
|
||||||
ast_log(LOG_ERROR, "We could NOT get the channel lock for %s - Call ID %s! \n", p->owner->name, p->callid);
|
if (p->owner)
|
||||||
|
ast_log(LOG_ERROR, "We could NOT get the channel lock for %s - Call ID %s! \n", p->owner->name, p->callid);
|
||||||
ast_log(LOG_ERROR, "SIP MESSAGE JUST IGNORED: %s \n", req.data);
|
ast_log(LOG_ERROR, "SIP MESSAGE JUST IGNORED: %s \n", req.data);
|
||||||
ast_log(LOG_ERROR, "BAD! BAD! BAD!\n");
|
ast_log(LOG_ERROR, "BAD! BAD! BAD!\n");
|
||||||
|
ast_mutex_unlock(&p->lock);
|
||||||
|
ast_mutex_unlock(&netlock);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
memcpy(&p->recv, &sin, sizeof(p->recv));
|
memcpy(&p->recv, &sin, sizeof(p->recv));
|
||||||
|
|||||||
Reference in New Issue
Block a user