Got this after installing a third party module called DAHDi Config…
I applied the configuration changes in a second window and it seems to be installed, but nonetheless I encountered this and thought I should report it somewhere. I will let you know through this post if the card (an aftermarket TDM400P card from eBay) works anyways.
Here is the entire error message
Reload failed because retrieve_conf encountered an error: 1
exit: 1
Checking for PEAR DB…OK
Checking for PEAR Console::Getopt…OK
Checking for /etc/amportal.conf …OK
Bootstrapping /etc/amportal.conf …OK
Parsing /etc/amportal.conf …OK
Parsing /etc/asterisk/asterisk.conf …OK
Connecting to database…OK
Connecting to Asterisk manager interface…OK
Failed to backup old config: Permission denied
[FATAL] INSERT INTO dahdi_spans (span
, framing
, definedchans
, coding
, signalling
, switchtype
, syncsrc
, lbo
, pridialplan
, prilocaldialplan
, group
, context
) VALUES [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘’ at line 1]
Array
(
[0] => Array
(
[file] => /var/www/html/admin/modules/dahdiconfig/functions.inc.php
[line] => 1107
[function] => die_freepbx
[args] => Array
(
[0] => INSERT INTO dahdi_spans (span
, framing
, definedchans
, coding
, signalling
, switchtype
, syncsrc
, lbo
, pridialplan
, prilocaldialplan
, group
, context
) VALUES [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘’ at line 1]
)
)
[1] => Array
(
[file] => /var/www/html/admin/modules/dahdiconfig/functions.inc.php
[line] => 461
[function] => write_spans
[class] => dahdi_cards
[object] => dahdi_cards Object
(
[analog_ports:private] => Array
(
)
[advanced:private] => Array
(
[module_name] => wctdm24xxp
[tone_region] => us
[opermode_checkbox] => 0
[opermode] => USA
[alawoverride_checkbox] => 0
[alawoverride] => 0
[fxs_honor_mode_checkbox] => 0
[fxs_honor_mode] => 0
[boostringer_checkbox] => 0
[boostringer] => 0
[fastringer_checkbox] => 0
[fastringer] => 0
[lowpower_checkbox] => 0
[lowpower] => 0
[ringdetect_checkbox] => 0
[ringdetect] => 0
[mwi_checkbox] => 0
[mwi] => none
[neon_voltage] =>
[neon_offlimit] =>
[echocan_nlp_type] => 0
[echocan_nlp_threshold] =>
[echocan_nlp_max_supp] =>
)
[configured_hdwr:private] => Array
(
)
[channels:private] => Array
(
)
[chan_dahdi_conf:private] =>
[dahdi_scan:private] => [1]
active=yes
alarms=OK
description=Wildcard S400P Prototype Board 5
name=WCTDM/4
manufacturer=Digium
devicetype=Wildcard S400P Prototype
location=PCI Bus 04 Slot 01
basechan=1
totchans=4
irq=169
type=analog
port=1,FXO
port=2,FXO
port=3,FXO
port=4,FXO
[detected_hdwr:private] => Array
(
[PCI Bus 04 Slot 01] => Array
(
[device] => Wildcard S400P Prototype
[basechan] => 1
[type] => analog
)
)
[drivers_list:private] => Array
(
[0] => tor2
[1] => wcb4xxp
[2] => wcfxo
[3] => wct1xxp
[4] => wct4xxp
[5] => wctc4xxp
[6] => wctdm24xxp
[7] => wctdm
[8] => wcte11xp
[9] => wcte12xp
[10] => wcusb
[11] => xpp_usb
)
[echocans:private] => Array
(
[mg2] => 0
[kb1] => 1
[sec] => 2
[sec2] => 3
[hpec] => 4
)
[error_msg:private] =>
[groups:private] => Array
(
)
[hardware:private] => Array
(
[PCI Bus 04 Slot 01] => Array
(
[device] => Wildcard S400P Prototype
[basechan] => 1
[type] => analog
)
)
[has_analog_hdwr:private] =>
[has_vpm:private] =>
[has_digital_hdwr:private] =>
[hdwr_changes:private] => 1
[module_name:private] => wctdm24xxp
[ports_signalling:private] => Array
(
[ls] => Array
(
)
[ks] => Array
(
)
)
[spancount:private] => Array
(
)
[spans:private] => Array
(
)
[system_conf:private] =>
[fxo_ports:private] => Array
(
[0] => 1
[1] => 2
[2] => 3
[3] => 4
)
[fxs_ports:private] => Array
(
)
)
[type] => ->
[args] => Array
(
)
)
[2] => Array
(
[file] => /var/www/html/admin/modules/dahdiconfig/functions.inc.php
[line] => 184
[function] => load
[class] => dahdi_cards
[object] => dahdi_cards Object
(
[analog_ports:private] => Array
(
)
[advanced:private] => Array
(
[module_name] => wctdm24xxp
[tone_region] => us
[opermode_checkbox] => 0
[opermode] => USA
[alawoverride_checkbox] => 0
[alawoverride] => 0
[fxs_honor_mode_checkbox] => 0
[fxs_honor_mode] => 0
[boostringer_checkbox] => 0
[boostringer] => 0
[fastringer_checkbox] => 0
[fastringer] => 0
[lowpower_checkbox] => 0
[lowpower] => 0
[ringdetect_checkbox] => 0
[ringdetect] => 0
[mwi_checkbox] => 0
[mwi] => none
[neon_voltage] =>
[neon_offlimit] =>
[echocan_nlp_type] => 0
[echocan_nlp_threshold] =>
[echocan_nlp_max_supp] =>
)
[configured_hdwr:private] => Array
(
)
[channels:private] => Array
(
)
[chan_dahdi_conf:private] =>
[dahdi_scan:private] => [1]
active=yes
alarms=OK
description=Wildcard S400P Prototype Board 5
name=WCTDM/4
manufacturer=Digium
devicetype=Wildcard S400P Prototype
location=PCI Bus 04 Slot 01
basechan=1
totchans=4
irq=169
type=analog
port=1,FXO
port=2,FXO
port=3,FXO
port=4,FXO
[detected_hdwr:private] => Array
(
[PCI Bus 04 Slot 01] => Array
(
[device] => Wildcard S400P Prototype
[basechan] => 1
[type] => analog
)
)
[drivers_list:private] => Array
(
[0] => tor2
[1] => wcb4xxp
[2] => wcfxo
[3] => wct1xxp
[4] => wct4xxp
[5] => wctc4xxp
[6] => wctdm24xxp
[7] => wctdm
[8] => wcte11xp
[9] => wcte12xp
[10] => wcusb
[11] => xpp_usb
)
[echocans:private] => Array
(
[mg2] => 0
[kb1] => 1
[sec] => 2
[sec2] => 3
[hpec] => 4
)
[error_msg:private] =>
[groups:private] => Array
(
)
[hardware:private] => Array
(
[PCI Bus 04 Slot 01] => Array
(
[device] => Wildcard S400P Prototype
[basechan] => 1
[type] => analog
)
)
[has_analog_hdwr:private] =>
[has_vpm:private] =>
[has_digital_hdwr:private] =>
[hdwr_changes:private] => 1
[module_name:private] => wctdm24xxp
[ports_signalling:private] => Array
(
[ls] => Array
(
)
[ks] => Array
(
)
)
[spancount:private] => Array
(
)
[spans:private] => Array
(
)
[system_conf:private] =>
[fxo_ports:private] => Array
(
[0] => 1
[1] => 2
[2] => 3
[3] => 4
)
[fxs_ports:private] => Array
(
)
)
[type] => ->
[args] => Array
(
)
)
[3] => Array
(
[file] => /var/www/html/admin/modules/dahdiconfig/functions.inc.php
[line] => 34
[function] => dahdi_cards
[class] => dahdi_cards
[object] => dahdi_cards Object
(
[analog_ports:private] => Array
(
)
[advanced:private] => Array
(
[module_name] => wctdm24xxp
[tone_region] => us
[opermode_checkbox] => 0
[opermode] => USA
[alawoverride_checkbox] => 0
[alawoverride] => 0
[fxs_honor_mode_checkbox] => 0
[fxs_honor_mode] => 0
[boostringer_checkbox] => 0
[boostringer] => 0
[fastringer_checkbox] => 0
[fastringer] => 0
[lowpower_checkbox] => 0
[lowpower] => 0
[ringdetect_checkbox] => 0
[ringdetect] => 0
[mwi_checkbox] => 0
[mwi] => none
[neon_voltage] =>
[neon_offlimit] =>
[echocan_nlp_type] => 0
[echocan_nlp_threshold] =>
[echocan_nlp_max_supp] =>
)
[configured_hdwr:private] => Array
(
)
[channels:private] => Array
(
)
[chan_dahdi_conf:private] =>
[dahdi_scan:private] => [1]
active=yes
alarms=OK
description=Wildcard S400P Prototype Board 5
name=WCTDM/4
manufacturer=Digium
devicetype=Wildcard S400P Prototype
location=PCI Bus 04 Slot 01
basechan=1
totchans=4
irq=169
type=analog
port=1,FXO
port=2,FXO
port=3,FXO
port=4,FXO
[detected_hdwr:private] => Array
(
[PCI Bus 04 Slot 01] => Array
(
[device] => Wildcard S400P Prototype
[basechan] => 1
[type] => analog
)
)
[drivers_list:private] => Array
(
[0] => tor2
[1] => wcb4xxp
[2] => wcfxo
[3] => wct1xxp
[4] => wct4xxp
[5] => wctc4xxp
[6] => wctdm24xxp
[7] => wctdm
[8] => wcte11xp
[9] => wcte12xp
[10] => wcusb
[11] => xpp_usb
)
[echocans:private] => Array
(
[mg2] => 0
[kb1] => 1
[sec] => 2
[sec2] => 3
[hpec] => 4
)
[error_msg:private] =>
[groups:private] => Array
(
)
[hardware:private] => Array
(
[PCI Bus 04 Slot 01] => Array
(
[device] => Wildcard S400P Prototype
[basechan] => 1
[type] => analog
)
)
[has_analog_hdwr:private] =>
[has_vpm:private] =>
[has_digital_hdwr:private] =>
[hdwr_changes:private] => 1
[module_name:private] => wctdm24xxp
[ports_signalling:private] => Array
(
[ls] => Array
(
)
[ks] => Array
(
)
)
[spancount:private] => Array
(
)
[spans:private] => Array
(
)
[system_conf:private] =>
[fxo_ports:private] => Array
(
[0] => 1
[1] => 2
[2] => 3
[3] => 4
)
[fxs_ports:private] => Array
(
)
)
[type] => ->
[args] => Array
(
)
)
[4] => Array
(
[file] => /var/lib/asterisk/bin/retrieve_conf
[line] => 532
[function] => dahdiconfig_conf
[class] => dahdiconfig_conf
[object] => dahdiconfig_conf Object
(
[cards] =>
)
[type] => ->
[args] => Array
(
)
)
)