FS-9629: add isfocus to replies, and add is_conference support to pre_answer

This commit is contained in:
Brian West
2016-10-31 10:45:29 -05:00
parent 4fb0db3e59
commit 20b5bd675d
2 changed files with 12 additions and 0 deletions

View File

@@ -1345,6 +1345,14 @@ SWITCH_STANDARD_APP(presence_function)
SWITCH_STANDARD_APP(pre_answer_function)
{
switch_channel_t *channel = switch_core_session_get_channel(session);
const char *arg = (char *) data;
if (!zstr(arg)) {
if (switch_stristr("is_conference", arg)) {
switch_channel_set_flag(channel, CF_CONFERENCE);
}
}
switch_channel_pre_answer(channel);
}