mISDN support

  1. 14 years ago

    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

  2. admin

    24 Jun 2010 Administrator

    As long as you can put the channel name for misdn outbound calls (removing the session from the end), fop2 will work. mIsdn channel naming is not consistent, so its up to the user to make it work. Look at this:

    channel=mISDN/1

    That will match channels named miSDN/1-XXXX

    do a "core show channels" in asterisk to see what is the name of a channel when you make an outbound call. Remove the session -XXXXX and add that as an additional channel line in the trunk definition.

    Best regards,

or Sign Up to reply!