Skip to content
Snippets Groups Projects
Commit e534ad04 authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

Fix bug in history call duration when the call fails

parent af521218
Branches
No related tags found
No related merge requests found
......@@ -258,12 +258,16 @@ sflphone_hang_up()
case CALL_STATE_CURRENT:
case CALL_STATE_HOLD:
case CALL_STATE_BUSY:
case CALL_STATE_FAILURE:
case CALL_STATE_RECORD:
case CALL_STATE_RECORD:
dbus_hang_up (selectedCall);
selectedCall->state = CALL_STATE_DIALING;
(void) time(&selectedCall->_stop);
break;
case CALL_STATE_FAILURE:
dbus_hang_up (selectedCall);
selectedCall->state = CALL_STATE_DIALING;
selectedCall->_stop = 0;
break;
case CALL_STATE_INCOMING:
dbus_refuse (selectedCall);
selectedCall->state = CALL_STATE_DIALING;
......@@ -616,6 +620,7 @@ sflphone_keypad( guint keyval, gchar * key)
case CALL_STATE_RINGING:
case CALL_STATE_BUSY:
case CALL_STATE_FAILURE:
c->_stop = 0;
switch (keyval)
{
case 65307: /* ESCAPE */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment