mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-28 22:24:16 +00:00
IRC-00 refactor how record_answer_req=true works, add media_bug_answer_req=true variable and backport record_answer_req=true to use it
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15235 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
7fbdde93b6
commit
eeb3f0b225
4 files changed
+34
-19
No files matched your search
@@ -235,7 +235,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_bug_add(switch_core_session_t
|
||||
switch_size_t bytes;
|
||||
switch_codec_implementation_t read_impl = {0};
|
||||
switch_codec_implementation_t write_impl = {0};
|
||||
|
||||
const char *p;
|
||||
|
||||
if (!switch_channel_media_ready(session->channel)) {
|
||||
if (switch_channel_pre_answer(session->channel) != SWITCH_STATUS_SUCCESS) {
|
||||
@@ -248,6 +248,11 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_bug_add(switch_core_session_t
|
||||
|
||||
*new_bug = NULL;
|
||||
|
||||
|
||||
if ((p = switch_channel_get_variable(session->channel, "media_bug_answer_req")) && switch_true(p)) {
|
||||
flags |= SMBF_ANSWER_REQ;
|
||||
}
|
||||
|
||||
#if 0
|
||||
if (flags & SMBF_WRITE_REPLACE) {
|
||||
switch_thread_rwlock_wrlock(session->bug_rwlock);
|
||||
|
||||
Reference in new issue
Block a user