MAPI and hangup problems

Hello

I have the following problem.
I have to hangup a call I have initiated using MAPI, before the other side answers.
The main thing is that I have to hang up the call if it takes too long.
The problem here is that tough MAPI I don’t get the other side ID until it answers the call.

Does anybody have any ideas ?