From 090345de4c185fd983d72ebbacae058a4bc780ed Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 7 May 2012 08:46:04 -0500 Subject: [PATCH] add outcall_flags --- src/mod/applications/mod_conference/mod_conference.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index 3112a781f4..8f33a6ebe7 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -5678,6 +5678,7 @@ static switch_status_t conference_outcall(conference_obj_t *conference, char appdata[512]; int rdlock = 0; switch_bool_t have_flags = SWITCH_FALSE; + const char *outcall_flags; *cause = SWITCH_CAUSE_NORMAL_CLEARING; @@ -5763,6 +5764,12 @@ static switch_status_t conference_outcall(conference_obj_t *conference, goto done; } + if ((outcall_flags = switch_channel_get_variable(peer_channel, "outcall_flags"))) { + if (!zstr(outcall_flags)) { + flags = (char *)outcall_flags; + } + } + if (flags && strcasecmp(flags, "none")) { have_flags = SWITCH_TRUE; }