Call Hunting of Incoming PSTN Calls

Is their in any way I can do that? My system records all incoming PSTN calls. Now I want to add call hunting feature for a group of PRI numbers, say, 1512,1513,1514. When someone makes a call to 1512 and finds it busy it will automatically go to 1513 and so on. Can it be done through configuration and Dialplan scripts?

Wrong forum for support questions.

Yes, but the right place to do this on PRI is at the network operator’s switch.

Within Asterisk, you would hunt over outgoing devices, not incoming DID numbers. The simplest way is to have a sequence of Dial calls, one for each device. You may want to check the DIALSTATUS and HANGUPCAUSE, to decide whether the call should be failed early.