mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 18:55:19 +00:00 
			
		
		
		
	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
This commit is contained in:
		
				
					committed by
					
						![asterisk-org-access-app[bot]](/avatar/58a64b62d62d5b23df7bc832f016f9db?size=40) asterisk-org-access-app[bot]
						asterisk-org-access-app[bot]
					
				
			
			
				
	
			
			
			
						parent
						
							8cc92b2638
						
					
				
				
					commit
					52472dcdfd
				
			| @@ -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); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user