How to set a Caller ID from matrix or group

How to set a Caller ID from matrix or group but this is not in use at time to send the new call?

The idea is to avoid repeating the caller ID of a group of numbers if it is in use at the time of a new call.

I don’t quite understand your question… can you elaborate further?

I want to dial 20 calls simultaneously and I have 30 outgoing numbers. I want to rotate the outgoing numbers, but if there are connected calls, I don’t want to use the caller ID of the calls that are in progress or connected.