Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
007abd23
Commit
007abd23
authored
Feb 04, 2009
by
alexandresavard
Browse files
Stop recording when transfering
parent
c5202fcb
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/call.cpp
View file @
007abd23
...
...
@@ -173,6 +173,12 @@ Call::setRecording()
recAudio
.
setRecording
();
}
void
Call
::
stopRecording
()
{
recAudio
.
stopRecording
();
}
bool
Call
::
isRecording
()
{
...
...
src/call.h
View file @
007abd23
...
...
@@ -224,6 +224,11 @@ class Call{
* SetRecording
*/
void
setRecording
();
/**
* stopRecording, make sure the recording is stopped (whe transfering call)
*/
void
stopRecording
();
/**
* Return Recording state
...
...
src/plug-in/audiorecorder/audiorecord.cpp
View file @
007abd23
...
...
@@ -152,6 +152,13 @@ bool AudioRecord::setRecording() {
}
void
AudioRecord
::
stopRecording
()
{
_debug
(
"AudioRecording::stopRecording()
\n
"
);
if
(
recordingEnabled_
)
recordingEnabled_
=
false
;
}
bool
AudioRecord
::
setRawFile
()
{
...
...
src/plug-in/audiorecorder/audiorecord.h
View file @
007abd23
...
...
@@ -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
...
...
src/sipvoiplink.cpp
View file @
007abd23
...
...
@@ -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
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment