I am using Intent intent = new Intent(Intent.ACTION_CALL);
to make a call from my application.
is there any way to terminate the call after a period of
Your question has been asked a number of times. The short answer is that there is no official way to do that.
The long answers:
Read them carefully. Look for the cases where someone says "used to work...".
In one of the questions someone proposed to turn on airplane mode (the app need permissions to do that, of course). It's crude, but it works. As a user, I would have some reservations about an app doing that, though.