We are trying to get Sangoma A200/A104 cards to run zaptel and we are receiving this error:

ZT_SPANCONFIG failed on span 1: Invalid argument (22)

after the zaptel configuration command (ztcfg -vv).
Our zaptel.conf file looks as follows:

# Autogenerated by /usr/local/sbin/sangoma/setup-sangoma -- do not hand edit
# Zaptel Channels Configurations (zaptel.conf)
#
loadzone=us
defaultzone=us

#Sangoma A104 port 1 [slot:2 bus:3 span:1] <wanpipe1>
span=1,0,0,ccs,hdb3,crc4
bchan=1-15,17-31
hardhdlc=16

#Sangoma A104 port 2 [slot:2 bus:3 span:2] <wanpipe2>
span=2,0,0,ccs,hdb3,crc4
bchan=32-46,48-62
hardhdlc=47

#Sangoma A104 port 3 [slot:2 bus:3 span:3] <wanpipe3>
span=3,0,0,ccs,hdb3,crc4
bchan=63-77,79-93
hardhdlc=78

#Sangoma A104 port 4 [slot:2 bus:3 span:4] <wanpipe4>
span=4,0,0,ccs,hdb3,crc4
bchan=94-108,110-124
hardhdlc=109


#Sangoma A200 [slot:1 bus:3 span:5] <wanpipe5>
fxoks=125
fxoks=126
fxsks=127
fxsks=128

We configured our files according to the documentation on the openzap wiki page for zaptel configuration and openzap.conf, openzap.conf.xml. We are using ubuntu and installed wanpipe3.3.9 and zaptel 1.4.11. We are pretty new to freeswitch so any help would be great.

~Hilda