VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
mdupuis at ocg.ca Guest
|
Posted: Sat Jan 24, 2015 10:35 pm Post subject: [asterisk-users] Best way to get dahdi status |
|
|
I'm creating an app that needs to read the status of all dahdi spans and channels, etc. (whatever is needed to tell a user the state of their DAHDI connections).
What is the best way to do that? I see dahdi-tools available from the command line, asterisk CLI commands, and AMI commands. What is the best way to get the status at a detail level? |
|
Back to top |
|
|
sruffell at digium.com Guest
|
Posted: Fri Jan 30, 2015 9:47 am Post subject: [asterisk-users] Best way to get dahdi status |
|
|
On Sun, Jan 25, 2015 at 03:33:47AM +0000, Michelle Dupuis wrote:
Quote: | I'm creating an app that needs to read the status of all dahdi
spans and channels, etc. (whatever is needed to tell a user the
state of their DAHDI connections).
What is the best way to do that? I see dahdi-tools available from
the command line, asterisk CLI commands, and AMI commands. What
is the best way to get the status at a detail level?
|
For analog and raw span information (line mode (E1/T1), alarms,
current analog configuration, etc..), I think using either
dahdi_scan or the attributes in
/sys/bus/dahdi_devices/devices/<device>/span-<spanno> is your best
bet.
Maintenance counters on digital spans (timing slips, bit errors, etc..) is returned via:
$ dahdi_maint -s <spanno>
For information about whether your PRI is up, you have to ask
Asterisk since the drivers do not handle the PRI protocol. I don't
know if it is the *best* way, but I use:
$ asterisk -rx 'pri show spans'
--
Shaun Ruffell
Digium, Inc. | Linux Kernel Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: www.digium.com & www.asterisk.org
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|