mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 18:55:19 +00:00 
			
		
		
		
	core/pbx: dialplan show - display filename/line#
Adds the ability for extensions to be registered to include filename and line number so that dialplan show output can show the filename and line number of a config file responsible for generating a given extension. This only affects config modules that are written to use the new extension registering functions. In this patch, that only includes pbx_config, so extensions registered in extensions.conf and any included extension will be shown in this manner. Extensions registered in this manner will show the filename and line number *instead* of the registrar. ASTERISK-26658 #close Reported by: Jonathan R. Rose Change-Id: Ieccc6abccdff34ed5c7da3511fd24972b8f2dd30
This commit is contained in:
		| @@ -561,7 +561,7 @@ void pbx_substitute_variables_helper(struct ast_channel *c,const char *cp1,char | ||||
| int ast_add_extension2(struct ast_context *con, | ||||
| 					   int replace, const char *extension, int priority, const char *label, const char *callerid, | ||||
| 					   const char *application, void *data, void (*datad)(void *), | ||||
| 					   const char *registrar) | ||||
| 					   const char *registrar, const char *registrar_file, int registrar_line) | ||||
| { | ||||
| 	return localized_add_extension2(con, replace, extension, priority, label, callerid, application, data, datad, registrar); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user