mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	chan_dadhi: Fix setvar in dahdi channels
The change to how setvar works for various channels performed in ASTERISK~23756 missed some required change in the dahdi channel, where the variables are actually set while reading configuration. This change should fix the issue. ASTERISK-28955 Change-Id: Ibfeb7f8cbdd735346dc4028de6a265f24f9df274
This commit is contained in:
		| @@ -18140,8 +18140,10 @@ static int process_dahdi(struct dahdi_chan_conf *confp, const char *cat, struct | ||||
| 				if ((varval = strchr(varname, '='))) { | ||||
| 					*varval++ = '\0'; | ||||
| 					if ((tmpvar = ast_variable_new(varname, varval, ""))) { | ||||
| 						tmpvar->next = confp->chan.vars; | ||||
| 						confp->chan.vars = tmpvar; | ||||
| 						if (ast_variable_list_replace(&confp->chan.vars, tmpvar)) { | ||||
| 							tmpvar->next = confp->chan.vars; | ||||
| 							confp->chan.vars = tmpvar; | ||||
| 						} | ||||
| 					} | ||||
| 				} | ||||
| 			} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user