mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 18:55:19 +00:00 
			
		
		
		
	res_prometheus.c: missing module dependency
added res_pjsip_outbound_registration to .requires in AST_MODULE_INFO which fixes issue with module crashes on load "FRACK!, Failed assertion" ASTERISK-29871 Change-Id: Ia0f49d048427a40e1b763296b834a52a03610096
This commit is contained in:
		
				
					committed by
					
						 Mark Petersen
						Mark Petersen
					
				
			
			
				
	
			
			
			
						parent
						
							dfbb547f6a
						
					
				
				
					commit
					97ac3c1385
				
			| @@ -10,6 +10,10 @@ | |||||||
| ; Because Prometheus scrapes statistics from HTTP servers, this module requires | ; Because Prometheus scrapes statistics from HTTP servers, this module requires | ||||||
| ; Asterisk's built-in HTTP server to be enabled and configured properly. | ; Asterisk's built-in HTTP server to be enabled and configured properly. | ||||||
| ; | ; | ||||||
|  | ; Module Dependencies: | ||||||
|  | ; only if Asterisk is build with pjproject bundled (default) | ||||||
|  | ; * res_pjsip.so | ||||||
|  | ; * res_pjsip_outbound_registration.so | ||||||
|  |  | ||||||
| ; Settings that affect all statistic generation | ; Settings that affect all statistic generation | ||||||
| [general] | [general] | ||||||
|   | |||||||
| @@ -27,6 +27,7 @@ | |||||||
| /*** MODULEINFO | /*** MODULEINFO | ||||||
| 	<use>pjproject</use> | 	<use>pjproject</use> | ||||||
| 	<use type="module">res_pjsip</use> | 	<use type="module">res_pjsip</use> | ||||||
|  | 	<use type="module">res_pjsip_outbound_registration</use> | ||||||
| 	<support_level>extended</support_level> | 	<support_level>extended</support_level> | ||||||
|  ***/ |  ***/ | ||||||
|  |  | ||||||
| @@ -1002,6 +1003,7 @@ AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_GLOBAL_SYMBOLS | AST_MODFLAG_LOAD_ | |||||||
| 	.reload = reload_module, | 	.reload = reload_module, | ||||||
| 	.load_pri = AST_MODPRI_DEFAULT, | 	.load_pri = AST_MODPRI_DEFAULT, | ||||||
| #ifdef HAVE_PJPROJECT | #ifdef HAVE_PJPROJECT | ||||||
| 	.requires = "res_pjsip", | 	/* This module explicitly calls into res_pjsip if Asterisk is built with PJSIP support, so they are required. */ | ||||||
|  | 	.requires = "res_pjsip,res_pjsip_outbound_registration", | ||||||
| #endif | #endif | ||||||
| ); | ); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user