Hi,
You have to modify the script to show individual channels instead of grouping them as the current one. Something similar to this: (have not tested it)
asterisk -rx "dahdi show channels" | grep -v from-internal | grep -v pseudo | grep -v Language | awk '{print $1}' | tail -n +1 | while read LINEA
do
echo "[DAHDI/$LINEA]"
echo "type=trunk"
echo "label=line $LINEA"
done
fi
Best regards,