AX-1600P FXO port configuration

Hello everyone,

I have a Atcom AX-1600P card with a FXO module and I can’t configure it. I have four extension with this PJSIP settings:

[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0

[6001]
type=endpoint
transport=transport-udp
context=from-internal
disallow=all
allow=ulaw
auth=6001
aors=6001
direct_media=no
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes
ice_support=yes

[6001]
type=auth
auth_type=userpass
password=P@ssw0rd
username=6001

[6001]
type=aor
max_contacts=2

[...]

And this is my dialplan:

[from-internal]
exten => 100,1,Answer()
   same => n,Wait(1)
   same => n,Playback(hello-world)
   same => n,Hangup()

exten => _600[1-4],1,Dial(PJSIP/${EXTEN})
   same => n,Hangup()

Calls between extensions work correctly and the extension 100 play the hello world message, even through NAT. Now I want use the FXO port to connect asterisk to the PSTN.

“lsmod | grep dahdi” command:

dahdi_echocan_oslec    12682  1
echo                   13621  1 dahdi_echocan_oslec
dahdi_transcode        14291  1 wctc4xxp
dahdi_voicebus         59241  2 wctdm24xxp,wcte12xp
dahdi                 228088  19 xpp,r1t1,rxt1,wctdm24xxp,rcbfx,wcaxx,wcfxo,wctdm,dahdi_transcode,dahdi_echocan_oslec,oct612x,dahdi_voicebus,wcb4xxp,wct1xxp,wct4xxp,wcte43x,wcte11xp,wcte12xp,wcte13xp
crc_ccitt              12707  2 wctdm24xxp,dahdi

“dahdi_hardware” command:

pci:0000:06:01.0     wctdm+       e159:0001 Wildcard TDM400P REV E/F

“dahdi_scan” command:

[1]
active=yes
alarms=OK
description=Wildcard TDM400P REV E/F Board 5
name=WCTDM/4
manufacturer=Digium
devicetype=Wildcard TDM400P REV E/F
location=PCI Bus 06 Slot 02
basechan=1
totchans=4
irq=0
type=analog
port=1,FXO
port=2,none
port=3,none
port=4,none

/etc/dahdi/system.conf file:

fxsks=1
echocanceller=oslec,1
# channel 2, WCTDM/4/1, no module.
# channel 3, WCTDM/4/2, no module.
# channel 4, WCTDM/4/3, no module.

# Global data

loadzone        = es
defaultzone     = es

/etc/dahdi/assigned-spans.conf file:

/sys/devices/pci0000:00/0000:00:1e.0/0000:06:01.0/pci:0000:06:01.0 1:1:1

/etc/asterisk/dahdi_channels.conf file:

; Span 1: WCTDM/4 "Wildcard TDM400P REV E/F Board 5" (MASTER)
;;; line="1 WCTDM/4/0 FXSKS  (In use) (EC: OSLEC - INACTIVE)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 1
callerid=
group=
context=default

/etc/asterisk/chan_dadhi.conf file:

[channels]
#include /etc/asterisk/dahdi-channels.conf

After restart dahdi and asterisk service, the FXO port is recognized by asterisk:

“dahdi show channel 1” asterisk cli command:

Channel: 1
Description:
File Descriptor: 17
Span: 1
Extension:
Dialing: no
Context: from-pstn
Caller ID:
Calling TON: 0
Caller ID subaddress:
Caller ID name:
Mailbox: none
Destroy: 0
InAlarm: 0
Signalling Type: FXS Kewlstart
Radio: 0
Owner: <None>
Real: <None>
Callwait: <None>
Threeway: <None>
Confno: -1
Propagated Conference: -1
Real in conference: 0
DSP: no
Busy Detection: no
TDD: no
Relax DTMF: no
Dialing/CallwaitCAS: 0/0
Default law: ulaw
Fax Handled: no
Pulse phone: no
HW Gains (RX/TX): Disabled/Disabled
SW Gains (RX/TX): 0.00/0.00
Dynamic Range Compression (RX/TX): 0.00/0.00
DND: no
Echo Cancellation:
        1 taps
        (unless TDM bridged) currently OFF
Wait for dialtone: 0ms
Actual Confinfo: Num/0, Mode/0x0000
Actual Confmute: No
Hookstate (FXS only): Onhook

And updated the extensions file:

[globals]
FXO_N1=DAHDI/1

[nacionales]
exten => _[89]ZXXXXXXX,1,Dial(${FXO_N1}/${EXTEN})
   same => n,Hangup()

[moviles]
exten => _[67]XXXXXXXX,1,Dial(${FXO_N1}/${EXTEN})
   same => n,Hangup()

[from-internal]
include => nacionales
include => moviles

exten => 100,1,Answer()
   same => n,Wait(1)
   same => n,Playback(hello-world)
   same => n,Hangup()

exten => 6000,1,Dial(PJSIP/6001&PJSIP/6002&PJSIP/6003&PJSIP/6004,20)
   same => n,Hangup()

exten => _600[1-4],1,Dial(PJSIP/${EXTEN})
   same => n,Hangup()

[from-pstn]
include => from-internal

exten => s,1,Answer(.5)
   same => n,Dial(PJSIP/6000)

I think I misunderstood something and I’m doing all totally worng because there aren’t inbound or outbound calls through DAHDI/1 channel.

Someone could help me to configure correctly the FXO port?

Thanks in advandced.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.