Analog phone not working with sangoma a400 + fxs module

hi all, hope all are doing well!

i am trying to set up analog phones in asterisk 16, with sangoma a400 + fxs modules, but facing some issues to get them up and working.

kindly help me by taking a look at the following errors and please advice on what i am doing wrong? .

now, when i use a multimeter to check the pins of the card, i am getting output from my a400 card, but when i connect my analog phone via 2-pin rj11, the analog phones never come up.

i am also getting following errors during startup:

[VCSS@localhost ~]$ /etc/init.d/dahdi start
Loading DAHDI hardware modules:

using ‘/etc/dahdi/assigned-spans.conf’
Running dahdi_cfg: DAHDI_CHANCONFIG failed on channel 1: Invalid argument (22)
Selected signaling not supported
Possible causes:
FXO signaling is being used on a FXO interface (use a FXS signaling variant)
RBS signaling is being used on a E1 CCS span
Signaling is being assigned to channel 16 of an E1 CAS span
[FAILED]
[VCSS@localhost ~]$


following are the contenst from /etc/dahdi/system.conf file:
#autogenerated by /usr/sbin/wancfg_dahdi do not hand edit
#autogenrated on 2021-12-22
DAHDI Channels Configurations
#For detailed Dahdi options, view /etc/dahdi/system.conf.bak
loadzone=us
defaultzone=us

#Sangoma AFT-400 [slot:4 bus:2 span:1]
fxoks=1
echocanceller=mg2,1
fxoks=2
echocanceller=mg2,2
fxoks=3
echocanceller=mg2,3
fxoks=4
echocanceller=mg2,4
fxsks=5
echocanceller=mg2,5
fxsks=6
echocanceller=mg2,6
fxsks=7
echocanceller=mg2,7
fxsks=8
echocanceller=mg2,8


and my assigned-spans.conf is empty:

Autogenerated by /usr/sbin/dahdi_span_assignments on Tue Feb 18 16:21:50 IST 2025

Map devices + local spans to span + base channel number


following is my analog phone in users.conf:
[2001]
fullname = LB_PH_1
username = 2001
cid_number = 2001
hassip = no
hasiax = no
hasradio = no
recording = no
ismagneto = no
callwaiting = no
callwaitingcallerid = no
callforwardonbusy = no
callerid = 2001
callforwardnoanswer = no
immediate = yes
context = DLPN_LB_PHONE_1
rxgain = 5.0
txgain = 5.0
;context = DLPN_Dialplan
calltransfer = no
pickupgroup =
callgroup =
threewaycalling = no
message =
hasvoicemail = no
blockcallerid = no
channel = 1
echocancel = yes
dahdichan = 1
signalling = fxo_ks
[2002]
fullname = LB_PH_2
username = 2002
cid_number = 2002
hassip = no
hasiax = no
hasradio = no
recording = no
ismagneto = no
callwaiting = no
callwaitingcallerid = no
callforwardonbusy = no
callerid = 2002
callforwardnoanswer = no
immediate = yes
context = DLPN_LB_PHONE_2
;context = DLPN_Dialplan
rxgain = 5.0
txgain = 5.0
calltransfer = no
pickupgroup =
callgroup =
threewaycalling = no
message =
hasvoicemail = no
blockcallerid = no
channel = 2
echocancel = yes
dahdichan = 2
signalling = fxo_ks
[2003]
fullname = Analog_Ph_1
username = 2003
cid_number = 2003
hassip = no
hasiax = no
hasradio = no
recording = no
ismagneto = no
callwaiting = no
callwaitingcallerid = no
callforwardonbusy = no
callerid = “AN_Phone1” <2003>
callforwardnoanswer = no
context = DLPN_Dialplan
calltransfer = yes
pickupgroup =
callgroup =
threewaycalling = no
message =
hasvoicemail = no
blockcallerid = no
channel = 3
echocancel = yes
dahdichan = 3
signalling = fxo_ks
[2004]
fullname = Analog_Ph_2
username = 2004
cid_number = 2004
hassip = no
hasiax = no
hasradio = no
recording = no
ismagneto = no
callwaiting = no
callwaitingcallerid = no
callforwardonbusy = no
callerid = “AN_Phone2” <2004>
callforwardnoanswer = no
context = DLPN_Dialplan
calltransfer = yes
pickupgroup =
callgroup =
threewaycalling = no
message =
hasvoicemail = no
blockcallerid = no
channel = 4
echocancel = yes
dahdichan = 4
signalling = fxo_ks

i hope i have provided sufficient information for your kind reference.

There is no such parameter in the sample configuration. Did you get this from an AI?

hi @david551 , how are you?

i found this param from sample syste.conf , from here: dahdi-tools/system.conf.sample at master · asterisk/dahdi-tools · GitHub

image

maybe i am not using this correct? kindly help me with the correct conf pls…

Apologies, I was looking at chan_dahdi.conf.sample, which it the one that users should be configuring.