From: George Joseph Date: Mon, 11 Sep 2023 16:52:05 +0000 (-0600) Subject: func_periodic_hook: Don't truncate channel name X-Git-Tag: certified-18.9-cert8-rc1~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4e606d018b149036b015d6942653e1ca0a598692;p=thirdparty%2Fasterisk.git func_periodic_hook: Don't truncate channel name func_periodic_hook was truncating long channel names which causes issues when you need to run other dialplan functions/apps on the channel. Resolves: #319 (cherry picked from commit 2e59f9fd6ad394b0099a6f75a483581168fc16e5) --- diff --git a/funcs/func_periodic_hook.c b/funcs/func_periodic_hook.c index 959208844d..ebedf39b86 100644 --- a/funcs/func_periodic_hook.c +++ b/funcs/func_periodic_hook.c @@ -466,7 +466,7 @@ static int load_module(void) * Based on a handy recipe from the Asterisk Cookbook. */ res = ast_add_extension(context_name, 1, exten_name, 1, "", "", - "Set", "EncodedChannel=${CUT(HOOK_CHANNEL,-,1-2)}", + "Set", "EncodedChannel=${HOOK_CHANNEL}", NULL, AST_MODULE); res |= ast_add_extension(context_name, 1, exten_name, 2, "", "", "Set", "GROUP_NAME=${EncodedChannel}${HOOK_ID}",