diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-10-31 15:34:11 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-10-31 15:34:11 +0000 |
commit | 3b5ed22f129ad87a256092965b6537c8bb86cede (patch) | |
tree | e17cabde9991f5c9bc212138afd5b7b1206e8c03 /pbx | |
parent | 8615ded129565bd250218b36451f154e0c14ecec (diff) |
fix various bugs related to list handling of channel variables (issue #5548)
use nolock lists for channel variables, since no locks are needed (these lists are either temporary or protected by the channel's own lock)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6900 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rwxr-xr-x | pbx/pbx_dundi.c | 2 | ||||
-rwxr-xr-x | pbx/pbx_loopback.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pbx/pbx_dundi.c b/pbx/pbx_dundi.c index 0dce9670f..c0165d962 100755 --- a/pbx/pbx_dundi.c +++ b/pbx/pbx_dundi.c @@ -559,7 +559,7 @@ static int dundi_lookup_local(struct dundi_result *dr, struct dundi_mapping *map dr[anscnt].eid = *us_eid; dundi_eid_to_str(dr[anscnt].eid_str, sizeof(dr[anscnt].eid_str), &dr[anscnt].eid); if (ast_test_flag(&flags, DUNDI_FLAG_EXISTS)) { - AST_LIST_HEAD_INIT(&headp); + AST_LIST_HEAD_INIT_NOLOCK(&headp); newvariable = ast_var_assign("NUMBER", called_number); AST_LIST_INSERT_HEAD(&headp, newvariable, entries); newvariable = ast_var_assign("EID", dr[anscnt].eid_str); diff --git a/pbx/pbx_loopback.c b/pbx/pbx_loopback.c index aeba07dcb..6fa35f2db 100755 --- a/pbx/pbx_loopback.c +++ b/pbx/pbx_loopback.c @@ -88,7 +88,7 @@ static char *loopback_helper(char *buf, int buflen, const char *exten, const cha snprintf(tmp, sizeof(tmp), "%d", priority); memset(buf, 0, buflen); - AST_LIST_HEAD_INIT(&headp); + AST_LIST_HEAD_INIT_NOLOCK(&headp); newvariable = ast_var_assign("EXTEN", exten); AST_LIST_INSERT_HEAD(&headp, newvariable, entries); newvariable = ast_var_assign("CONTEXT", context); |