Merge pull request #964 in FS/freeswitch from ~LAZEDO/freeswitch:feature/FS-9533 to master

* commit '1c00e64a9a40f5d5a305ff9ee269dbfd36002038':
  FS-9533 [mod_conference] add member-enter-sound
This commit is contained in:
Mike Jerris 2016-09-19 12:12:35 -05:00
commit d5baf7d5b7
2 changed files with 12 additions and 0 deletions

View File

@ -2087,6 +2087,10 @@ SWITCH_STANDARD_APP(conference_function)
goto done;
}
if (conference->member_enter_sound && !switch_channel_test_app_flag_key("conference_silent", channel, CONF_SILENT_REQ)) {
conference_file_local_play(conference, session, conference->member_enter_sound, CONF_DEFAULT_LEADIN, NULL, 0);
}
}
/* Release the config registry handle */
@ -2362,6 +2366,7 @@ conference_obj_t *conference_new(char *name, conference_xml_cfg_t cfg, switch_co
char *name_domain = NULL;
char *tts_engine = NULL;
char *tts_voice = NULL;
char *member_enter_sound = NULL;
char *enter_sound = NULL;
char *sound_prefix = NULL;
char *exit_sound = NULL;
@ -2557,6 +2562,8 @@ conference_obj_t *conference_new(char *name, conference_xml_cfg_t cfg, switch_co
tts_engine = val;
} else if (!strcasecmp(var, "tts-voice") && !zstr(val)) {
tts_voice = val;
} else if (!strcasecmp(var, "member-enter-sound") && !zstr(val)) {
member_enter_sound = val;
} else if (!strcasecmp(var, "enter-sound") && !zstr(val)) {
enter_sound = val;
} else if (!strcasecmp(var, "outcall-templ") && !zstr(val)) {
@ -3029,6 +3036,10 @@ conference_obj_t *conference_new(char *name, conference_xml_cfg_t cfg, switch_co
conference->enter_sound = switch_core_strdup(conference->pool, enter_sound);
}
if (!zstr(member_enter_sound)) {
conference->member_enter_sound = switch_core_strdup(conference->pool, member_enter_sound);
}
if (!zstr(exit_sound)) {
conference->exit_sound = switch_core_strdup(conference->pool, exit_sound);
}

View File

@ -536,6 +536,7 @@ typedef struct conference_obj {
char *timer_name;
char *tts_engine;
char *tts_voice;
char *member_enter_sound;
char *enter_sound;
char *exit_sound;
char *alone_sound;