diff options
-rw-r--r-- | toxav/msi.c | 1 | ||||
-rw-r--r-- | toxav/msi.h | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/toxav/msi.c b/toxav/msi.c index 6c4f2637..060e52a4 100644 --- a/toxav/msi.c +++ b/toxav/msi.c | |||
@@ -1641,6 +1641,7 @@ int msi_hangup ( MSISession *session, int32_t call_index ) | |||
1641 | for ( ; _it < session->calls[call_index]->peer_count; _it ++ ) | 1641 | for ( ; _it < session->calls[call_index]->peer_count; _it ++ ) |
1642 | send_message ( session, session->calls[call_index], _msg_end, session->calls[call_index]->peers[_it] ); | 1642 | send_message ( session, session->calls[call_index], _msg_end, session->calls[call_index]->peers[_it] ); |
1643 | 1643 | ||
1644 | session->calls[call_index]->state = call_hanged_up; | ||
1644 | 1645 | ||
1645 | free_message ( _msg_end ); | 1646 | free_message ( _msg_end ); |
1646 | 1647 | ||
diff --git a/toxav/msi.h b/toxav/msi.h index fdf0a88c..156c1895 100644 --- a/toxav/msi.h +++ b/toxav/msi.h | |||
@@ -50,7 +50,8 @@ typedef enum { | |||
50 | call_inviting, /* when sending call invite */ | 50 | call_inviting, /* when sending call invite */ |
51 | call_starting, /* when getting call invite */ | 51 | call_starting, /* when getting call invite */ |
52 | call_active, | 52 | call_active, |
53 | call_hold | 53 | call_hold, |
54 | call_hanged_up | ||
54 | 55 | ||
55 | } MSICallState; | 56 | } MSICallState; |
56 | 57 | ||