How to show two different dahdi channels on FOP2 web panel

On my 2.8.0.3 TB server is installed a Sangoma A200 card with two FXO each connected to a differente PSTN line.
In my FOP2 panel only one DAHADI channel is showed even if all the two channels works well in my phone system.
This is an extraxt of autoconfig-buttons-freepbx.sh :

DAHDI=`asterisk -rx "dahdi show channels" | grep -v from-internal | grep -v pseudo | grep -v Language | awk '{print $1}' | head -n 1`
if [ "X${DAHDI}" != "X" ]; then
echo
echo "[DAHDI/$DAHDI]"
echo "type=trunk"
echo "label=Telecom Italia 1"
asterisk -rx "dahdi show channels" | grep -v from-internal | grep -v pseudo | grep -v Language | awk '{print $1}' | tail -n +2 | while read LINEA
do
echo "channel=DAHDI/$LINEA"
done
fi

Is needed any different configuration in the autoconfig-buttons-freepbx.sh to show even the second dahdi channel?
Thanks in advance.
Ing. Cosimo MERCURO
Mercuro for Business

Comments

  • 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,
Sign In or Register to comment.