Ioscalkit timing issues

  ios, question

I have two questions to ask for help.

When there is an incoming call, press the answer button and “XXX voice connection” will be displayed on the screen.

The following figure

Then start to calculate the call time

Now I want him to stay in XXX connection until my server responds that the connection is successful.

How should I do it?

The second problem is that if you want to make a call from the original call record, you need to record the id in the calling screen.
Function and written here at CXCallUpdate

But if it is the caller, where should it exist?

There is no answer, shut down