hi, <br><br>I am new on asterisk.
<br> I have the following configuration:<br>- 1 server with asterisk 1.4.22 avec TDM2413B avec 1 module quadFXS et 3 modules quadFXO et cable amphenol et Patch19 24RJ11. <br>- 1 server hylafax 4.4.4 et iaxmodem 1.1.1. <br>
<br>on server 1 : <br><br># cat zaptel.conf<br>fxoks=1<br>fxoks=2<br>fxoks=3<br>fxoks=4<br>fxoks=5<br>fxoks=6<br>fxoks=7<br>fxoks=8<br>fxoks=9<br>fxoks=10<br>fxoks=11<br>fxoks=12<br>fxsks=21<br>fxsks=22<br>fxsks=23<br>fxsks=24<br>
loadzone = fr<br>defaultzone = fr<br><br><br># zapata.conf<br>; fichier de configuration zapata.conf<br>;<br><br>[trunkgroups]<br><br>[channels]<br>language=fr ; definition de la langue par defaut<br>switchtype=national ; pour la ligne analogique<br>
<br>rxwink=300 ; Atlas seems to use long (250ms) winks<br>usecallerid=yes ; utilisation de l'ID de l'appelant<br>hidecallerid=no ; ne pas cache l'ID de l'appelant<br>callwaiting=no ; "no" dans la config de guillaume<br>
usecallingpres=yes ; presentation du numero active<br>callwaitingcallerid=yes ; la communication attend l'ID de l'appelant<br>threewaycalling=yes ; conference à 3<br>transfer=yes ; transfert autorise<br>canpark=yes ; ???<br>
cancallforward=yes ; faire suivre l'appel est autorise<br>callreturn=yes ; retour d'appel active<br>echocancel=yes ; attenuation de l'echo active<br>echotraining=yes ; activation apprentissage de l'écho par le suppresseur d'écho<br>
echocancelwhenbridged=yes ; attenuation de l'echo en mode bridge active<br>faxdetect=fr<br>;rxgain=0.0 ; gain de reception, defaut : non commente<br>;txgain=0.0 ; gain d'emmision, defaut : non commente<br>immediate=no ; ???<br>
busydetect=yes ; defaut : commente<br>busycount=4 ; defaut : commente<br><br>musiconhold=default ; classe de la musique par défaut<br>context=incoming ; les appels entrants sur la ligne T2 sont dirigés vers le contexte incoming du plan de numératation<br>
group=1<br>callgroup=1<br>pickupgroup=1<br>immediate=no<br><br>; definition des channels<br>include zapata-channels.conf<br><br># cat zapata-channels*<br>; Span 1: WCTDM/0 "Wildcard TDM2400P REV I Board 1" (MASTER)<br>
;;; line="1 WCTDM/0/0 FXOKS (In use)"<br>signalling=fxo_ks<br>callerid="channel 1" <101><br>group=1<br>context=from-internal<br>channel => 1<br>callerid=<br>mailbox=<br>group=<br>context=default<br>
<br>;;; line="2 WCTDM/0/0 FXOKS"<br>signalling=fxo_ks<br>callerid="channel 2" <102><br>group=1<br>context=from-internal<br>channel => 2<br>callerid=<br>mailbox=<br>group=<br>context=default<br>
<br>;;; line="3 WCTDM/0/2 FXOKS"<br>signalling=fxo_ks<br>callerid="Channel 3" <103><br>group=1<br>context=from-internal<br>channel => 3<br>callerid=<br>mailbox=<br>group=<br>context=default<br>
<br>;;; line="4 WCTDM/0/2 FXOKS"<br>signalling=fxo_ks<br>callerid="Channel 4" <104><br>group=1<br>context=from-internal<br>channel => 4<br>callerid=<br>mailbox=<br>group=<br>context=default<br>
<br>;;; line="5 WCTDM/0/2 FXOKS"<br>signalling=fxo_ks<br>callerid="Channel 5" <105><br>group=1<br>context=from-internal<br>channel => 5<br>callerid=<br>mailbox=<br>group=<br>context=default<br>
<br>;;; line="6 WCTDM/0/2 FXOKS"<br>signalling=fxo_ks<br>callerid="Channel 6" <106><br>group=1<br>context=from-internal<br>channel => 6<br>callerid=<br>mailbox=<br>group=<br>context=default<br>
<br>;;; line="7 WCTDM/0/2 FXOKS"<br>signalling=fxo_ks<br>callerid="Channel 7" <107><br>group=1<br>context=from-internal<br>channel => 7<br>callerid=<br>mailbox=<br>group=<br>context=default<br>
<br>;;; line="8 WCTDM/0/2 FXOKS"<br>signalling=fxo_ks<br>callerid="Channel 8" <108><br>group=1<br>context=from-internal<br>channel => 8<br>callerid=<br>mailbox=<br>group=<br>context=default<br>
<br>;;; line="9 WCTDM/0/2 FXOKS"<br>signalling=fxo_ks<br>callerid="Channel 9" <109><br>group=1<br>context=from-internal<br>channel => 9<br>callerid=<br>mailbox=<br>group=<br>context=default<br>
<br>;;; line="10 WCTDM/0/2 FXOKS"<br>signalling=fxo_ks<br>callerid="Channel 10" <110><br>group=1<br>context=from-internal<br>channel => 10<br>callerid=<br>mailbox=<br>group=<br>context=default<br>
<br>;;; line="11 WCTDM/0/2 FXOKS"<br>signalling=fxo_ks<br>callerid="Channel 11" <111><br>group=1<br>context=from-internal<br>channel => 11<br>callerid=<br>mailbox=<br>group=<br>context=default<br>
<br>;;; line="12 WCTDM/0/2 FXOKS"<br>signalling=fxo_ks<br>callerid="Channel 12" <112><br>group=1<br>context=from-internal<br>channel => 12<br>callerid=<br>mailbox=<br>group=<br>context=default<br>
<br>;;; line="21 WCTDM/0/3 FXSKS"<br>signalling=fxs_ks<br>callerid=asreceived<br>group=1<br>context=from-pstn<br>channel => 21<br>context=default<br><br>;;; line="22 WCTDM/0/3 FXSKS"<br>signalling=fxs_ks<br>
callerid=asreceived<br>group=1<br>context=from-pstn<br>channel => 22<br>context=default<br><br>;;; line="23 WCTDM/0/3 FXSKS"<br>signalling=fxs_ks<br>callerid=asreceived<br>group=1<br>context=from-pstn<br>channel => 23<br>
context=default<br><br>;;; line="24 WCTDM/0/3 FXSKS"<br>signalling=fxs_ks<br>callerid=asreceived<br>group=1<br>context=from-pstn<br>channel => 24<br>context=default<br><br># /sbin/ztcfg -vv<br><br>Zaptel Version: 1.4.11<br>
Echo Canceller: MG2<br>Configuration<br>======================<br><br><br>Channel map:<br><br>Channel 01: FXO Kewlstart (Default) (Slaves: 01)<br>Channel 02: FXO Kewlstart (Default) (Slaves: 02)<br>Channel 03: FXO Kewlstart (Default) (Slaves: 03)<br>
Channel 04: FXO Kewlstart (Default) (Slaves: 04)<br>Channel 05: FXO Kewlstart (Default) (Slaves: 05)<br>Channel 06: FXO Kewlstart (Default) (Slaves: 06)<br>Channel 07: FXO Kewlstart (Default) (Slaves: 07)<br>Channel 08: FXO Kewlstart (Default) (Slaves: 08)<br>
Channel 09: FXO Kewlstart (Default) (Slaves: 09)<br>Channel 10: FXO Kewlstart (Default) (Slaves: 10)<br>Channel 11: FXO Kewlstart (Default) (Slaves: 11)<br>Channel 12: FXO Kewlstart (Default) (Slaves: 12)<br>Channel 21: FXS Kewlstart (Default) (Slaves: 21)<br>
Channel 22: FXS Kewlstart (Default) (Slaves: 22)<br>Channel 23: FXS Kewlstart (Default) (Slaves: 23)<br>Channel 24: FXS Kewlstart (Default) (Slaves: 24)<br><br>16 channels to configure.<br><br>Changing signalling on channel 1 from Unused to FXO Kewlstart<br>
ZT_CHANCONFIG failed on channel 1: Invalid argument (22)<br>Did you forget that FXS interfaces are configured with FXO signalling<br>and that FXO interfaces use FXS signalling?<br><br># /sbin/ztscan<br>[1]<br>active=yes<br>
alarms=UNCONFIGURED<br>description=Wildcard TDM2400P Board 1<br>name=WCTDM/0<br>manufacturer=Digium<br>devicetype=Wildcard TDM2400P<br>location=PCI Bus 05 Slot 02<br>basechan=1<br>totchans=24<br>irq=19<br>type=analog<br>port=1,FXS FAILED<br>
port=2,FXS FAILED<br>port=3,FXS FAILED<br>port=4,FXS FAILED<br>port=5,none<br>port=6,none<br>port=7,none<br>port=8,none<br>port=9,none<br>port=10,none<br>port=11,none<br>port=12,none<br>port=13,FXO<br>port=14,FXO<br>port=15,FXO<br>
port=16,FXO<br>port=17,FXO<br>port=18,FXO<br>port=19,FXO<br>port=20,FXO<br>port=21,FXO<br>port=22,FXO<br>port=23,FXO<br>port=24,FXO<br>[2]<br>active=yes<br>alarms=UNCONFIGURED<br>description=ZTDUMMY/1 (source: HRtimer) 1<br>
name=ZTDUMMY/1<br>manufacturer=<br>devicetype=Zaptel Dummy Timing Driver<br>location=<br>basechan=25<br>totchans=0<br>irq=0<br><br># cat extensions.conf<br>; fichier extension.conf pour asterisk<br>;<br><br>[Globals]<br>OUTBOUNDTRUNK=Zap/4<br>
<br>[general]<br>static=yes ; interidiction de modifier ce fichier<br>writeprotect=yes ; interet a trouver, proteger en ecriture<br>autofallthrough=yes ; si =no , probleme lorsque pas d'action correspondante<br>clearglobalvars=no ; les variables seront conservees<br>
<br>[default]<br>exten => s,1,Answer()<br>exten => s,n,Playback(hello-world)<br>exten => s,n,Hangup()<br><br>exten => i,1,Playback(pbx-invalid)<br>exten => i,n,SayAlpha(Mince)<br>exten => i,n,Hangup()<br>
exten => t,1,Playback(vm-goodbye)<br>exten => t,n,Hangup()<br><br>[incoming]<br><br>[from-internal]<br>include => phones<br><br>[from-pstn]<br>exten => s,1,Answer()<br>exten => s,n,goto(phones,7119,1)<br>exten => s,n,Hangup()<br>
<br>[phones]<br>exten => _00XXXXXXXXX,1,Dial(${OUTBOUNDTRUNK}/${EXTEN:1})<br>exten => _00XXXXXXXXX,n,Congestion()<br>exten => _00XXXXXXXXX,n,HangUp()<br><br>exten => _20X,n,Dial(ZAP/${EXTEN:2:1},30)<br>exten => _20X,n,Playback(fr/vm-nobodyavail)<br>
exten => _20X,n,Voicemail(${EXTEN}@default,u)<br>exten => _20X,n,HangUp()<br><br>include => default<br><br><br>;[globals]<br>;CONSOLE=Console/dsp ; Console interface for demo<br>;CONSOLE=Zap/1<br>;TRUNKMSD=1 ; MSD digits to strip (usually 1 or 0)<br>
<br>[from-sip]<br>;exten => 520,1,Dial(SIP/520,15,tr) ; hardphone IP<br>;exten => _0.,1,Dial(Zap/4/${EXTEN},45,tr) ; n° commancant par 0<br>;exten => 521,1,Dial(SIP/521,15,tr) ; softphone IP<br><br>[FXO]<br>; exten => s,1,Goto(context,extension,priorite)<br>
;exten => s,1,Goto(from-sip,521,1)<br><br>Can you help me.<br>Thanks <br>Anne sophie<br><br>