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