mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-01 11:10:24 +00:00
answer in conf
This commit is contained in:
parent
d6d7773ca4
commit
3604bd05ba
@ -5337,6 +5337,13 @@ SWITCH_STANDARD_APP(conference_function)
|
|||||||
switch_event_t *params = NULL;
|
switch_event_t *params = NULL;
|
||||||
int locked = 0;
|
int locked = 0;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (switch_channel_answer(channel) != SWITCH_STATUS_SUCCESS) {
|
||||||
|
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Channel answer failed.\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/* Save the original read codec. */
|
/* Save the original read codec. */
|
||||||
if (!(read_codec = switch_core_session_get_read_codec(session))) {
|
if (!(read_codec = switch_core_session_get_read_codec(session))) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Channel has no media!\n");
|
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Channel has no media!\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user