From: Mike Jerris Date: Tue, 22 Aug 2017 21:33:00 +0000 (+0000) Subject: FS-10602: [mod_conference] add api_on_conference_create X-Git-Tag: v1.8.0~291 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ebdf42f2c3dc6c4ad425225f4a601e2f1356d35;p=thirdparty%2Ffreeswitch.git FS-10602: [mod_conference] add api_on_conference_create --- diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index 967faa5c7d..02eb2542c7 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -1997,6 +1997,7 @@ SWITCH_STANDARD_APP(conference_function) /* Start the conference thread for this conference */ conference_launch_thread(conference); + switch_channel_api_on(channel, "api_on_conference_create"); } else { int enforce_security = switch_channel_direction(channel) == SWITCH_CALL_DIRECTION_INBOUND; const char *pvar = switch_channel_get_variable(channel, "conference_enforce_security"); @@ -2131,6 +2132,8 @@ SWITCH_STANDARD_APP(conference_function) /* Start the conference thread for this conference */ conference_launch_thread(conference); + + switch_channel_api_on(channel, "api_on_conference_create"); } else { /* setup user variable */ switch_channel_set_variable(channel, "conference_name", conference->name); rl++;