Review Board 1.7.16


log Asterisk Version number, Build etc into log file

Review Request #1409 - Created Sept. 2, 2011 and submitted

Alec Davis
trunk
Reviewers
asterisk-dev
Asterisk
When the question is asked what was the last version that worked? You'd of thought looking through the logs it would be reported.
asterix:/var/log/asterisk# head messages
Asterisk SVN-trunk-r333838M built by root @ asterix on a i686 running Linux on 2011-05-27 11:52:02 UTC
[2011-09-05 21:13:25.672533] NOTICE[27089] loader.c: 1 modules will be loaded.
[2011-09-05 21:13:25.693952] WARNING[27089] http.c: Got 1 addresses

Changes between revision 2 and 3

1 2 3 4 5
1 2 3 4 5

  1. trunk/main/loader.c: Loading...
  2. trunk/main/logger.c: Loading...
trunk/main/loader.c
Diff Revision 2 Diff Revision 3 - File Reverted
[20] 47 lines
[+20] [+] ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
48
#include "asterisk/features.h"
48
#include "asterisk/features.h"
49
#include "asterisk/dsp.h"
49
#include "asterisk/dsp.h"
50
#include "asterisk/udptl.h"
50
#include "asterisk/udptl.h"
51
#include "asterisk/heap.h"
51
#include "asterisk/heap.h"
52
#include "asterisk/app.h"
52
#include "asterisk/app.h"
53
#include "asterisk/buildinfo.h"

   
54
#include "asterisk/ast_version.h"

   
55

    
   
53

   
56
#include <dlfcn.h>
54
#include <dlfcn.h>
57

    
   
55

   
58
#include "asterisk/md5.h"
56
#include "asterisk/md5.h"
59
#include "asterisk/utils.h"
57
#include "asterisk/utils.h"
[+20] [20] 959 lines
[+20] [+] int load_modules(unsigned int preload_only)
1019
#endif
1017
#endif
1020

    
   
1018

   
1021
	/* all embedded modules have registered themselves by now */
1019
	/* all embedded modules have registered themselves by now */
1022
	embedding = 0;
1020
	embedding = 0;
1023

    
   
1021

   
1024
	ast_log(LOG_NOTICE, "Asterisk %s built by %s @ %s on a %s running %s on %s\n",

   
1025
		ast_get_version(), ast_build_user, ast_build_hostname,

   
1026
		ast_build_machine, ast_build_os, ast_build_date);

   
1027

    
   

   
1028
	ast_verb(1, "Asterisk Dynamic Loader Starting:\n");
1022
	ast_verb(1, "Asterisk Dynamic Loader Starting:\n");
1029

    
   
1023

   
1030
	AST_LIST_HEAD_INIT_NOLOCK(&load_order);
1024
	AST_LIST_HEAD_INIT_NOLOCK(&load_order);
1031

    
   
1025

   
1032
	AST_LIST_LOCK(&module_list);
1026
	AST_LIST_LOCK(&module_list);
[+20] [20] 224 lines
trunk/main/logger.c
Diff Revision 2 Diff Revision 3
 
  1. trunk/main/loader.c: Loading...
  2. trunk/main/logger.c: Loading...

https://reviewboard.asterisk.org/ runs on a server provided by Digium, Inc. and uses bandwidth donated to the open source Asterisk community by API Digital Communications in Huntsville, AL USA.
Please report problems with this site to asteriskteam@digium.com.