Ok, I got it working and from I can tell its working the way its suppose to (no crazy hacks, but yes I had to change code). I will try to document it as best I can in wiki
http://wiki.linuxmce.org/index.php/X100P and will try to comunicate with developers to get this committed, but here what I did:
/var/www/lmce-admin/operations/phones/phoneLines.php
Line: 24 (REPLACE):
$ProtocolList=array('SIP','IAX','SPA','GTALK','DAHDI');
Line: 106 (REPLACE):
<td><B>'.translate('TEXT_HOST_CONST').' / Channel *</B></td>
/usr/pluto/bin/db_phone_config.sh
Line: 366 (APPEND):
elif [[ $protocol == "DAHDI" ]]; then
LINESSQL="$LINESSQL INSERT INTO $DB_Extensions_Table (context,exten,priority,app,appdata) VALUES \
('$context','_$prefix.','1','Macro','dialout-trunk,$protocol/$host,+\${EXTEN}:1},,'),\
('$context','_$prefix.','2','Macro','outisbusy,');"
Lines: 382-387 (REPLACE):
context="from-trunk-$phonenumber"
LINESSQL="$LINESSQL DELETE FROM $DB_Extensions_Table WHERE context like '$context';"
if [[ $protocol == "DAHDI" ]]; then
LINESSQL="$LINESSQL INSERT INTO $DB_Extensions_Table (context,exten,priority,app,appdata) VALUES \
('$context','_.','1','Set','GROUP()=OUT_$LineCounter'), \
('$context','_.','2','Goto','from-trunk,$phonenumber,1');"
else
LINESSQL="$LINESSQL INSERT INTO $DB_Extensions_Table (context,exten,priority,app,appdata) VALUES \
('$context','_.','1','Set','GROUP()=OUT_$LineCounter'), \
('$context','_.','2','Goto','from-trunk,\${EXTEN},1');"
fi
After the configure/installation of DAHDI and /etc/asterisk/chan_dahdi.conf I can access Phone Lines from web admin and add a new FX0 trunk.