[asterisk-biz] Asterisk avec TDM2400 3 FXO et 1 FXS

Anne sophie Lantz annesophielantz at gmail.com
Wed Dec 17 05:30:49 CST 2008


hi,

I am new on asterisk.
I have the following configuration:
- 1 server with asterisk 1.4.22 avec TDM2413B avec 1 module quadFXS et 3
modules quadFXO et cable amphenol et Patch19 24RJ11.
- 1 server hylafax 4.4.4  et iaxmodem 1.1.1.

on server 1 :

# cat zaptel.conf
fxoks=1
fxoks=2
fxoks=3
fxoks=4
fxoks=5
fxoks=6
fxoks=7
fxoks=8
fxoks=9
fxoks=10
fxoks=11
fxoks=12
fxsks=21
fxsks=22
fxsks=23
fxsks=24
loadzone = fr
defaultzone = fr


# zapata.conf
; fichier de configuration zapata.conf
;

[trunkgroups]

[channels]
language=fr ; definition de la langue par defaut
switchtype=national ; pour la ligne analogique

rxwink=300 ; Atlas seems to use long (250ms) winks
usecallerid=yes ; utilisation de l'ID de l'appelant
hidecallerid=no ; ne pas cache l'ID de l'appelant
callwaiting=no ; "no" dans la config de guillaume
usecallingpres=yes ; presentation du numero active
callwaitingcallerid=yes ; la communication attend l'ID de l'appelant
threewaycalling=yes ; conference à 3
transfer=yes ; transfert autorise
canpark=yes ; ???
cancallforward=yes ; faire suivre l'appel est autorise
callreturn=yes ; retour d'appel active
echocancel=yes ; attenuation de l'echo active
echotraining=yes ; activation apprentissage de l'écho par le suppresseur
d'écho
echocancelwhenbridged=yes ; attenuation de l'echo en mode bridge active
faxdetect=fr
;rxgain=0.0 ; gain de reception, defaut : non commente
;txgain=0.0 ; gain d'emmision, defaut : non commente
immediate=no ; ???
busydetect=yes ; defaut : commente
busycount=4 ; defaut : commente

musiconhold=default ; classe de la musique par défaut
context=incoming ; les appels entrants sur la ligne T2 sont dirigés vers le
contexte incoming du plan de numératation
group=1
callgroup=1
pickupgroup=1
immediate=no

; definition des channels
include zapata-channels.conf

# cat zapata-channels*
; Span 1: WCTDM/0 "Wildcard TDM2400P REV I Board 1" (MASTER)
;;; line="1 WCTDM/0/0 FXOKS (In use)"
signalling=fxo_ks
callerid="channel 1" <101>
group=1
context=from-internal
channel => 1
callerid=
mailbox=
group=
context=default

;;; line="2 WCTDM/0/0 FXOKS"
signalling=fxo_ks
callerid="channel 2" <102>
group=1
context=from-internal
channel => 2
callerid=
mailbox=
group=
context=default

;;; line="3 WCTDM/0/2 FXOKS"
signalling=fxo_ks
callerid="Channel 3" <103>
group=1
context=from-internal
channel => 3
callerid=
mailbox=
group=
context=default

;;; line="4 WCTDM/0/2 FXOKS"
signalling=fxo_ks
callerid="Channel 4" <104>
group=1
context=from-internal
channel => 4
callerid=
mailbox=
group=
context=default

;;; line="5 WCTDM/0/2 FXOKS"
signalling=fxo_ks
callerid="Channel 5" <105>
group=1
context=from-internal
channel => 5
callerid=
mailbox=
group=
context=default

;;; line="6 WCTDM/0/2 FXOKS"
signalling=fxo_ks
callerid="Channel 6" <106>
group=1
context=from-internal
channel => 6
callerid=
mailbox=
group=
context=default

;;; line="7 WCTDM/0/2 FXOKS"
signalling=fxo_ks
callerid="Channel 7" <107>
group=1
context=from-internal
channel => 7
callerid=
mailbox=
group=
context=default

;;; line="8 WCTDM/0/2 FXOKS"
signalling=fxo_ks
callerid="Channel 8" <108>
group=1
context=from-internal
channel => 8
callerid=
mailbox=
group=
context=default

;;; line="9 WCTDM/0/2 FXOKS"
signalling=fxo_ks
callerid="Channel 9" <109>
group=1
context=from-internal
channel => 9
callerid=
mailbox=
group=
context=default

;;; line="10 WCTDM/0/2 FXOKS"
signalling=fxo_ks
callerid="Channel 10" <110>
group=1
context=from-internal
channel => 10
callerid=
mailbox=
group=
context=default

;;; line="11 WCTDM/0/2 FXOKS"
signalling=fxo_ks
callerid="Channel 11" <111>
group=1
context=from-internal
channel => 11
callerid=
mailbox=
group=
context=default

;;; line="12 WCTDM/0/2 FXOKS"
signalling=fxo_ks
callerid="Channel 12" <112>
group=1
context=from-internal
channel => 12
callerid=
mailbox=
group=
context=default

;;; line="21 WCTDM/0/3 FXSKS"
signalling=fxs_ks
callerid=asreceived
group=1
context=from-pstn
channel => 21
context=default

;;; line="22 WCTDM/0/3 FXSKS"
signalling=fxs_ks
callerid=asreceived
group=1
context=from-pstn
channel => 22
context=default

;;; line="23 WCTDM/0/3 FXSKS"
signalling=fxs_ks
callerid=asreceived
group=1
context=from-pstn
channel => 23
context=default

;;; line="24 WCTDM/0/3 FXSKS"
signalling=fxs_ks
callerid=asreceived
group=1
context=from-pstn
channel => 24
context=default

# /sbin/ztcfg -vv

Zaptel Version: 1.4.11
Echo Canceller: MG2
Configuration
======================


Channel map:

Channel 01: FXO Kewlstart (Default) (Slaves: 01)
Channel 02: FXO Kewlstart (Default) (Slaves: 02)
Channel 03: FXO Kewlstart (Default) (Slaves: 03)
Channel 04: FXO Kewlstart (Default) (Slaves: 04)
Channel 05: FXO Kewlstart (Default) (Slaves: 05)
Channel 06: FXO Kewlstart (Default) (Slaves: 06)
Channel 07: FXO Kewlstart (Default) (Slaves: 07)
Channel 08: FXO Kewlstart (Default) (Slaves: 08)
Channel 09: FXO Kewlstart (Default) (Slaves: 09)
Channel 10: FXO Kewlstart (Default) (Slaves: 10)
Channel 11: FXO Kewlstart (Default) (Slaves: 11)
Channel 12: FXO Kewlstart (Default) (Slaves: 12)
Channel 21: FXS Kewlstart (Default) (Slaves: 21)
Channel 22: FXS Kewlstart (Default) (Slaves: 22)
Channel 23: FXS Kewlstart (Default) (Slaves: 23)
Channel 24: FXS Kewlstart (Default) (Slaves: 24)

16 channels to configure.

Changing signalling on channel 1 from Unused to FXO Kewlstart
ZT_CHANCONFIG failed on channel 1: Invalid argument (22)
Did you forget that FXS interfaces are configured with FXO signalling
and that FXO interfaces use FXS signalling?

# /sbin/ztscan
[1]
active=yes
alarms=UNCONFIGURED
description=Wildcard TDM2400P Board 1
name=WCTDM/0
manufacturer=Digium
devicetype=Wildcard TDM2400P
location=PCI Bus 05 Slot 02
basechan=1
totchans=24
irq=19
type=analog
port=1,FXS FAILED
port=2,FXS FAILED
port=3,FXS FAILED
port=4,FXS FAILED
port=5,none
port=6,none
port=7,none
port=8,none
port=9,none
port=10,none
port=11,none
port=12,none
port=13,FXO
port=14,FXO
port=15,FXO
port=16,FXO
port=17,FXO
port=18,FXO
port=19,FXO
port=20,FXO
port=21,FXO
port=22,FXO
port=23,FXO
port=24,FXO
[2]
active=yes
alarms=UNCONFIGURED
description=ZTDUMMY/1 (source: HRtimer) 1
name=ZTDUMMY/1
manufacturer=
devicetype=Zaptel Dummy Timing Driver
location=
basechan=25
totchans=0
irq=0

# cat extensions.conf
; fichier extension.conf pour asterisk
;

[Globals]
OUTBOUNDTRUNK=Zap/4

[general]
static=yes ; interidiction de modifier ce fichier
writeprotect=yes ; interet a trouver, proteger en ecriture
autofallthrough=yes ; si =no , probleme lorsque pas d'action correspondante
clearglobalvars=no ; les variables seront conservees

[default]
exten => s,1,Answer()
exten => s,n,Playback(hello-world)
exten => s,n,Hangup()

exten => i,1,Playback(pbx-invalid)
exten => i,n,SayAlpha(Mince)
exten => i,n,Hangup()
exten => t,1,Playback(vm-goodbye)
exten => t,n,Hangup()

[incoming]

[from-internal]
include => phones

[from-pstn]
exten => s,1,Answer()
exten => s,n,goto(phones,7119,1)
exten => s,n,Hangup()

[phones]
exten => _00XXXXXXXXX,1,Dial(${OUTBOUNDTRUNK}/${EXTEN:1})
exten => _00XXXXXXXXX,n,Congestion()
exten => _00XXXXXXXXX,n,HangUp()

exten => _20X,n,Dial(ZAP/${EXTEN:2:1},30)
exten => _20X,n,Playback(fr/vm-nobodyavail)
exten => _20X,n,Voicemail(${EXTEN}@default,u)
exten => _20X,n,HangUp()

include => default


;[globals]
;CONSOLE=Console/dsp ; Console interface for demo
;CONSOLE=Zap/1
;TRUNKMSD=1 ; MSD digits to strip (usually 1 or 0)

[from-sip]
;exten => 520,1,Dial(SIP/520,15,tr) ; hardphone IP
;exten => _0.,1,Dial(Zap/4/${EXTEN},45,tr) ; n° commancant par 0
;exten => 521,1,Dial(SIP/521,15,tr) ; softphone IP

[FXO]
; exten => s,1,Goto(context,extension,priorite)
;exten => s,1,Goto(from-sip,521,1)

Can you help me.
Thanks
Anne sophie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-biz/attachments/20081217/daac2ebe/attachment-0001.htm 


More information about the asterisk-biz mailing list