[Asterisk-cvs] asterisk channel.c,1.114,1.115

markster at lists.digium.com markster at lists.digium.com
Thu May 27 12:35:24 CDT 2004


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

Modified Files:
	channel.c 
Log Message:
Unlock PRI lock, fix variable pasing


Index: channel.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channel.c,v
retrieving revision 1.114
retrieving revision 1.115
diff -u -d -r1.114 -r1.115
--- channel.c	25 May 2004 04:50:54 -0000	1.114
+++ channel.c	27 May 2004 16:50:07 -0000	1.115
@@ -1667,12 +1667,17 @@
 	struct ast_channel *chan;
 	struct ast_frame *f;
 	int res = 0;
+	char *variable;
 	chan = ast_request(type, format, data);
 	if (chan) {
 		if (oh) {
 			char *tmp, *var;
 			/* JDG chanvar */
-			tmp = oh->variable;
+			if (oh->variable)
+				variable = ast_strdupa(oh->variable);
+			else
+				variable = NULL;
+			tmp = variable;
 			/* FIXME replace this call with strsep  NOT*/
 			while( (var = strtok_r(NULL, "|", &tmp)) ) {
 				pbx_builtin_setvar( chan, var );




More information about the svn-commits mailing list