fabrizioC

Member

Last active 14 years ago

  1. 14 years ago
    Tue Jun 22 16:14:35 2010
    fabrizioC started the conversation mISDN support.

    I tried adding the mISDN support beams, but only displays incoming calls. Outgoing calls are not displayed. you can add to suppoto mISDN?
    Thank you.

    ------ page.fop2buttons.php

    } else if($key=="trunks" and (eregi("dahdi",$datarray['privacy']) or eregi("zap",$datarray['privacy']))) {
    echo "<td colspan=2>";
    echo _("Zap/Dahdi Channels (Eg: 1-24)");
    echo "</td><td><input type=text name='email_".$datarray['devid']."' value='".$datarray['email']."'></td>";
    echo "<td colspan=1>&nbsp;</td><td>&nbsp;</td>";

    } else if($key=="trunks" and (eregi("mISDN",$datarray['privacy']) or eregi("misdn",$datarray['privacy']))) {
    echo "<td colspan=2>";
    echo _("mISDN Channels (Eg: 1-24)");
    echo "</td><td><input type=text name='email_".$datarray['devid']."' value='".$datarray['email']."'></td>";
    echo "<td colspan=1>&nbsp;</td><td>&nbsp;</td>";

    } else {

    ------ autoconfig-buttons-freepbx.sh

    echo $LINEA | sed 's/^channel=\(.*\)/\n[\1]/g'
    chantype=`echo $LINEA | grep "^channel=" | sed 's/channel=/ /g' | sed 's/\// /g' | awk '{print $1}'`
    if [ "${chantype}foo" != "foo" ]; then
    CHAN=$chantype
    fi
    echo $LINEA | grep -qi "^email=splitme"
    if [ $? = 0 ]; then
    RANGE=`echo $LINEA | sed 's/^email=splitme-//g' | sed 's/-/ /g'`
    for ZAPNUM in `seq $RANGE`
    do
    echo "channel=$CHAN/$ZAPNUM"
    if [ "${CHAN}" == "ZAP" ]; then
    echo "channel=DAHDI/$ZAPNUM"
    fi
    done
    fi

    ------ This is the result:

    [ZAP/g0]
    type=trunk
    label=DAHDI/g0
    queuecontext=from-queue
    extenvoicemail=*
    email=splitme-1
    channel=ZAP/1
    channel=DAHDI/1

    [mISDN/g:isdn1/$OUTNUM$/:s:e128]
    type=trunk
    label=mISDN/1
    queuecontext=from-queue
    extenvoicemail=*
    email=splitme-1
    channel=mISDN/1