mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	confbridge: Handle user hangup during name recording
This prevents orphaned CBAnn channels from getting stuck in the bridge. ASTERISK-26994 #close Reported by: James Terhune Change-Id: I5e43e832a9507ec3f2c59752cd900b41dab80457
This commit is contained in:
		| @@ -2317,7 +2317,11 @@ static int confbridge_exec(struct ast_channel *chan, const char *data) | ||||
| 	if (!quiet && | ||||
| 		(ast_test_flag(&user.u_profile, USER_OPT_ANNOUNCE_JOIN_LEAVE) || | ||||
| 		(ast_test_flag(&user.u_profile, USER_OPT_ANNOUNCE_JOIN_LEAVE_REVIEW)))) { | ||||
| 		conf_rec_name(&user, args.conf_name); | ||||
| 		if (conf_rec_name(&user, args.conf_name)) { | ||||
| 			pbx_builtin_setvar_helper(chan, "CONFBRIDGE_RESULT", "FAILED"); | ||||
| 			res = -1; /* Hangup during name recording */ | ||||
| 			goto confbridge_cleanup; | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	/* menu name */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user