diff --git a/plugins/VOIP/gui/VOIPChatWidgetHolder.cpp b/plugins/VOIP/gui/VOIPChatWidgetHolder.cpp index e04e1b9e1..abcb170e8 100644 --- a/plugins/VOIP/gui/VOIPChatWidgetHolder.cpp +++ b/plugins/VOIP/gui/VOIPChatWidgetHolder.cpp @@ -397,11 +397,6 @@ void VOIPChatWidgetHolder::addNewAudioButtonMap(const RsPeerId &peer_id) buttonMapTakeCall.insert(QString("a").append(buttonName), QPair(buttonT, buttonD)); } - - //TODO make a sound for the incoming call - //soundManager->play(VOIP_SOUND_INCOMING_CALL); - - if (mVOIPNotify) mVOIPNotify->notifyReceivedVoipAudioCall(peer_id); } } @@ -453,11 +448,6 @@ void VOIPChatWidgetHolder::addNewVideoButtonMap(const RsPeerId &peer_id) buttonMapTakeCall.insert(QString("v").append(buttonName), QPair(buttonT, buttonD)); } - - //TODO make a sound for the incoming call - // soundManager->play(VOIP_SOUND_INCOMING_CALL); - - if (mVOIPNotify) mVOIPNotify->notifyReceivedVoipVideoCall(peer_id); } } @@ -1098,6 +1088,11 @@ void VOIPChatWidgetHolder::timerAudioRingTimeOut() } audioCaptureToggleButton->setToolTip(tr("Answer")); + //TODO make a sound for the incoming call + //soundManager->play(VOIP_SOUND_INCOMING_CALL); + + if (mVOIPNotify) mVOIPNotify->notifyReceivedVoipAudioCall(mChatWidget->getChatId().toPeerId()); + timerAudioRing->start(); } else { //Nothing to do, reset stat @@ -1144,6 +1139,11 @@ void VOIPChatWidgetHolder::timerVideoRingTimeOut() } videoCaptureToggleButton->setToolTip(tr("Answer")); + //TODO make a sound for the incoming call + // soundManager->play(VOIP_SOUND_INCOMING_CALL); + + if (mVOIPNotify) mVOIPNotify->notifyReceivedVoipVideoCall(mChatWidget->getChatId().toPeerId()); + timerVideoRing->start(); } else { //Nothing to do, reset stat