Asterisk-Dahdi, get status channel

asteriskhardwarevoip

I have Asterisk 1.6 with a analogic card X100p that work properly. I want to detect if the card is in use or not (the status of the card).

Please any one get the problem before ?

Best Answer

You can use "show channels" command

voip*CLI> show channels
Channel              Location             State   Application(Data)             
DAHDI/3-1            s@ivr-3:12           Up      BackGround(someexample)
1 active channel
1 active call

You can differentiate a DAHDI device by the channel name.