From e4edc9c75de1cbc40648acc9f5837a9c7d0ecfcc Mon Sep 17 00:00:00 2001 From: George Joseph Date: Mon, 11 Sep 2023 10:52:05 -0600 Subject: [PATCH] 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 cff637a24f42139240318f73b0872fb23a758561) --- funcs/func_periodic_hook.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/funcs/func_periodic_hook.c b/funcs/func_periodic_hook.c index ec4b9ba4de..eeab0ecc77 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}", -- 2.47.2