[Asterisk-cvs] asterisk/channels chan_agent.c, 1.107, 1.108 chan_alsa.c, 1.35, 1.36 chan_h323.c, 1.100, 1.101 chan_iax2.c, 1.241, 1.242 chan_mgcp.c, 1.105, 1.106 chan_modem.c, 1.36, 1.37 chan_oss.c, 1.41, 1.42 chan_phone.c, 1.42, 1.43 chan_sip.c, 1.637, 1.638 chan_skinny.c, 1.64, 1.65 chan_vpb.c, 1.63, 1.64 chan_zap.c, 1.403, 1.404 iax2-provision.c, 1.8, 1.9

markster at lists.digium.com markster at lists.digium.com
Tue Jan 25 00:08:02 CST 2005


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

Modified Files:
	chan_agent.c chan_alsa.c chan_h323.c chan_iax2.c chan_mgcp.c 
	chan_modem.c chan_oss.c chan_phone.c chan_sip.c chan_skinny.c 
	chan_vpb.c chan_zap.c iax2-provision.c 
Log Message:
Merge config updates (bug #3406)


Index: chan_agent.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_agent.c,v
retrieving revision 1.107
retrieving revision 1.108
diff -u -d -r1.107 -r1.108
--- chan_agent.c	21 Jan 2005 07:06:24 -0000	1.107
+++ chan_agent.c	25 Jan 2005 06:10:19 -0000	1.108
@@ -876,7 +876,7 @@
 	autologoff = 0;
 	wrapuptime = 0;
 	ackcall = 1;
-	cfg = ast_load(config);
+	cfg = ast_config_load(config);
 	if (!cfg) {
 		ast_log(LOG_NOTICE, "No agent configuration found -- agent support disabled\n");
 		return 0;
@@ -988,7 +988,7 @@
 		p = pn;
 	}
 	ast_mutex_unlock(&agentlock);
-	ast_destroy(cfg);
+	ast_config_destroy(cfg);
 	return 0;
 }
 

Index: chan_alsa.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_alsa.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- chan_alsa.c	21 Jan 2005 07:06:24 -0000	1.35
+++ chan_alsa.c	25 Jan 2005 06:10:19 -0000	1.36
@@ -990,7 +990,7 @@
 	int x;
 	struct ast_config *cfg;
 	struct ast_variable *v;
-	if ((cfg = ast_load(config))) {
+	if ((cfg = ast_config_load(config))) {
 		v = ast_variable_browse(cfg, "general");
 		while(v) {
 			if (!strcasecmp(v->name, "autoanswer"))
@@ -1011,7 +1011,7 @@
 				strncpy(outdevname, v->value, sizeof(outdevname)-1);
 			v=v->next;
 		}
-		ast_destroy(cfg);
+		ast_config_destroy(cfg);
 	}
 	res = pipe(sndcmd);
 	if (res) {

Index: chan_h323.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_h323.c,v
retrieving revision 1.100
retrieving revision 1.101
diff -u -d -r1.100 -r1.101
--- chan_h323.c	21 Dec 2004 00:07:56 -0000	1.100
+++ chan_h323.c	25 Jan 2005 06:10:19 -0000	1.101
@@ -1728,7 +1728,7 @@
 	char *cat;
     	char *utype;
 	
-	cfg = ast_load(config);
+	cfg = ast_config_load(config);
 
 	/* We *must* have a config file otherwise stop immediately */
 	if (!cfg) {
@@ -1867,7 +1867,7 @@
 		}
 		cat = ast_category_browse(cfg, cat);
 	}
-	ast_destroy(cfg);
+	ast_config_destroy(cfg);
 
 	/* Register our H.323 aliases if any*/
 	while (alias) {		

Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.241
retrieving revision 1.242
diff -u -d -r1.241 -r1.242
--- chan_iax2.c	21 Jan 2005 07:06:24 -0000	1.241
+++ chan_iax2.c	25 Jan 2005 06:10:19 -0000	1.242
@@ -15,7 +15,6 @@
 #include <asterisk/frame.h> 
 #include <asterisk/channel.h>
 #include <asterisk/channel_pvt.h>
-#include <asterisk/config_pvt.h>
 #include <asterisk/logger.h>
 #include <asterisk/module.h>
 #include <asterisk/pbx.h>
@@ -1470,7 +1469,7 @@
 		}
 		if (!owner) {
 			if (pvt->vars) {
-				ast_destroy_realtime(pvt->vars);
+				ast_variables_destroy(pvt->vars);
 				pvt->vars = NULL;
 			}
 			free(pvt);
@@ -2170,7 +2169,7 @@
 				}
 			}
 		}
-		ast_destroy_realtime(var);
+		ast_variables_destroy(var);
 	}
 	return peer;
 }
@@ -2201,12 +2200,12 @@
 				tmp = tmp->next;
 			}
 		}
-		ast_destroy_realtime(var);
+		ast_variables_destroy(var);
 	}
 	return user;
 }
 
-static void realtime_update(const char *peername, struct sockaddr_in *sin)
+static void realtime_update_peer(const char *peername, struct sockaddr_in *sin)
 {
 	char port[10];
 	char ipaddr[20];
@@ -4090,7 +4089,7 @@
 		/* We found our match (use the first) */
 		/* copy vars */
 		for (v = user->vars ; v ; v = v->next) {
-			if((tmpvar = ast_new_variable(v->name, v->value))) {
+			if((tmpvar = ast_variable_new(v->name, v->value))) {
 				tmpvar->next = iaxs[callno]->vars; 
 				iaxs[callno]->vars = tmpvar;
 			}
@@ -4871,7 +4870,7 @@
 	p = find_peer(name);
 	if (p) {
 		if (ast_test_flag(p, IAX_TEMPONLY))
-			realtime_update(name, sin);
+			realtime_update_peer(name, sin);
 		if (inaddrcmp(&p->addr, sin)) {
 			if (iax2_regfunk)
 				iax2_regfunk(p->name, 1);
@@ -7297,7 +7296,7 @@
 				if (varname && (varval = strchr(varname,'='))) {
 					*varval = '\0';
 					varval++;
-					if((tmpvar = ast_new_variable(varname, varval))) {
+					if((tmpvar = ast_variable_new(varname, varval))) {
 						tmpvar->next = user->vars; 
 						user->vars = tmpvar;
 					}
@@ -7421,7 +7420,7 @@
 	ast_free_ha(user->ha);
 	free_context(user->contexts);
 	if(user->vars) {
-		ast_destroy_realtime(user->vars);
+		ast_variables_destroy(user->vars);
 		user->vars = NULL;
 	}
 	free(user);
@@ -7521,7 +7520,7 @@
 	static unsigned short int last_port=0;
 #endif
 
-	cfg = ast_load(config_file);
+	cfg = ast_config_load(config_file);
 	
 	if (!cfg) {
 		ast_log(LOG_ERROR, "Unable to load config %s\n", config_file);
@@ -7688,7 +7687,7 @@
 		}
 		cat = ast_category_browse(cfg, cat);
 	}
-	ast_destroy(cfg);
+	ast_config_destroy(cfg);
 	set_timing();
 	return capability;
 }

Index: chan_mgcp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_mgcp.c,v
retrieving revision 1.105
retrieving revision 1.106
diff -u -d -r1.105 -r1.106
--- chan_mgcp.c	15 Jan 2005 21:51:37 -0000	1.105
+++ chan_mgcp.c	25 Jan 2005 06:10:20 -0000	1.106
@@ -4043,7 +4043,7 @@
 		ast_log(LOG_WARNING, "Unable to get hostname, MGCP disabled\n");
 		return 0;
 	}
-	cfg = ast_load(config);
+	cfg = ast_config_load(config);
 
 	/* We *must* have a config file otherwise stop immediately */
 	if (!cfg) {
@@ -4144,7 +4144,7 @@
 		hp = ast_gethostbyname(ourhost, &ahp);
 		if (!hp) {
 			ast_log(LOG_WARNING, "Unable to get our IP address, MGCP disabled\n");
-			ast_destroy(cfg);
+			ast_config_destroy(cfg);
 			return 0;
 		}
 		memcpy(&__ourip, hp->h_addr, sizeof(__ourip));
@@ -4181,7 +4181,7 @@
 		}
 	}
 	ast_mutex_unlock(&netlock);
-	ast_destroy(cfg);
+	ast_config_destroy(cfg);
 
 	/* SC: send audit only to the new endpoints */
 	g = gateways;

Index: chan_modem.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_modem.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- chan_modem.c	21 Jan 2005 07:06:24 -0000	1.36
+++ chan_modem.c	25 Jan 2005 06:10:20 -0000	1.37
@@ -949,7 +949,7 @@
 	struct ast_variable *v;
 	struct ast_modem_pvt *tmp;
 	char driver[80];
-	cfg = ast_load(config);
+	cfg = ast_config_load(config);
 
 	/* We *must* have a config file otherwise stop immediately */
 	if (!cfg) {
@@ -972,7 +972,7 @@
 					
 				} else {
 					ast_log(LOG_ERROR, "Unable to register channel '%s'\n", v->value);
-					ast_destroy(cfg);
+					ast_config_destroy(cfg);
 					ast_mutex_unlock(&iflock);
 					__unload_module();
 					return -1;
@@ -984,7 +984,7 @@
 				
 			if (ast_load_resource(driver)) {
 				ast_log(LOG_ERROR, "Failed to load driver %s\n", driver);
-				ast_destroy(cfg);
+				ast_config_destroy(cfg);
 				ast_mutex_unlock(&iflock);
 				__unload_module();
 				return -1;
@@ -1055,11 +1055,11 @@
 	if (ast_channel_register(type, tdesc, /* XXX Don't know our types -- maybe we should register more than one XXX */ 
 						AST_FORMAT_SLINEAR, modem_request)) {
 		ast_log(LOG_ERROR, "Unable to register channel class %s\n", type);
-		ast_destroy(cfg);
+		ast_config_destroy(cfg);
 		__unload_module();
 		return -1;
 	}
-	ast_destroy(cfg);
+	ast_config_destroy(cfg);
 	/* And start the monitor for the first time */
 	restart_monitor();
 	return 0;

Index: chan_oss.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_oss.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- chan_oss.c	21 Jan 2005 21:27:17 -0000	1.41
+++ chan_oss.c	25 Jan 2005 06:10:20 -0000	1.42
@@ -1026,7 +1026,7 @@
 	}
 	for (x=0;x<sizeof(myclis)/sizeof(struct ast_cli_entry); x++)
 		ast_cli_register(myclis + x);
-	if ((cfg = ast_load(config))) {
+	if ((cfg = ast_config_load(config))) {
 		v = ast_variable_browse(cfg, "general");
 		while(v) {
 			if (!strcasecmp(v->name, "autoanswer"))
@@ -1045,7 +1045,7 @@
 				playbackonly = ast_true(v->value);
 			v=v->next;
 		}
-		ast_destroy(cfg);
+		ast_config_destroy(cfg);
 	}
 	ast_pthread_create(&sthread, NULL, sound_thread, NULL);
 	return 0;

Index: chan_phone.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_phone.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- chan_phone.c	21 Jan 2005 07:06:24 -0000	1.42
+++ chan_phone.c	25 Jan 2005 06:10:20 -0000	1.43
@@ -1232,7 +1232,7 @@
 	struct phone_pvt *tmp;
 	int mode = MODE_IMMEDIATE;
 	int txgain = DEFAULT_GAIN, rxgain = DEFAULT_GAIN; /* default gain 1.0 */
-	cfg = ast_load(config);
+	cfg = ast_config_load(config);
 
 	/* We *must* have a config file otherwise stop immediately */
 	if (!cfg) {
@@ -1255,7 +1255,7 @@
 					
 				} else {
 					ast_log(LOG_ERROR, "Unable to register channel '%s'\n", v->value);
-					ast_destroy(cfg);
+					ast_config_destroy(cfg);
 					ast_mutex_unlock(&iflock);
 					__unload_module();
 					return -1;
@@ -1316,11 +1316,11 @@
 			 AST_FORMAT_G723_1 | AST_FORMAT_SLINEAR | 
 			 AST_FORMAT_ULAW : prefformat, phone_request)) {
 		ast_log(LOG_ERROR, "Unable to register channel class %s\n", type);
-		ast_destroy(cfg);
+		ast_config_destroy(cfg);
 		__unload_module();
 		return -1;
 	}
-	ast_destroy(cfg);
+	ast_config_destroy(cfg);
 	/* And start the monitor for the first time */
 	restart_monitor();
 	return 0;

Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.637
retrieving revision 1.638
diff -u -d -r1.637 -r1.638
--- chan_sip.c	21 Jan 2005 07:06:24 -0000	1.637
+++ chan_sip.c	25 Jan 2005 06:10:20 -0000	1.638
@@ -18,7 +18,6 @@
 #include <asterisk/lock.h>
 #include <asterisk/channel.h>
 #include <asterisk/channel_pvt.h>
-#include <asterisk/config_pvt.h>
 #include <asterisk/config.h>
 #include <asterisk/logger.h>
 #include <asterisk/module.h>
@@ -1137,7 +1136,7 @@
 	while(tmp) {
 		if (!strcasecmp(tmp->name, "type") &&
 		    !strcasecmp(tmp->value, "user")) {
-			ast_destroy_realtime(var);
+			ast_variables_destroy(var);
 			return NULL;
 		}
 		tmp = tmp->next;
@@ -1146,7 +1145,7 @@
 	peer = build_peer(peername, var, 1);
 	if (peer)
 		ast_set_flag(peer, SIP_REALTIME);
-	ast_destroy_realtime(var);
+	ast_variables_destroy(var);
 	return peer;
 }
 
@@ -1180,7 +1179,7 @@
 {
 	ast_free_ha(user->ha);
 	if(user->vars) {
-		ast_destroy_realtime(user->vars);
+		ast_variables_destroy(user->vars);
 		user->vars = NULL;
 	}
 	if (ast_test_flag(user, SIP_REALTIME))
@@ -1206,7 +1205,7 @@
 	while (tmp) {
 		if (!strcasecmp(tmp->name, "type") &&
 		    !strcasecmp(tmp->value, "peer")) {
-			ast_destroy_realtime(var);
+			ast_variables_destroy(var);
 			return NULL;
 		}
 		tmp = tmp->next;
@@ -1220,7 +1219,7 @@
 		/* Add some finishing touches, addresses, etc */
 		ast_set_flag(user, SIP_REALTIME);	
 	}
-	ast_destroy_realtime(var);
+	ast_variables_destroy(var);
 	return user;
 }
 
@@ -1531,7 +1530,7 @@
 		}
 		ast_mutex_destroy(&p->lock);
 		if(p->vars) {
-			ast_destroy_realtime(p->vars);
+			ast_variables_destroy(p->vars);
 			p->vars = NULL;
 		}
 		free(p);
@@ -2295,7 +2294,7 @@
 		ast_log(LOG_WARNING, "Unable to create RTP session: %s\n", strerror(errno));
                 ast_mutex_destroy(&p->lock);
 		if(p->vars) {
-			ast_destroy_realtime(p->vars);
+			ast_variables_destroy(p->vars);
 			p->vars = NULL;
 		}
 		free(p);
@@ -5569,7 +5568,7 @@
 		ast_copy_flags(p, user, SIP_TRUSTRPID | SIP_USECLIENTCODE | SIP_NAT | SIP_PROG_INBAND | SIP_OSPAUTH);
 		/* copy vars */
 		for (v = user->vars ; v ; v = v->next) {
-			if((tmpvar = ast_new_variable(v->name, v->value))) {
+			if((tmpvar = ast_variable_new(v->name, v->value))) {
 				tmpvar->next = p->vars; 
 				p->vars = tmpvar;
 			}
@@ -8693,7 +8692,7 @@
 				if (varname && (varval = strchr(varname,'='))) {
 					*varval = '\0';
 					varval++;
-					if((tmpvar = ast_new_variable(varname, varval))) {
+					if((tmpvar = ast_variable_new(varname, varval))) {
 						tmpvar->next = user->vars;
 						user->vars = tmpvar;
 					}
@@ -9012,7 +9011,7 @@
 		ast_log(LOG_WARNING, "Unable to get hostname, SIP disabled\n");
 		return 0;
 	}
-	cfg = ast_load(config);
+	cfg = ast_config_load(config);
 
 	/* We *must* have a config file otherwise stop immediately */
 	if (!cfg) {
@@ -9252,7 +9251,7 @@
 		if (!hp) {
 			ast_log(LOG_WARNING, "Unable to get IP address for %s, SIP disabled\n", ourhost);
 			if (!__ourip.s_addr) {
-				ast_destroy(cfg);
+				ast_config_destroy(cfg);
 				return 0;
 			}
 		} else
@@ -9297,12 +9296,12 @@
 	ast_mutex_unlock(&netlock);
 
 	/* Release configuration from memory */
-	ast_destroy(cfg);
+	ast_config_destroy(cfg);
 
 	/* Load the list of manual NOTIFY types to support */
 	if (notify_types)
-		ast_destroy(notify_types);
-	notify_types = ast_load(notify_config);
+		ast_config_destroy(notify_types);
+	notify_types = ast_config_load(notify_config);
 
 	return 0;
 }
@@ -9740,7 +9739,7 @@
 			/* Free associated memory */
 			ast_mutex_destroy(&pl->lock);
 			if(pl->vars) {
-				ast_destroy_realtime(pl->vars);
+				ast_variables_destroy(pl->vars);
 				pl->vars = NULL;
 			}
 			free(pl);

Index: chan_skinny.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_skinny.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -d -r1.64 -r1.65
--- chan_skinny.c	25 Jan 2005 03:41:05 -0000	1.64
+++ chan_skinny.c	25 Jan 2005 06:10:20 -0000	1.65
@@ -2639,7 +2639,7 @@
 		return 0;
 	}
 #endif
-	cfg = ast_load(config);
+	cfg = ast_config_load(config);
 
 	/* We *must* have a config file otherwise stop immediately */
 	if (!cfg) {
@@ -2690,7 +2690,7 @@
 		hp = ast_gethostbyname(ourhost, &ahp);
 		if (!hp) {
 			ast_log(LOG_WARNING, "Unable to get our IP address, Skinny disabled\n");
-			ast_destroy(cfg);
+			ast_config_destroy(cfg);
 			return 0;
 		}
 		memcpy(&__ourip, hp->h_addr, sizeof(__ourip));
@@ -2726,7 +2726,7 @@
 		skinnysock = socket(AF_INET, SOCK_STREAM, 0);
 		if(setsockopt(skinnysock, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)) == -1) {
 			ast_log(LOG_ERROR, "Set Socket Options failed: errno %d, %s", errno, strerror(errno));
-			ast_destroy(cfg);
+			ast_config_destroy(cfg);
 			return 0;
 		}
 
@@ -2739,7 +2739,7 @@
 							strerror(errno));
 				close(skinnysock);
 				skinnysock = -1;
-				ast_destroy(cfg);
+				ast_config_destroy(cfg);
 				return 0;
 			} 
 
@@ -2749,7 +2749,7 @@
 							strerror(errno));
 					close(skinnysock);
 					skinnysock = -1;
-					ast_destroy(cfg);
+					ast_config_destroy(cfg);
 					return 0;
 			}
 		
@@ -2763,7 +2763,7 @@
 	ast_mutex_unlock(&netlock);
 
 	/* and unload the configuration when were done */
-	ast_destroy(cfg);
+	ast_config_destroy(cfg);
 
 	return 0;
 }

Index: chan_vpb.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_vpb.c,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -d -r1.63 -r1.64
--- chan_vpb.c	21 Jan 2005 07:06:24 -0000	1.63
+++ chan_vpb.c	25 Jan 2005 06:10:20 -0000	1.64
@@ -2425,7 +2425,7 @@
 	int bal3 = -1;
 	char * callerid = NULL;
 
-	cfg = ast_load(config);
+	cfg = ast_config_load(config);
 
 	/* We *must* have a config file otherwise stop immediately */
 	if (!cfg) {
@@ -2530,7 +2530,7 @@
 		done: (void)0;
 	} ast_mutex_unlock(&iflock);
 
-	ast_destroy(cfg);
+	ast_config_destroy(cfg);
 
 	if (!error && ast_channel_register(type, tdesc, prefformat, vpb_request) != 0) {
 		ast_log(LOG_ERROR, "Unable to register channel class %s\n", type);

Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.403
retrieving revision 1.404
diff -u -d -r1.403 -r1.404
--- chan_zap.c	21 Jan 2005 07:06:24 -0000	1.403
+++ chan_zap.c	25 Jan 2005 06:10:20 -0000	1.404
@@ -9236,7 +9236,7 @@
 	struct zt_pri *pri;
 #endif
 
-	cfg = ast_load(config);
+	cfg = ast_config_load(config);
 
 	/* We *must* have a config file otherwise stop immediately */
 	if (!cfg) {
@@ -9321,7 +9321,7 @@
 			if (reload == 0) {
 				if (cur_signalling < 0) {
 					ast_log(LOG_ERROR, "Signalling must be specified before any channels are.\n");
-					ast_destroy(cfg);
+					ast_config_destroy(cfg);
 					ast_mutex_unlock(&iflock);
 					return -1;
 				}
@@ -9333,13 +9333,13 @@
 			if (!strcasecmp(v->name, "crv")) {
 				if (sscanf(c, "%d:%n", &trunkgroup, &y) != 1) {
 					ast_log(LOG_WARNING, "CRV must begin with trunkgroup followed by a colon at line %d\n", v->lineno);
-					ast_destroy(cfg);
+					ast_config_destroy(cfg);
 					ast_mutex_unlock(&iflock);
 					return -1;
 				}
 				if (trunkgroup < 1) {
 					ast_log(LOG_WARNING, "CRV trunk group must be a postive number at line %d\n", v->lineno);
-					ast_destroy(cfg);
+					ast_config_destroy(cfg);
 					ast_mutex_unlock(&iflock);
 					return -1;
 				}
@@ -9352,7 +9352,7 @@
 				}
 				if (!pri) {
 					ast_log(LOG_WARNING, "No such trunk group %d at CRV declaration at line %d\n", trunkgroup, v->lineno);
-					ast_destroy(cfg);
+					ast_config_destroy(cfg);
 					ast_mutex_unlock(&iflock);
 					return -1;
 				}
@@ -9370,7 +9370,7 @@
 					found_pseudo = 1;
 				} else {
 					ast_log(LOG_ERROR, "Syntax error parsing '%s' at '%s'\n", v->value, chan);
-					ast_destroy(cfg);
+					ast_config_destroy(cfg);
 					ast_mutex_unlock(&iflock);
 					return -1;
 				}
@@ -9401,7 +9401,7 @@
 							ast_log(LOG_ERROR, "Unable to reconfigure channel '%s'\n", v->value);
 						else
 							ast_log(LOG_ERROR, "Unable to register channel '%s'\n", v->value);
-						ast_destroy(cfg);
+						ast_config_destroy(cfg);
 						ast_mutex_unlock(&iflock);
 						return -1;
 					}
@@ -9741,7 +9741,7 @@
 					switchtype = PRI_SWITCH_QSIG;
 				else {
 					ast_log(LOG_ERROR, "Unknown switchtype '%s'\n", v->value);
-					ast_destroy(cfg);
+					ast_config_destroy(cfg);
 					ast_mutex_unlock(&iflock);
 					return -1;
 				}
@@ -9923,7 +9923,7 @@
 		}
 	}
 	ast_mutex_unlock(&iflock);
-	ast_destroy(cfg);
+	ast_config_destroy(cfg);
 #ifdef ZAPATA_PRI
 	if (!reload) {
 		for (x=0;x<NUM_SPANS;x++) {

Index: iax2-provision.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/iax2-provision.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- iax2-provision.c	21 Jan 2005 07:06:24 -0000	1.8
+++ iax2-provision.c	25 Jan 2005 06:10:20 -0000	1.9
@@ -483,7 +483,7 @@
 		cur->dead = 1;
 		cur = cur->next;
 	}
-	cfg = ast_load("iaxprov.conf");
+	cfg = ast_config_load("iaxprov.conf");
 	if (cfg) {
 		/* Load as appropriate */
 		cat = ast_category_browse(cfg, NULL);




More information about the svn-commits mailing list