Commit b224e10a authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#2380] Fixing IncomingCallNotification not regular

parent 59e11467
......@@ -397,7 +397,7 @@ namespace sfl {
countTime += _time->getSecond();
if (_manager->incomingCallWaiting() > 0) {
int countTime_modulo = countTime % 3000;
int countTime_modulo = countTime % 4000;
_debug("countTime: %i\n", countTime);
_debug("countTime_modulo: %i\n", countTime_modulo);
if ((countTime_modulo - countTime) < 0) {
......
......@@ -776,6 +776,8 @@ ManagerImpl::refuseCall (const CallID& id)
AccountID accountid;
bool returnValue;
CallID current_call_id = getCurrentCallId();
stopTone (false);
......@@ -818,7 +820,8 @@ ManagerImpl::refuseCall (const CallID& id)
if (_dbus) _dbus->getCallManager()->callStateChanged (id, "HUNGUP");
switchCall ("");
// if(current_call_id.compare("") != 0)
// switchCall ("");
}
......@@ -1773,6 +1776,7 @@ ManagerImpl::incomingCall (Call* call, const AccountID& accountId)
_debug ("ManagerImpl::incomingCall :: hasCurrentCall() %i \n", hasCurrentCall());
if (!hasCurrentCall()) {
call->setConnectionState (Call::Ringing);
ringtone();
// switchCall (call->getCallId());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment