AX-1600P FXO Port Configuration

Home » Asterisk Users » AX-1600P FXO Port Configuration
Asterisk Users No Comments

Hello everyone,

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

— /etc/asterisk/pjsip.conf —
[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

[…]
— EOF —

And this is my dialplan:

— /etc/asterisk/extensions.conf —
[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()
— EOF —

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 —
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
— EOF —

— /etc/dahdi/assigned-spans.conf —
/sys/devices/pci0000:00/0000:00:1e.0/0000:06:01.0/pci:0000:06:01.0 1:1:1
— EOF —

— /etc/asterisk/dahdi_channels.conf —
; 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
— EOF —

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

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:
Real:
Callwait:
Threeway:
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:

— /etc/asterisk/extensions.conf —
[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)
— EOF —

I think I misunderstood something and I’m doing all totally worng because there aren’t inbound or outbound calls. Someone could help me to configure correctly the FXO port?

Thanks in advandced.

1 –
http://www.atcom.cn/uploadfile/2014/1219/cards/ax1600p/AX1600P&AXE1600P%20Datasheet.pdf


El software de antivirus Avast ha analizado este correo electrónico en busca de virus. https://www.avast.com/antivirus