[quote=“sruffell”]“dahdi show channels” will show you all the DAHDI channels configured in the system. “core show channels” will show you all the currently active channels. So what I think you want are all the active DAHDI channels.
Something like:
# asterisk -rx 'core show channels' | grep -e '^DAHDI'
DAHDI/49-1 5550@from-fxo:1 Up Dial(DAHDI/g0/5550)
DAHDI/i2/49-1 5550@from-pstn:1 Up Dial(DAHDI/50)
DAHDI/50-1 (None) Up AppDial((Outgoing Line))
DAHDI/i1/5550-1 (None) Up AppDial((Outgoing Line))
DAHDI/51-1 5555@read_dtmf:4 Up Read(vDTMF,,,,,10)
DAHDI/52-1 s@from-fxs:11 Up SendDTMF(47491#)
Show that I have 6 active dahdi channels on this system.
Is there anything more specific you were looking for?[/quote]
This is actually what I’ve been doing for the past year, with a slightly different grep statement, and I thought I was getting reliable numbers. However, earlier today, I saw results that exceeded the number of channels I had available.
I have an output of ‘core show channels’ from earlier, and run against both my grep statement and your grep statement, the resulting number of matched lines is 26.
I only have a total of 23 usable channels with my T1, so that can’t be correct.
Channel Location State Application(Data)
DAHDI/i1/X0452Z11YY- (None) Up AppDial((Outgoing Line))
DAHDI/pseudo-Z4XX411 s@default:1 Rsrvd (None)
DAHDI/pseudo-5399294 s@default:1 Rsrvd (None)
DAHDI/i1/1ZZZZ245YZ3 STARTMEETME@from-int Up MeetMe(Z102,r,)
DAHDI/i1/1ZZZ2ZZ9321 (None) Up AppDial((Outgoing Line))
DAHDI/i1/1ZZZZ245YZ3 STARTMEETME@from-int Up MeetMe(Z102,r,)
DAHDI/i1/YYZ4Z42X9Z- s@macro-dial-one:42 Up Dial(SIP/10Y,,TtrI)
DAHDI/pseudo-4251YYY s@default:1 Rsrvd (None)
DAHDI/pseudo-13X30YY s@default:1 Rsrvd (None)
DAHDI/pseudo-45151Z4 s@default:1 Rsrvd (None)
DAHDI/i1/1ZZZZ245YZ3 (None) Up AppDial((Outgoing Line))
DAHDI/i1/X043553Z21- STARTMEETME@from-int Up MeetMe(Z10X,r,)
DAHDI/pseudo-145Z4X4 s@default:1 Rsrvd (None)
DAHDI/i1/2122015YX3- s@macro-dial:Y Up Dial(SIP/13Z&SIP/114&SIP/12Y&S
DAHDI/i1/1ZZZZ245YZ3 STARTMEETME@from-int Up MeetMe(Z102,r,)
DAHDI/i1/YYZ929103Z- (None) Up AppDial((Outgoing Line))
DAHDI/i1/ZX05Z04X4X- STARTMEETME@ivr-1:4 Up MeetMe(Z1Y5,r,)
DAHDI/i1/ZX05Z04X4X- STARTMEETME@ivr-1:4 Up MeetMe(Z1Y5,r,)
DAHDI/i1/ZX05Z04X4X- STARTMEETME@ivr-1:4 Up MeetMe(Z1Y5,r,)
DAHDI/i1/X044Y94X24- (None) Up AppDial((Outgoing Line))
DAHDI/i1/1ZZZZ245YZ3 (None) Up AppDial((Outgoing Line))
DAHDI/pseudo-200X140 s@default:1 Rsrvd (None)
DAHDI/i1/X04YX1Z315- STARTMEETME@ivr-1:4 Up MeetMe(Z10X,r,)
DAHDI/i1/Z4YZ3XY21Y- s@macro-dial:Y Up Dial(SIP/21Y&SIP/315&SIP/222&S
DAHDI/pseudo-1951ZZZ s@default:1 Rsrvd (None)
DAHDI/i1/253Z51Y4ZX- s@macro-dial:Y Up Dial(SIP/113&SIP/12X&SIP/12Z&S