Commit 8606b945 authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

Handle "call reject" event in IAX2

parent abba7cbb
......@@ -671,11 +671,15 @@ IAXVoIPLink::iaxHandleCallEvent(iax_event* event, IAXCall* call)
break;
case IAX_EVENT_REJECT:
Manager::instance().peerHungupCall(id);
//Manager::instance().peerHungupCall(id);
if (Manager::instance().isCurrentCall(id)) {
// stop audio
audiolayer->stopStream();
}
call->setConnectionState(Call::Connected);
call->setState(Call::Error);
Manager::instance().displayErrorText(id, "Failure");
Manager::instance().callFailure(id);
removeCall(id);
break;
......
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