Fixed calling msi_reject more than once possibly causing issues.

This commit is contained in:
irungentoo 2014-06-26 17:52:42 -04:00
parent ac4def6cd8
commit 0d98869f3c
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -1738,7 +1738,8 @@ int msi_cancel ( MSISession *session, int32_t call_index, uint32_t peer, const c
send_message ( session, session->calls[call_index], _msg_cancel, peer );
free_message ( _msg_cancel );
/*session->calls[call_index]->request_timer_id = event.timer_alloc ( handle_timeout, session->calls[call_index], m_deftout );*/
/*session->calls[call_index]->state = call_hanged_up;
session->calls[call_index]->request_timer_id = event.timer_alloc ( handle_timeout, session->calls[call_index], m_deftout );*/
terminate_call ( session, session->calls[call_index] );
pthread_mutex_unlock(&session->mutex);
@ -1772,6 +1773,8 @@ int msi_reject ( MSISession *session, int32_t call_index, const uint8_t *reason
session->calls[call_index]->peers[session->calls[call_index]->peer_count - 1] );
free_message ( _msg_reject );
session->calls[call_index]->state = call_hanged_up;
session->calls[call_index]->request_timer_id = event.timer_alloc ( handle_timeout, session->calls[call_index],
m_deftout );