mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	ConfBridge: Correct prompt playback target
Currently, when the first marked user enters the conference that contains waitmarked users, a prompt is played indicating that the user is being placed into the conference. Unfortunately, this prompt is played to the marked user and not the waitmarked users which is not very helpful. This patch changes that behavior to play a prompt stating "The conference will now begin" to the entire conference after adding and unmuting the waitmarked users since the design of confbridge is not conducive to playing a prompt to a subset of users in a conference in an asynchronous manner. (closes issue PQ-1396) Review: https://reviewboard.asterisk.org/r/3155/ Reported by: Steve Pitts ........ Merged revisions 407857 from http://svn.asterisk.org/svn/asterisk/branches/11 ........ Merged revisions 407858 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@407859 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -430,6 +430,8 @@ const char *conf_get_sound(enum conf_sounds sound, struct bridge_profile_sounds | ||||
| 		return S_OR(custom_sounds->participantsmuted, "conf-now-muted"); | ||||
| 	case CONF_SOUND_PARTICIPANTS_UNMUTED: | ||||
| 		return S_OR(custom_sounds->participantsunmuted, "conf-now-unmuted"); | ||||
| 	case CONF_SOUND_BEGIN: | ||||
| 		return S_OR(custom_sounds->begin, "confbridge-conf-begin"); | ||||
| 	} | ||||
|  | ||||
| 	return ""; | ||||
| @@ -1097,14 +1099,6 @@ static void conf_moh_suspend(struct confbridge_user *user) | ||||
| 	ao2_unlock(user->conference); | ||||
| } | ||||
|  | ||||
| int conf_handle_first_marked_common(struct confbridge_user *user) | ||||
| { | ||||
| 	if (!ast_test_flag(&user->u_profile, USER_OPT_QUIET) && play_prompt_to_user(user, conf_get_sound(CONF_SOUND_PLACE_IN_CONF, user->b_profile.sounds))) { | ||||
| 		return -1; | ||||
| 	} | ||||
| 	return 0; | ||||
| } | ||||
|  | ||||
| int conf_handle_inactive_waitmarked(struct confbridge_user *user) | ||||
| { | ||||
| 	/* If we have not been quieted play back that they are waiting for the leader */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user