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 ?
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 ?
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.
dahdi show channels
in the asterisk console to show what channels managed by dahdi are in use. Also there's dahdi show status, but I'm not sure of the output.