diff options
-rw-r--r-- | toxav/msi.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/toxav/msi.c b/toxav/msi.c index 060e52a4..38ff4b41 100644 --- a/toxav/msi.c +++ b/toxav/msi.c | |||
@@ -1204,6 +1204,12 @@ int handle_recv_ringing ( MSISession *session, MSICall *call, MSIMessage *msg ) | |||
1204 | 1204 | ||
1205 | pthread_mutex_lock(&session->mutex); | 1205 | pthread_mutex_lock(&session->mutex); |
1206 | 1206 | ||
1207 | if ( call->ringing_timer_id ) { | ||
1208 | LOGGER_WARNING("Call already ringing"); | ||
1209 | pthread_mutex_unlock(&session->mutex); | ||
1210 | return 0; | ||
1211 | } | ||
1212 | |||
1207 | LOGGER_DEBUG("Session: %p Handling 'ringing' on call: %s", session, call->id ); | 1213 | LOGGER_DEBUG("Session: %p Handling 'ringing' on call: %s", session, call->id ); |
1208 | 1214 | ||
1209 | call->ringing_timer_id = event.timer_alloc ( handle_timeout, call, call->ringing_tout_ms ); | 1215 | call->ringing_timer_id = event.timer_alloc ( handle_timeout, call, call->ringing_tout_ms ); |