I am having similar issues installing the dahdiconfig module. Version of dahdiconfig is 13.0.33.12. Results of dahdi_scan are at the end.
Symptom is
[Whoops\Exception\ErrorException]
syntax error, unexpected $end in Unknown on line 72
Phone system is operational including the PRI using Xorcom Astribank if I hand-configure the chan_dahdi*.conf files
If I try to install the dahdiconfig module from either the command line or the GUI I get varying results.
I can get things running again by removing the dahdiconfig module.
IF DAHDI is running:
[root@voipnew ~]# fwconsole ma downloadinstall dahdiconfig
No repos specified, using: [commercial,unsupported,extended,standard] from last GUI settings
Starting dahdiconfig download…
Processing dahdiconfig
Verifying local module download…Verified
Extracting…Done
Module dahdiconfig successfully downloaded
Creating Dahdi Advanced Settings Table
Checking tables…Done
Creating Dahdi Analog Table
Create Configured Locations Table
Creating Dahdi Advanced Modules Table
Migrating Old Data from Dahdi Advanced Table
Inserting Old Data from Dahdi Advanced Table
Deleting old dahdi module data from database (its been migrated)
Replacing…tone_region…language…busydetect…busycount…usecallerid…callwaiting…usecallingpres…threewaycalling…transfer…cancallforward…callreturn…echocancel…echocancelwhenbridged…echotraining…immediate…faxdetect…rxgain…txgain…Done
Migrating module wctdm24xxp from serialized data to json
Creating dahdi modules Table
Add type column
add additional column
Adding txgain and rxgain column to analog table
[Whoops\Exception\ErrorException]
syntax error, unexpected $end in Unknown on line 72
If Dahdi is not running
[root@voipnew ~]# service dahdi stop
Unloading DAHDI hardware modules: done
[root@voipnew ~]# fwconsole ma downloadinstall dahdiconfig
No repos specified, using: [commercial,unsupported,extended,standard] from last GUI settings
Starting dahdiconfig download…
Processing dahdiconfig
Verifying local module download…Verified
Extracting…Done
Module dahdiconfig successfully downloaded
Checking tables…Done
Generating CSS…Done
Module dahdiconfig successfully installed
Updating Hooks…Done
[root@voipnew ~]#
Then
[root@voipnew ~]# amportal restart
Please wait…
!!!amportal is depreciated. Please use fwconsole!!!
forwarding all commands to 'fwconsole’
Running FreePBX shutdown…
Shutting down Asterisk Gracefully. Will forcefully kill after 30 seconds.
Press C to Cancel
Press N to shut down NOW
[============================] 1 sec
Wanrouter: No valid Sangoma Hardware found, if you have no Sangoma cards this is OK
Stopping DAHDi for Digium Cards
DAHDi Stopped
Running FreePBX startup…
Wanrouter: No valid Sangoma Hardware found, if you have no Sangoma cards this is OK
Starting DAHDi for Digium Cards
DAHDi Started
[Whoops\Exception\ErrorException]
syntax error, unexpected $end in Unknown on line 72
[root@voipnew asterisk]# su asterisk
bash-4.1$ dahdi_scan
[1]
active=yes
alarms=RED
description=Xorcom XPD [usb:X1066801].1: T1
name=XBUS-00/XPD-00
manufacturer=Xorcom Inc.
devicetype=Astribank2
location=usb-0000:00:1a.0-1.5
basechan=1
totchans=24
irq=0
type=digital-T1
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=B8ZS,AMI
framing_opts=ESF,D4
coding=B8ZS
framing=ESF
[2]
active=yes
alarms=RED
description=Xorcom XPD [usb:X1066801].2: T1
name=XBUS-00/XPD-01
manufacturer=Xorcom Inc.
devicetype=Astribank2
location=usb-0000:00:1a.0-1.5
basechan=25
totchans=24
irq=0
type=digital-T1
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=B8ZS,AMI
framing_opts=ESF,D4
coding=B8ZS
framing=ESF
[3]
active=yes
alarms=RED
description=Xorcom XPD [usb:X1066801].3: T1
name=XBUS-00/XPD-02
manufacturer=Xorcom Inc.
devicetype=Astribank2
location=usb-0000:00:1a.0-1.5
basechan=49
totchans=24
irq=0
type=digital-T1
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=B8ZS,AMI
framing_opts=ESF,D4
coding=B8ZS
framing=ESF
[4]
active=yes
alarms=RED
description=Xorcom XPD [usb:X1066801].4: T1
name=XBUS-00/XPD-03
manufacturer=Xorcom Inc.
devicetype=Astribank2
location=usb-0000:00:1a.0-1.5
basechan=73
totchans=24
irq=0
type=digital-T1
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=B8ZS,AMI
framing_opts=ESF,D4
coding=B8ZS
framing=ESF
bash-4.1$ ^C
bash-4.1$