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.
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to