Update of /usr/cvsroot/asterisk/pbx
In directory mongoose.digium.com:/tmp/cvs-serv3197/pbx
Modified Files:
pbx_dundi.c pbx_loopback.c
Log Message:
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)
Index: pbx_dundi.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx/pbx_dundi.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- pbx_dundi.c 24 Oct 2005 20:12:06 -0000 1.45
+++ pbx_dundi.c 31 Oct 2005 15:34:11 -0000 1.46
@@ -559,7 +559,7 @@
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);
Index: pbx_loopback.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx/pbx_loopback.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- pbx_loopback.c 24 Oct 2005 20:12:06 -0000 1.9
+++ pbx_loopback.c 31 Oct 2005 15:34:11 -0000 1.10
@@ -88,7 +88,7 @@
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);
_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs