Skip to content
Snippets Groups Projects
Commit 371b5ebd authored by Jérémy Quentin's avatar Jérémy Quentin
Browse files

[#1798] Does not hang up when the call is building up

parent ed9728d8
No related branches found
No related tags found
No related merge requests found
...@@ -54,7 +54,7 @@ const function Call::actionPerformedFunctionMap[11][5] = ...@@ -54,7 +54,7 @@ const function Call::actionPerformedFunctionMap[11][5] =
/*INCOMING */ {&Call::accept , &Call::refuse , &Call::acceptTransf , &Call::acceptHold , &Call::setRecord }, /*INCOMING */ {&Call::accept , &Call::refuse , &Call::acceptTransf , &Call::acceptHold , &Call::setRecord },
/*RINGING */ {&Call::nothing , &Call::hangUp , &Call::nothing , &Call::nothing , &Call::setRecord }, /*RINGING */ {&Call::nothing , &Call::hangUp , &Call::nothing , &Call::nothing , &Call::setRecord },
/*CURRENT */ {&Call::nothing , &Call::hangUp , &Call::nothing , &Call::hold , &Call::setRecord }, /*CURRENT */ {&Call::nothing , &Call::hangUp , &Call::nothing , &Call::hold , &Call::setRecord },
/*DIALING */ {&Call::call , &Call::nothing , &Call::nothing , &Call::nothing , &Call::nothing }, /*DIALING */ {&Call::call , &Call::cancel , &Call::nothing , &Call::nothing , &Call::nothing },
/*HOLD */ {&Call::nothing , &Call::hangUp , &Call::nothing , &Call::unhold , &Call::setRecord }, /*HOLD */ {&Call::nothing , &Call::hangUp , &Call::nothing , &Call::unhold , &Call::setRecord },
/*FAILURE */ {&Call::nothing , &Call::hangUp , &Call::nothing , &Call::nothing , &Call::nothing }, /*FAILURE */ {&Call::nothing , &Call::hangUp , &Call::nothing , &Call::nothing , &Call::nothing },
/*BUSY */ {&Call::nothing , &Call::hangUp , &Call::nothing , &Call::nothing , &Call::nothing }, /*BUSY */ {&Call::nothing , &Call::hangUp , &Call::nothing , &Call::nothing , &Call::nothing },
...@@ -566,6 +566,13 @@ void Call::hangUp() ...@@ -566,6 +566,13 @@ void Call::hangUp()
callManager.hangUp(callId); callManager.hangUp(callId);
} }
void Call::cancel()
{
CallManagerInterface & callManager = CallManagerInterfaceSingleton::getInstance();
qDebug() << "Canceling call. callId : " << callId;
callManager.hangUp(callId);
}
void Call::hold() void Call::hold()
{ {
CallManagerInterface & callManager = CallManagerInterfaceSingleton::getInstance(); CallManagerInterface & callManager = CallManagerInterfaceSingleton::getInstance();
......
...@@ -167,6 +167,7 @@ private: ...@@ -167,6 +167,7 @@ private:
void acceptTransf(); void acceptTransf();
void acceptHold(); void acceptHold();
void hangUp(); void hangUp();
void cancel();
void hold(); void hold();
void call(); void call();
void transfer(); void transfer();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment