mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
FS-9629: add isfocus to replies, and add is_conference support to pre_answer
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user