mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-06 02:22:56 +00:00
FS-4576 --resolve
This commit is contained in:
parent
c7d7bf23d3
commit
8ed7bcd88f
@ -2747,7 +2747,7 @@ SWITCH_STANDARD_API(uuid_pre_answer_function)
|
|||||||
if (uuid && (xsession = switch_core_session_locate(uuid))) {
|
if (uuid && (xsession = switch_core_session_locate(uuid))) {
|
||||||
switch_channel_t *channel = switch_core_session_get_channel(xsession);
|
switch_channel_t *channel = switch_core_session_get_channel(xsession);
|
||||||
switch_channel_pre_answer(channel);
|
switch_channel_pre_answer(channel);
|
||||||
switch_core_session_rwunlock(session);
|
switch_core_session_rwunlock(xsession);
|
||||||
} else {
|
} else {
|
||||||
stream->write_function(stream, "-ERROR\n");
|
stream->write_function(stream, "-ERROR\n");
|
||||||
}
|
}
|
||||||
@ -2763,7 +2763,7 @@ SWITCH_STANDARD_API(uuid_answer_function)
|
|||||||
if (uuid && (xsession = switch_core_session_locate(uuid))) {
|
if (uuid && (xsession = switch_core_session_locate(uuid))) {
|
||||||
switch_channel_t *channel = switch_core_session_get_channel(xsession);
|
switch_channel_t *channel = switch_core_session_get_channel(xsession);
|
||||||
switch_channel_answer(channel);
|
switch_channel_answer(channel);
|
||||||
switch_core_session_rwunlock(session);
|
switch_core_session_rwunlock(xsession);
|
||||||
} else {
|
} else {
|
||||||
stream->write_function(stream, "-ERROR\n");
|
stream->write_function(stream, "-ERROR\n");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user