[asterisk-commits] crichter: branch crichter/0.4.0 r38802 - /team/crichter/0.4.0/channels/

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Aug 3 09:40:47 MST 2006


Author: crichter
Date: Thu Aug  3 11:40:47 2006
New Revision: 38802

URL: http://svn.digium.com/view/asterisk?rev=38802&view=rev
Log:
do not reload_config twice

Modified:
    team/crichter/0.4.0/channels/chan_misdn.c

Modified: team/crichter/0.4.0/channels/chan_misdn.c
URL: http://svn.digium.com/view/asterisk/team/crichter/0.4.0/channels/chan_misdn.c?rev=38802&r1=38801&r2=38802&view=diff
==============================================================================
--- team/crichter/0.4.0/channels/chan_misdn.c (original)
+++ team/crichter/0.4.0/channels/chan_misdn.c Thu Aug  3 11:40:47 2006
@@ -919,13 +919,6 @@
 		misdn_debug_only[i] = 0;
 	}
 
-	int ntflags=0;
-	char ntfile[BUFFERSIZE+1];
-
-	misdn_cfg_get( 0, MISDN_GEN_NTDEBUGFLAGS, &ntflags, sizeof(int));
-	misdn_cfg_get( 0, MISDN_GEN_NTDEBUGFILE, &ntfile, BUFFERSIZE);
-
-	misdn_lib_nt_debug_init(ntflags,ntfile);
 }
 
 static int misdn_reload (int fd, int argc, char *argv[])
@@ -4514,10 +4507,16 @@
 		);
 
 
+	int ntflags=0;
+	char ntfile[BUFFERSIZE+1];
+
+	misdn_cfg_get( 0, MISDN_GEN_NTDEBUGFLAGS, &ntflags, sizeof(int));
+	misdn_cfg_get( 0, MISDN_GEN_NTDEBUGFILE, &ntfile, BUFFERSIZE);
+
+	misdn_lib_nt_debug_init(ntflags,ntfile);
+
 	misdn_cfg_get( 0, MISDN_GEN_TRACEFILE, global_tracefile, BUFFERSIZE);
 
-	reload_config();
-	
 	/* start the l1 watchers */
 	
 	for (port = misdn_cfg_get_next_port(0); port >= 0; port = misdn_cfg_get_next_port(port)) {



More information about the asterisk-commits mailing list