Hello all
I am new to Asterisk,
I have a 4 FXS port TDM400P card in a linux box that I’d like to configure as four extensions that can call each other.
It uses dahdi and linux kernel module wctdm which all appear to be working. When I modprobe wctdm the leds on the FXS ports all turn green which is a good sign.
the command lsdahdi gives me:
Span 1: WCTDM/4 “Wildcard TDM400P REV I Board 5” (MASTER)
1 FXS FXOKS (In use)
2 FXS FXOKS (In use)
3 FXS FXOKS (In use)
4 FXS FXOKS (In use)
and
dahdi_scan -vvvvv gives me:
[1]
active=yes
alarms=OK
description=Wildcard TDM400P REV I Board 5
name=WCTDM/4
manufacturer=Digium
devicetype=Wildcard TDM400P REV I
location=PCI Bus 02 Slot 01
basechan=1
totchans=4
irq=0
type=analog
port=1,FXS
port=2,FXS
port=3,FXS
port=4,FXS
I got a auto generated dahdi-channels.conf:
cat dahdi-channels.conf
; Autogenerated by /usr/bin/dahdi_genconf on Wed Oct 30 02:19:16 2024
; If you edit this file and execute /usr/bin/dahdi_genconf again,
; your manual changes will be LOST.
; Dahdi Channels Configurations (chan_dahdi.conf)
;
; This is not intended to be a complete chan_dahdi.conf. Rather, it is intended
; to be #include-d by /etc/chan_dahdi.conf that will include the global settings
;
; Span 1: WCTDM/4 “Wildcard TDM400P REV I Board 5” (MASTER)
;;; line=“1 WCTDM/4/0 FXOKS”
signalling=fxo_ks
callerid=“Channel 1” <4001>
mailbox=4001
group=5
context=from-internal
channel => 1
callerid=
mailbox=
group=
context=default
;;; line=“2 WCTDM/4/1 FXOKS”
signalling=fxo_ks
callerid=“Channel 2” <4002>
mailbox=4002
group=5
context=from-internal
channel => 2
callerid=
mailbox=
group=
context=default
;;; line=“3 WCTDM/4/2 FXOKS”
signalling=fxo_ks
callerid=“Channel 3” <4003>
mailbox=4003
group=5
context=from-internal
channel => 3
callerid=
mailbox=
group=
context=default
;;; line=“4 WCTDM/4/3 FXOKS”
signalling=fxo_ks
callerid=“Channel 4” <4004>
mailbox=4004
group=5
context=from-internal
channel => 4
callerid=
mailbox=
group=
context=default
I have been reading the basic docs
Hello World - Asterisk Documentation
and created an extensions.conf where dialing 9 should play hello world, and the extensions are 0 ,1,5 & 6:
exten => 0,1,Dial(DAHDI/1,r2)
exten => 9,1,Answer()
same = n,Wait(1)
same = n,Playback(hello-world)
same = n,Hangup()
exten => 1,1,Dial(DAHDI/2,r1)
exten => 5,1,Dial(DAHDI/3,r1)
exten => 6,1,Dial(DAHDI/4,r1)
and added a #include for it in
chan_dahdi.conf:
#include dahdi-channels.conf
However when I pick up one of the phones I don’t here dial tone and I cant call the other phones.
I can here my self and I the touchtone buttons work.
What else do I need to set up my FXS ports so that they can call each other?
Thanks in advance!