Tell me, please, how to solve the problem in the most correct and elegant way.
I have several outgoing lines and I want to distribute outgoing calls more or less evenly between them.
At the same time, I fully admit that some lines may be busy, and some may not be served. In this case, the call should be routed to the next highest priority line.
In fact, I need an analogue of the queue of incoming calls, only for outgoing.
Need to develop some kind of functionality, or is there a ready-made solution?