[Home]

Summary:ASTERISK-00745: [patch] Change zaptel /proc entries into something machine parsable
Reporter:James Sharp (jpsharp)Labels:
Date Opened:2004-01-05 11:54:36.000-0600Date Closed:2011-06-07 14:04:53
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) zaptel.diff
Description:This patch changes the /proc/zaptel/span entries into colon delimited output.  Makes them easier to parse by script so you can check for new & unconfigured interfaces.

****** ADDITIONAL INFORMATION ******

New output is this:


root@vt1:~# cat /proc/zaptel/1
SPAN:1:TE4/0/1:"TE410P (PCI) Card 0 Span 1":AMI:D4::
:
CHANNEL:1:TE4/0/1/1:E&M::
CHANNEL:2:TE4/0/1/2:E&M::
CHANNEL:3:TE4/0/1/3:E&M::
CHANNEL:4:TE4/0/1/4:E&M::
CHANNEL:5:TE4/0/1/5:E&M::
CHANNEL:6:TE4/0/1/6:E&M::
CHANNEL:7:TE4/0/1/7:E&M::
CHANNEL:8:TE4/0/1/8:E&M::
CHANNEL:9:TE4/0/1/9:E&M::
CHANNEL:10:TE4/0/1/10:E&M::
CHANNEL:11:TE4/0/1/11:E&M::
CHANNEL:12:TE4/0/1/12:E&M::
CHANNEL:13:TE4/0/1/13:E&M::
CHANNEL:14:TE4/0/1/14:E&M::
CHANNEL:15:TE4/0/1/15:E&M::
CHANNEL:16:TE4/0/1/16:E&M::
CHANNEL:17:TE4/0/1/17:E&M::
CHANNEL:18:TE4/0/1/18:E&M::
CHANNEL:19:TE4/0/1/19:E&M::
CHANNEL:20:TE4/0/1/20:E&M::
CHANNEL:21:TE4/0/1/21:E&M::
CHANNEL:22:TE4/0/1/22:E&M::
CHANNEL:23:TE4/0/1/23:E&M::
CHANNEL:24:TE4/0/1/24:E&M::
Comments:By: Tilghman Lesher (tilghman) 2004-01-05 12:31:37.000-0600

The output should probably be delimited by the Tab character, as other proc entries use that delimiter (e.g. /proc/net/route)