Asterisk 1.4.28, on Centos 2.6.18-164.9.1.el5. After upgrade to 2.8.0.0, FreePBX seems to be generating empty /etc/asterisk/chan_dahdi_additional.conf files even though I have dahdi devices defined in the database. My /etc/dahdi/system.conf defines 72 channels, and of those, channels 49-72 are supposed to be assigned to 24 dahdi device numbers. “service dahdi status” shows all 72 channels. But in the asterisk CLI, “dahdi show channels” omits anything over 48. Calls to those extensions go straight to VM, if enabled, otherwise “channel unavailable,” no dialtone on the sets. Not sure if it matters here, but in /etc/amportal.conf, ZAP2DAHDICOMPAT=true and AMPEXTENSIONS=deviceanduser.
The PBX returns to normal operation if I restore /etc/asterisk/chan_dahdi_additional.conf from a backup and restart.
I thought FreePBX generated the conf file from the database on every reload. Did I miss something in the upgrade process? If not, does anyone know what’s happening here? Thx.
Jim Shilliday
chan_dahdi_conf:
[channels]
language=en
usecallerid=yes
echocancel=yes
immediate=no
switchtype = national
context = from-mci
group = 0
signalling = pri_cpe
channel => 1-23
context = from-altigen
group = 1
signalling = pri_net
channel => 25-47
; include dahdi extensions defined in FreePBX
#include chan_dahdi_additional.conf
chan_dahdi_additional.conf (after upgrade to 2.8.0.0 and reload):
;--------------------------------------------------------------------------------;
; Do NOT edit this file as it is auto-generated by FreePBX. All modifications to ;
; this file must be done via the web gui. There are alternative files to make ;
; custom modifications, details at: http://freepbx.org/configuration_files ;
;--------------------------------------------------------------------------------;
;
last few lines of output from ‘database show device’:
/DEVICE/969/default_user : 313
/DEVICE/969/dial : ZAP/69
/DEVICE/969/type : fixed
/DEVICE/969/user : 313
/DEVICE/970/default_user : 408
/DEVICE/970/dial : ZAP/70
/DEVICE/970/type : fixed
/DEVICE/970/user : 408
/DEVICE/971/default_user : none
/DEVICE/971/dial : ZAP/71
/DEVICE/971/type : adhoc
/DEVICE/971/user : 324
/DEVICE/972/default_user : 413
/DEVICE/972/dial : ZAP/72
/DEVICE/972/type : fixed
/DEVICE/972/user : 413