mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
* #7078: audio: suspend audio processing if peer hungup and no calls remain
checkAudio() was being called before the call was removed from the call list.
This commit is contained in:
@ -1687,7 +1687,6 @@ void ManagerImpl::peerHungupCall(const std::string& call_id)
|
||||
if (not incomingCallsWaiting())
|
||||
stopTone();
|
||||
|
||||
checkAudio();
|
||||
removeStream(call_id);
|
||||
}
|
||||
|
||||
|
@ -1032,14 +1032,6 @@ class ManagerImpl {
|
||||
void registerAccounts();
|
||||
void saveHistory();
|
||||
|
||||
private:
|
||||
NON_COPYABLE(ManagerImpl);
|
||||
|
||||
/**
|
||||
* Get a map with all the current SIP and IAX accounts
|
||||
*/
|
||||
AccountMap getAllAccounts() const;
|
||||
|
||||
/**
|
||||
* Suspends SFLphone's audio processing if no calls remain, allowing
|
||||
* other applications to resume audio.
|
||||
@ -1049,6 +1041,14 @@ class ManagerImpl {
|
||||
void
|
||||
checkAudio();
|
||||
|
||||
private:
|
||||
NON_COPYABLE(ManagerImpl);
|
||||
|
||||
/**
|
||||
* Get a map with all the current SIP and IAX accounts
|
||||
*/
|
||||
AccountMap getAllAccounts() const;
|
||||
|
||||
/**
|
||||
* To handle the persistent history
|
||||
* TODO: move this to ConfigurationManager
|
||||
|
@ -1598,6 +1598,7 @@ SIPVoIPLink::SIPCallClosed(SIPCall *call)
|
||||
|
||||
Manager::instance().peerHungupCall(id);
|
||||
removeSipCall(id);
|
||||
Manager::instance().checkAudio();
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user