add RECORD_READ_ONLY and RECORD_WRITE_ONLY chan vars to influence session_record
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15257 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
a4221d43be
commit
52e940ff26
|
@ -902,6 +902,16 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_record_session(switch_core_session_t
|
|||
}
|
||||
}
|
||||
|
||||
if ((p = switch_channel_get_variable(channel, "RECORD_WRITE_ONLY")) && switch_true(p)) {
|
||||
flags &= ~SMBF_READ_STREAM;
|
||||
flags |= SMBF_WRITE_STREAM;
|
||||
}
|
||||
|
||||
if ((p = switch_channel_get_variable(channel, "RECORD_READ_ONLY")) && switch_true(p)) {
|
||||
flags &= ~SMBF_WRITE_STREAM;
|
||||
flags |= SMBF_READ_STREAM;
|
||||
}
|
||||
|
||||
if ((p = switch_channel_get_variable(channel, "RECORD_STEREO")) && switch_true(p)) {
|
||||
flags |= SMBF_STEREO;
|
||||
channels = 2;
|
||||
|
|
Loading…
Reference in New Issue