File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1203,9 +1203,15 @@ - (void)startInviteExpirationTimer {
12031203 {
12041204 return ;
12051205 }
1206+
1207+ // Use additional interval to prevent hangup with expired reason from both sides
1208+ int additionalIntervalForIncomingCall = 0 ;
1209+ if (_isIncoming) {
1210+ additionalIntervalForIncomingCall = 10000 ; // +10 sec
1211+ }
12061212
12071213 // Start expiration timer
1208- inviteExpirationTimer = [[NSTimer alloc ] initWithFireDate: [NSDate dateWithTimeIntervalSinceNow: callInviteEventContent.lifetime / 1000 ]
1214+ inviteExpirationTimer = [[NSTimer alloc ] initWithFireDate: [NSDate dateWithTimeIntervalSinceNow: ( callInviteEventContent.lifetime + additionalIntervalForIncomingCall) / 1000 ]
12091215 interval: 0
12101216 target: self
12111217 selector: @selector (expireCallInvite )
You can’t perform that action at this time.
0 commit comments