Skip to content
Snippets Groups Projects
Commit 007abd23 authored by alexandresavard's avatar alexandresavard
Browse files

Stop recording when transfering

parent c5202fcb
No related branches found
No related tags found
No related merge requests found
......@@ -173,6 +173,12 @@ Call::setRecording()
recAudio.setRecording();
}
void
Call::stopRecording()
{
recAudio.stopRecording();
}
bool
Call::isRecording()
{
......
......@@ -225,6 +225,11 @@ class Call{
*/
void setRecording();
/**
* stopRecording, make sure the recording is stopped (whe transfering call)
*/
void stopRecording();
/**
* Return Recording state
*/
......
......@@ -152,6 +152,13 @@ bool AudioRecord::setRecording() {
}
void AudioRecord::stopRecording() {
_debug("AudioRecording::stopRecording() \n");
if(recordingEnabled_)
recordingEnabled_ = false;
}
bool AudioRecord::setRawFile() {
......
......@@ -90,6 +90,11 @@ public:
*/
bool setRecording();
/**
* Stop recording flag
*/
void stopRecording();
/**
* Record a chunk of data in an openend file
* @param buffer The data chunk to be recorded
......
......@@ -642,6 +642,7 @@ SIPVoIPLink::transfer(const CallID& id, const std::string& to)
call = getSIPCall(id);
call->stopRecording();
account_id = Manager::instance().getAccountFromCall(id);
account = dynamic_cast<SIPAccount *>(Manager::instance().getAccount(account_id));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment