The goal of this project is to route calls to a provider that requires to change the CLID before place the call checking what CLID need to be setup by a random choosed pin number. Each pin number will have their unique CLID number, and can be used only until 5 minutes, when 5 minutes are reached the pin comes inactive and cannot be used again.
The process will be:
1) Customers call to XXX
2) Call launchs agi
3) Agi looks for a random pin number that has avaliable minutes.
4) Agi change the CLID for the one associated with the pin number choosed in the step 3.
5) When call finished, agi will discount minutes used from pin number, if pin number goes with less than 1 minute, the pin is setted as inactive.