[Asterisk-cvs] asterisk/channels chan_local.c,1.56,1.57

kpfleming kpfleming
Tue Nov 8 15:47:10 CST 2005


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv24106/channels

Modified Files:
	chan_local.c 
Log Message:
issue #5604


Index: chan_local.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_local.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- chan_local.c	6 Nov 2005 15:09:46 -0000	1.56
+++ chan_local.c	8 Nov 2005 20:38:10 -0000	1.57
@@ -345,7 +345,9 @@
 	strncpy(p->chan->language, p->owner->language, sizeof(p->chan->language) - 1);
 	strncpy(p->chan->accountcode, p->owner->accountcode, sizeof(p->chan->accountcode) - 1);
 	p->chan->cdrflags = p->owner->cdrflags;
-	ast_channel_inherit_variables(p->owner, p->chan);
+	/* move the channel variables from the incoming channel to the outgoing channel */
+	AST_LIST_HEAD_SET_NOLOCK(&p->chan->varshead, AST_LIST_FIRST(&p->owner->varshead));
+	AST_LIST_HEAD_INIT_NOLOCK(&p->owner->varshead);
 	p->launchedpbx = 1;
 
 	/* Start switch on sub channel */




More information about the svn-commits mailing list