From: Mike Bradeen Date: Tue, 12 Sep 2023 19:24:57 +0000 (-0600) Subject: func_periodic_hook: Add hangup step to avoid timeout X-Git-Tag: 18.21.0-rc1~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0077c388b7ff27ab2fbc4b6d35d0927a4e3c02ed;p=thirdparty%2Fasterisk.git func_periodic_hook: Add hangup step to avoid timeout func_periodic_hook does not hangup after playback, relying on hangup which keeps the channel alive longer than necessary. Resolves: #325 (cherry picked from commit 13da50219ec3a4a44e88d1f28e88909702b3af57) --- diff --git a/funcs/func_periodic_hook.c b/funcs/func_periodic_hook.c index eeab0ecc77..87284eab83 100644 --- a/funcs/func_periodic_hook.c +++ b/funcs/func_periodic_hook.c @@ -487,6 +487,8 @@ static int load_module(void) "Answer", "", NULL, AST_MODULE); res |= ast_add_extension(context_name, 1, beep_exten, 2, "", "", "Playback", "beep", NULL, AST_MODULE); + res |= ast_add_extension(context_name, 1, beep_exten, 3, "", "", + "Hangup", "", NULL, AST_MODULE); res |= ast_custom_function_register_escalating(&hook_function, AST_CFE_BOTH);