summaryrefslogtreecommitdiff
path: root/res/res_pjsip_config_wizard.c
diff options
context:
space:
mode:
authorJonathan R. Rose <jonathan.rose@motorolasolutions.com>2016-12-19 15:03:52 -0600
committerJonathan R. Rose <jonathan.rose@motorolasolutions.com>2017-01-04 14:06:20 -0600
commitd96e3502564508bf753aa637c5e1a0311924ab3d (patch)
tree41ec9b7747b59a87b846c984ae07b14cda9445bb /res/res_pjsip_config_wizard.c
parent31268e0a280110748f33314a2c09563c576243de (diff)
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
Diffstat (limited to 'res/res_pjsip_config_wizard.c')
-rw-r--r--res/res_pjsip_config_wizard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_pjsip_config_wizard.c b/res/res_pjsip_config_wizard.c
index 2441184a2..83e282821 100644
--- a/res/res_pjsip_config_wizard.c
+++ b/res/res_pjsip_config_wizard.c
@@ -461,7 +461,7 @@ static int add_extension(struct ast_context *context, const char *exten,
}
if (ast_add_extension2_nolock(context, 0, exten, priority, NULL, NULL,
- app, data, free_ptr, BASE_REGISTRAR)) {
+ app, data, free_ptr, BASE_REGISTRAR, NULL, 0)) {
ast_free(data);
return -1;
}