In the trunk list, next to the zap/dahdi trunks, you have an extra field:
Zap/Dahdi Channels (Eg: 1-24)
Where you have to list your trunk channels, like it says in the same button label: 1-24
SO this is the block of code with the ZAP section:
if($key=="core") {
echo "<td><input type=text name='email_".$datarray['devid']."' value='".$datarray['email']."'></td>";
echo "<td><input type=text name='group_".$datarray['devid']."' value='".$datarray['group']."'></td>";
echo "<td><input type=text name='queuechannel_".$datarray['devid']."' value='".$datarray['queuechannel']."'></td>";
echo "<td><input type=text name='originatechannel_".$datarray['devid']."' value='".$datarray['originatechannel']."'></td>";
} 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> </td><td> </td>";
} else {
echo "<td colspan=4> </td><td> </td>";
}
echo "</tr>";
}
I have a T1 with 23 channels so is it just adding:
echo _("Zap/Dahdi Channels 1-24)");
or is it adding
echo _("Zap/Dahdi Channels 1)");
echo _("Zap/Dahdi Channels 2)");
echo _("Zap/Dahdi Channels 3)");
echo _("Zap/Dahdi Channels 4)");
echo _("Zap/Dahdi Channels 5)");
and so on down to 23?
Thanks,
Graham