mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	Confbridge: Add a user timeout option
This option adds the ability to specify a timeout, in seconds, for a participant in a ConfBridge. When the user's timeout has been reached, the user is ejected from the conference with the CONFBRIDGE_RESULT channel variable set to "TIMEOUT". The rationale for this change is that there have been times where we have seen channels get "stuck" in ConfBridge because a network issue results in a SIP BYE not being received by Asterisk. While these channels can be hung up manually via CLI/AMI/ARI, adding some sort of automatic cleanup of the channels is a nice feature to have. ASTERISK-25549 #close Reported by Mark Michelson Change-Id: I2996b6c5e16a3dda27595f8352abad0bda9c2d98
This commit is contained in:
		| @@ -227,6 +227,9 @@ ASTERISK_REGISTER_FILE() | ||||
| 				<configOption name="template"> | ||||
| 					<synopsis>When using the CONFBRIDGE dialplan function, use a user profile as a template for creating a new temporary profile</synopsis> | ||||
| 				</configOption> | ||||
| 				<configOption name="timeout"> | ||||
| 					<synopsis>Kick the user out of the conference after this many seconds. 0 means there is no timeout for the user.</synopsis> | ||||
| 				</configOption> | ||||
| 			</configObject> | ||||
| 			<configObject name="bridge_profile"> | ||||
| 				<synopsis>A named profile to apply to specific bridges.</synopsis> | ||||
| @@ -2141,6 +2144,7 @@ int conf_load_config(void) | ||||
| 	aco_option_register(&cfg_info, "dsp_silence_threshold", ACO_EXACT, user_types, __stringify(DEFAULT_SILENCE_THRESHOLD), OPT_UINT_T, 0, FLDSET(struct user_profile, silence_threshold)); | ||||
| 	aco_option_register(&cfg_info, "dsp_talking_threshold", ACO_EXACT, user_types, __stringify(DEFAULT_TALKING_THRESHOLD), OPT_UINT_T, 0, FLDSET(struct user_profile, talking_threshold)); | ||||
| 	aco_option_register(&cfg_info, "jitterbuffer", ACO_EXACT, user_types, "no", OPT_BOOLFLAG_T, 1, FLDSET(struct user_profile, flags), USER_OPT_JITTERBUFFER); | ||||
| 	aco_option_register(&cfg_info, "timeout", ACO_EXACT, user_types, "0", OPT_UINT_T, 0, FLDSET(struct user_profile, timeout)); | ||||
| 	/* This option should only be used with the CONFBRIDGE dialplan function */ | ||||
| 	aco_option_register_custom(&cfg_info, "template", ACO_EXACT, user_types, NULL, user_template_handler, 0); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user