Skip to content
Snippets Groups Projects
Commit db9a70d6 authored by Hugo Lefeuvre's avatar Hugo Lefeuvre
Browse files

call: missing call to callFailure in timeout case

In the case where call timeout is reached, the daemon calls
hangup(486), terminating the call. However this hangup call is not
followed by any kind of callFailure() function call meaning that the
tone and media states in the manager will not be reinitialized. As a
consequence the daemon will continue to ring even if the call has
ended.

This patch addresses this issue.

Change-Id: I2573e444179d5c6329896580dca5dd0111e57c6f
Gitlab: #48
parent 4d603bc4
No related branches found
No related tags found
No related merge requests found
......@@ -103,6 +103,7 @@ Call::Call(Account& account, const std::string& id, Call::CallType type,
RING_DBG("Call %s is still ringing after timeout, setting state to BUSY",
callShPtr->getCallId().c_str());
callShPtr->hangup(PJSIP_SC_BUSY_HERE);
Manager::instance().callFailure(*callShPtr);
}
}
}, std::chrono::seconds(timeout));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment