mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
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
This commit is contained in:
committed by
asterisk-org-access-app[bot]
parent
0c6253b9b8
commit
55ec8f8dad
@@ -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}",
|
||||
|
Reference in New Issue
Block a user