From: Dragos Oancea Date: Wed, 6 Mar 2019 12:27:39 +0000 (+0000) Subject: FS-11007: [mod_conference] API: reply to hup. X-Git-Tag: v1.8.6~1^2~102^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de7a502d54040f27bb1f1e6a60a982325ee5ad10;p=thirdparty%2Ffreeswitch.git FS-11007: [mod_conference] API: reply to hup. --- diff --git a/src/mod/applications/mod_conference/conference_api.c b/src/mod/applications/mod_conference/conference_api.c index f9cf043c0a..248a50a9b0 100644 --- a/src/mod/applications/mod_conference/conference_api.c +++ b/src/mod/applications/mod_conference/conference_api.c @@ -810,10 +810,16 @@ switch_status_t conference_api_sub_hup(conference_member_t *member, switch_strea switch_event_t *event; if (member == NULL) { + if (stream != NULL) { + stream->write_function(stream, "-ERR Invalid member!\n"); + } return SWITCH_STATUS_GENERR; } conference_utils_member_clear_flag(member, MFLAG_RUNNING); + if (stream != NULL) { + stream->write_function(stream, "+OK hup %u\n", member->id); + } if (member->conference && test_eflag(member->conference, EFLAG_HUP_MEMBER)) { if (switch_event_create_subclass(&event, SWITCH_EVENT_CUSTOM, CONF_EVENT_MAINT) == SWITCH_STATUS_SUCCESS) {