mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-03 09:21:29 +00:00
add conference-create and conference-destroy action events
This commit is contained in:
parent
98063854c6
commit
72f0cf476d
@ -1932,6 +1932,13 @@ static void *SWITCH_THREAD_FUNC conference_thread_run(switch_thread_t *thread, v
|
|||||||
conference->is_recording = 0;
|
conference->is_recording = 0;
|
||||||
conference->record_count = 0;
|
conference->record_count = 0;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
switch_event_create_subclass(&event, SWITCH_EVENT_CUSTOM, CONF_EVENT_MAINT);
|
||||||
|
conference_add_event_data(conference, event);
|
||||||
|
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Action", "conference-create");
|
||||||
|
switch_event_fire(&event);
|
||||||
|
|
||||||
while (globals.running && !switch_test_flag(conference, CFLAG_DESTRUCT)) {
|
while (globals.running && !switch_test_flag(conference, CFLAG_DESTRUCT)) {
|
||||||
switch_size_t file_sample_len = samples;
|
switch_size_t file_sample_len = samples;
|
||||||
switch_size_t file_data_len = samples * 2;
|
switch_size_t file_data_len = samples * 2;
|
||||||
@ -2449,6 +2456,11 @@ static void *SWITCH_THREAD_FUNC conference_thread_run(switch_thread_t *thread, v
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
switch_event_create_subclass(&event, SWITCH_EVENT_CUSTOM, CONF_EVENT_MAINT);
|
||||||
|
conference_add_event_data(conference, event);
|
||||||
|
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Action", "conference-destroy");
|
||||||
|
switch_event_fire(&event);
|
||||||
|
|
||||||
switch_core_timer_destroy(&timer);
|
switch_core_timer_destroy(&timer);
|
||||||
switch_mutex_lock(globals.hash_mutex);
|
switch_mutex_lock(globals.hash_mutex);
|
||||||
if (switch_test_flag(conference, CFLAG_INHASH)) {
|
if (switch_test_flag(conference, CFLAG_INHASH)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user