Custom Destination

Hi,
There is an option custom destination through which we can forward the call from the extension to mobile number. Now the concern is if the first PRI is down the call should be forwarded from the second PRI.
Thanks in Advance.