mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 12:52:33 +00:00
Merged revisions 55954 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r55954 | qwell | 2007-02-21 14:27:08 -0600 (Wed, 21 Feb 2007) | 4 lines Fix locking issue, and accept "transport-accept" as a valid accept message. This should solve issues 8970 and 8503. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@55955 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -242,17 +242,18 @@ static struct jingle *find_jingle(char *name, char *connection)
|
||||
|
||||
if (!jingle) { /* guest call */
|
||||
ASTOBJ_CONTAINER_TRAVERSE(&jingles, 1, {
|
||||
ASTOBJ_WRLOCK(iterator);
|
||||
ASTOBJ_RDLOCK(iterator);
|
||||
if (!strcasecmp(iterator->name, "guest")) {
|
||||
if (!strcasecmp(iterator->connection->jid->partial, connection)) {
|
||||
jingle = iterator;
|
||||
break;
|
||||
} else if (!strcasecmp(iterator->connection->name, connection)) {
|
||||
jingle = iterator;
|
||||
break;
|
||||
}
|
||||
}
|
||||
ASTOBJ_UNLOCK(iterator);
|
||||
|
||||
if (jingle)
|
||||
break;
|
||||
});
|
||||
|
||||
}
|
||||
@@ -1376,9 +1377,11 @@ static struct ast_channel *jingle_request(const char *type, int format, void *da
|
||||
ast_log(LOG_WARNING, "Could not find recipient.\n");
|
||||
return NULL;
|
||||
}
|
||||
ASTOBJ_WRLOCK(client);
|
||||
p = jingle_alloc(client, to, NULL);
|
||||
if (p)
|
||||
chan = jingle_new(client, p, AST_STATE_DOWN, to);
|
||||
ASTOBJ_UNLOCK(client);
|
||||
|
||||
return chan;
|
||||
}
|
||||
|
Reference in New Issue
Block a user