[asterisk-commits] seanbright: branch 1.4 r168614 - /branches/1.4/contrib/scripts/autosupport

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jan 14 14:52:00 CST 2009


Author: seanbright
Date: Wed Jan 14 14:52:00 2009
New Revision: 168614

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=168614
Log:
Update autosupport script to supply info for both Zaptel and DAHDI in 1.4 and
be sure to run dahdi_test in 1.6.x and trunk instead of zttest.

(closes issue #14132)
Reported by: dsedivec
Patches:
      asterisk-1.4-autosupport.patch uploaded by dsedivec (license 638)
      asterisk-trunk-autosupport.patch uploaded by dsedivec (license 638)

Modified:
    branches/1.4/contrib/scripts/autosupport

Modified: branches/1.4/contrib/scripts/autosupport
URL: http://svn.digium.com/svn-view/asterisk/branches/1.4/contrib/scripts/autosupport?view=diff&rev=168614&r1=168613&r2=168614
==============================================================================
--- branches/1.4/contrib/scripts/autosupport (original)
+++ branches/1.4/contrib/scripts/autosupport Wed Jan 14 14:52:00 2009
@@ -67,7 +67,7 @@
   uname -a >> $OUTPUT;
   echo >> $OUTPUT;
   echo >> $OUTPUT;
-  
+
   echo "------------------" >> $OUTPUT;
   echo "CPU INFO" >> $OUTPUT;
   echo "------------------" >> $OUTPUT;
@@ -106,7 +106,14 @@
   modinfo /lib/modules/$(uname -r)/misc/*.ko >> $OUTPUT;
   echo >> $OUTPUT;
   echo >> $OUTPUT;
-  
+
+  echo "------------------" >> $OUTPUT;
+  echo "DAHDI MODULE INFO" >> $OUTPUT;
+  echo "------------------" >> $OUTPUT;
+  modinfo /lib/modules/$(uname -r)/dahdi/*.ko >> $OUTPUT;
+  echo >> $OUTPUT;
+  echo >> $OUTPUT;
+
   echo "------------------" >> $OUTPUT;
   echo "OTHER INFO" >> $OUTPUT;
   echo "------------------" >> $OUTPUT;
@@ -136,6 +143,13 @@
   echo >> $OUTPUT;
 
   echo "------------------" >> $OUTPUT;
+  echo "DAHDI_TEST" >> $OUTPUT;
+  echo "------------------" >> $OUTPUT;
+  dahdi_test -c 20 >> $OUTPUT;
+  echo >> $OUTPUT;
+  echo >> $OUTPUT;
+
+  echo "------------------" >> $OUTPUT;
   echo "DMESG OUTPUT" >> $OUTPUT;
   echo "------------------" >> $OUTPUT;
   dmesg >> $OUTPUT;
@@ -157,6 +171,13 @@
   echo >> $OUTPUT;
 
   echo "------------------" >> $OUTPUT;
+  echo "DAHDI CONFIG" >> $OUTPUT;
+  echo "------------------" >> $OUTPUT;
+  grep -v '^#' /etc/dahdi/system.conf >> $OUTPUT;
+  echo >> $OUTPUT;
+  echo >> $OUTPUT;
+
+  echo "------------------" >> $OUTPUT;
   echo "ZAPATA CONFIG" >> $OUTPUT;
   echo "------------------" >> $OUTPUT;
   grep -v '^;' /etc/asterisk/zapata.conf >> $OUTPUT;
@@ -164,7 +185,7 @@
   echo >> $OUTPUT;
 
   echo "------------------" >> $OUTPUT;
-  echo "DAHDI CONFIG" >> $OUTPUT;
+  echo "CHAN_DAHDI CONFIG" >> $OUTPUT;
   echo "------------------" >> $OUTPUT;
   grep -v '^;' /etc/asterisk/chan_dahdi.conf >> $OUTPUT;
   echo >> $OUTPUT;
@@ -219,7 +240,7 @@
   echo "Additional login info: "$adinfo >> $OUTPUT
 
   clear
-  echo 
+  echo
   echo "All information has been stored in $OUTPUT,"
   echo "Please attach this file to an email case you already"
   echo "have open with Digium Tech Support."
@@ -232,6 +253,3 @@
   echo "have open with Digium Tech Support."
 exit
 fi
-
-
- 




More information about the asterisk-commits mailing list