Skip to content

Commit

Permalink
Dump the call-invite object once actioned on it
Browse files Browse the repository at this point in the history
  • Loading branch information
bobiechen-twilio committed Feb 8, 2017
1 parent f6111c0 commit c893b89
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ObjCVoiceCallKitQuickstart/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@ - (void)provider:(CXProvider *)provider performAnswerCallAction:(CXAnswerCallAct
if (self.call) {
self.call.uuid = [action callUUID];
}

self.callInvite = nil;

[action fulfill];
}
Expand All @@ -315,6 +317,7 @@ - (void)provider:(CXProvider *)provider performEndCallAction:(CXEndCallAction *)

if (self.callInvite && self.callInvite.state == TVOCallInviteStatePending) {
[self.callInvite reject];
self.callInvite = nil;
} else if (self.call) {
[self.call disconnect];
}
Expand Down

0 comments on commit c893b89

Please sign in to comment.