On our system incoming calls are forwarded to external numbers (Mobile phone or land lines). Which is working fine. There are couple of phone numbers. The system rings one by one. If the first one does not receive the call then it goes to the second one.
But the problem is if a number is switched off then the provider plays back a audio message which says something like “The number is not available right now…”. They play the message couple of time and then the line disconnects. After that our application rings the next number.
Problem is the playback message from the provider is too long for the user to wait for the next number.
Is it possible to ring the next number as soon as we identify that the current number is switched off or unreachable? Does mobile phone operators send any code in reply before the audio playback? Can we identify it in Asterisk?
Thanks in advance.