How to check PRI status from dialplan

Home » Asterisk Users » How to check PRI status from dialplan
Asterisk Users No Comments

Hi,

Is there any way to see the status of PRI from the dialplan? I`d like to
know whether it was Up or not before I attempt to dial on it. Second best
would be to know if was down when I tried dialing (but I need to
differenciate between Down and Up-but-provider-was-congested).

Mike