[Asterisk-Users] Detecting a PRI failure from dialplan

tim panton tpanton at attglobal.net
Fri Jan 20 05:11:56 MST 2006


On 20 Jan 2006, at 11:49, Alessio Focardi wrote:

> Hi,
>
> I would like to know if there is a way to detect the status of a span
> prior of sendig a call across it from the dialplan.
>
> I was asked to set up an * server with 2 spans connected to the  
> telco and use the second as
> failover for the first.
>
> I checked that dialing a failed span (for instance: cable  
> disconnected or
> no line) results in "congestion" for ${DIALSTATUS}, but message is too
> generic for my use.
>
> Any suggestion will be greatly appreciated, tnx!

I find the best way to check the status of a PRI is to look in
/proc/zaptel/1 or /proc/zaptel/2 etc

You'd have to do some work integrating this into the dialplan,
but you could set a global variable or something.

Tim.

http://www.westhawk.co.uk/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060120/41452a80/attachment.htm


More information about the asterisk-users mailing list