PDA

Voir la version complète : Configuration Asterisk avec TDM410P



Keisuke
27/12/2011, 00h37
Bonjour à tous.

Je tiens à préciser que je suis débutant (ainsi j'aimerais apprendre), de plus, j'ai chercher dans les Topics existants des solutions en vain...

Donc, voilà, ma configuration (Basé sur elastix):
- Asterisk: 1.8.7.0
- Dahdi: 2.5.0
- TDM410: 1FXO / 1FXS

Je vais énoncer mon soucis, et pars la suite, je collerais les contenus des fichiers de configuration.
J'aimerais donc, avoir l'arrivé FT branché sur mon serveur, ainsi que le telephone de la maison aussi. Que je puisse passé un appel "normal" depuis le telephone de la maison, ainsi que de recevoir ces appels. De plus, j'aimerais (quand activer), basculer directement sur une boite vocale, ou IVR.... (Donc pouvoir "intercepter" les appels entrant via le serveur.)



DAHDI Tools Version - 2.2.1.1

DAHDI Version: 2.5.0
Echo Canceller(s): HWEC, MG2
Configuration
======================
Channel map:
Channel 01: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 01)
Channel 04: FXO Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 04)
2 channels to configure.
Setting echocan for channel 1 to mg2
Setting echocan for channel 4 to mg2




# Span 1: WCTDM/0 "Wildcard TDM410P" (MASTER)
fxsks=1
echocanceller=mg2,1
# channel 2, WCTDM/0/1, no module.
# channel 3, WCTDM/0/2, no module.
fxoks=4
echocanceller=mg2,4

# Global data

loadzone = fr
defaultzone = fr





; Span 1: WCTDM/0 "Wildcard TDM410P" (MASTER)
;;; line="1 WCTDM/0/0 FXSKS (EC: MG2 - INACTIVE)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-zaptel
channel => 1

;;; line="4 WCTDM/0/3 FXOKS (EC: MG2 - INACTIVE)"
signalling=fxo_ks
callerid="Channel 4" <4004>
mailbox=4004
group=4
context=from-internal
immediate=no
channel => 4




[trunkgroups]

[channels]
context=from-zaptel
signalling=fxs_ks
rxwink=300 ; Atlas seems to use long (250ms) winks
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
faxdetect=incoming
echotraining=800
rxgain=0.0
txgain=0.0
callgroup=1
pickupgroup=1
relaxdtmf=yes

dahdichan=1

;Uncomment these lines if you have problems with the disconection of your analog lines
busydetect=yes
busycount=3


immediate=no

#include dahdi-channels.conf
#include chan_dahdi_additional.conf






;;;;;;[4001]
signalling=fxs_ks
pickupgroup=
mailbox=4001@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
context=from-zaptel
callprogress=no
callgroup=
callerid=device <4001>
busydetect=no
busycount=7
accountcode=
channel=>1

;;;;;;[4004]
signalling=fxo_ks
pickupgroup=
mailbox=4004@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
context=from-internal
callprogress=no
callgroup=
callerid=device <4004>
busydetect=no
busycount=7
accountcode=
channel=>4


Puis dans asterisk:


asterisk*CLI> module load chan_dahdi.so
Loaded chan_dahdi.so
== Registered application 'DAHDISendKeypadFacility'
== Parsing '/etc/asterisk/chan_dahdi.conf': == Found
== Parsing '/etc/asterisk/dahdi-channels.conf': == Found
== Parsing '/etc/asterisk/chan_dahdi_additional.conf': == Found
== Parsing '/etc/asterisk/users.conf': == Found
asterisk*CLI> [Dec 26 23:27:21] WARNING[26986]: chan_dahdi.c:12515 mkintf: Attempt to configure channel 1 with signaling FXS Kewlstart ignored because it is already configured to be FXS Kewlstart.
[Dec 26 23:27:21] WARNING[26986]: chan_dahdi.c:7745 handle_alarms: Detected alarm on channel 1: Red Alarm
[Dec 26 23:27:21] WARNING[26986]: chan_dahdi.c:12515 mkintf: Attempt to configure channel 1 with signaling FXS Kewlstart ignored because it is already configured to be FXS Kewlstart.
[Dec 26 23:27:21] WARNING[26986]: chan_dahdi.c:12515 mkintf: Attempt to configure channel 1 with signaling FXO Kewlstart ignored because it is already configured to be FXS Kewlstart.
asterisk*CLI> [Dec 26 23:27:21] WARNING[26986]: chan_dahdi.c:17756 process_dahdi: Ignoring any changes to 'userbase' (on reload) at line 23.
[Dec 26 23:27:21] WARNING[26986]: chan_dahdi.c:7745 handle_alarms: Detected alarm on channel 1: Red Alarm
-- Registered channel 1, FXS Kewlstart signalling
-- Automatically generated pseudo channel
asterisk*CLI> [Dec 26 23:27:21] WARNING[26986]: chan_dahdi.c:17756 process_dahdi: Ignoring any changes to 'vmsecret' (on reload) at line 31.
[Dec 26 23:27:21] WARNING[26986]: chan_dahdi.c:17756 process_dahdi: Ignoring any changes to 'userbase' (on reload) at line 23.
[Dec 26 23:27:21] WARNING[26986]: chan_dahdi.c:17756 process_dahdi: Ignoring any changes to 'hassip' (on reload) at line 35.
asterisk*CLI> [Dec 26 23:27:21] WARNING[26986]: chan_dahdi.c:17756 process_dahdi: Ignoring any changes to 'hasiax' (on reload) at line 39.
[Dec 26 23:27:21] WARNING[26986]: chan_dahdi.c:17756 process_dahdi: Ignoring any changes to 'vmsecret' (on reload) at line 31.
[Dec 26 23:27:21] WARNING[26986]: chan_dahdi.c:17756 process_dahdi: Ignoring any changes to 'hassip' (on reload) at line 35.
asterisk*CLI> [Dec 26 23:27:21] WARNING[26986]: chan_dahdi.c:17756 process_dahdi: Ignoring any changes to 'hasmanager' (on reload) at line 47.
[Dec 26 23:27:21] WARNING[26986]: chan_dahdi.c:17756 process_dahdi: Ignoring any changes to 'hasiax' (on reload) at line 39.
[Dec 26 23:27:21] WARNING[26986]: chan_dahdi.c:12515 mkintf: Attempt to configure channel 1 with signaling Unknown signalling -1 ignored because it is already configured to be FXS Kewlstart.
asterisk*CLI> [Dec 26 23:27:21] WARNING[26986]: chan_dahdi.c:7745 handle_alarms: Detected alarm on channel 1: Red Alarm
[Dec 26 23:27:21] WARNING[26986]: chan_dahdi.c:17756 process_dahdi: Ignoring any changes to 'hasmanager' (on reload) at line 47.
[Dec 26 23:27:21] WARNING[26986]: chan_dahdi.c:12515 mkintf: Attempt to configure channel 1 with signaling Unknown signalling -1 ignored because it is already configured to be FXS Kewlstart.
[Dec 26 23:27:21] WARNING[26986]: chan_dahdi.c:7745 handle_alarms: Detected alarm on channel 1: Red Alarm
-- Registered channel 1, FXS Kewlstart signalling
== Registered channel type 'DAHDI' (DAHDI Telephony Driver w/PRI & MFC/R2)
asterisk*CLI> [Dec 26 23:27:21] ERROR[26986]: data.c:542 __ast_data_register: The node 'status' was already registered. We were unable to register 'asterisk/channel/dahdi/status' for registrar 'chan_dahdi.c'.
== Registered application 'DAHDIAcceptR2Call'
[Dec 26 23:27:21] ERROR[26986]: data.c:542 __ast_data_register: The node 'status' was already registered. We were unable to register 'asterisk/channel/dahdi/status' for registrar 'chan_dahdi.c'.
== Manager registered action DAHDITransfer
== Manager registered action DAHDIHangup
== Manager registered action DAHDIDialOffhook
== Manager registered action DAHDIDNDon
== Manager registered action DAHDIDNDoff
== Manager registered action DAHDIShowChannels
== Manager registered action DAHDIRestart
Loaded chan_dahdi.so => (DAHDI Telephony Driver w/PRI & MFC/R2)




asterisk*CLI> dahdi show channels
Chan Extension Context Language MOH Interpret Blocked State
pseudo default default In Service
1 from-zaptel default In Service
4 from-internal default In Service



Je pense ne rien oublier... mais dite moi, s'il manque une info.

Lors de mes Tests:
- Je compose le "4001" depuis un Telephone IP, cela me dis: "Unable to create channel of type 'DAHDI' (cause 34 - Circuit/channel congestion)
app_dial.c: == Everyone is busy/congested at this time (1:0/1/0)"
- Je compose le "4004" depuis une telephone IP, cela fait sonner le telephone interne de la maison. "- Called DAHDI/4
-- DAHDI/4-1 is ringing"

- Je passe un appel de l'exterieur vers le numéro de la maison, ca sonne dans mon telephone, mais ne réagi a rien dans la maison, ou le serveur...
(Aucun dahdi start...)
- Je passe un appel vers l'exterieur avec le telephone interne, le serveur capte le numéro, mais n'arrive pas a le joindre. ("Starting simple switch on 'DAHDI/4-1'"; "Dial("DAHDI/4-1", "DAHDI/1/xxxxxxxxxx,300,r")" ; "Unable to create channel of type 'DAHDI' (cause 34 - Circuit/channel congestion)")

Voilà.

Merci d'avance de vos réponses éclairé.
Joyeuses fêtes !

@+
Keisuke