La configuration de DAHDI canaux
J'ai installé dahdi 2.7 et asterisk 11 sur Ubuntu 12.04.2 LTS. Je vais avoir un moment difficile de la configuration d'un DAHDI canal. J'ai un AEX 808 carte de Digium, l'un avec 8 ports FXO par ma ligne téléphonique est branché sur le port 1 de la carte.
J'ai suivi exactement les mêmes étapes dans http://www.voip-info.org/wiki/view/DAHDI
en vertu de l'Installation de l'Exemple de la section sauf que j'ai édité dahdi_channels.conf pour pointer vers le même numéro de groupe comme le numéro de canal pour les canaux 2 à 8, comme je le pensais astérisque essayait de faire un appel à partir d'un canal autre que le canal 1 étant donné qu'ils étaient déjà dans le groupe=0.
Voici mes fichiers de config:
chan_dahdi.conf:
[trunkgroups]
; No trunk groups are needed in this configuration.
[channels]
#include /etc/asterisk/dahdi-channels.conf
; The channels context is used when defining channels using the
; older deprecated method. Don't use this as a section name.
;[phone](!)
;
; A template to hold common options for all phones.
;
usecallerid = yes
hidecallerid = no
callwaiting = no
;threewaycalling = yes
transfer = yes
echocancel = yes
echotraining = yes
immediate = no
dahdi_channels.conf:
; Autogenerated by /usr/sbin/dahdi_genconf on Thu Aug 8 15:55:40 2013
; If you edit this file and execute /usr/sbin/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/0 "Wildcard AEX800" (MASTER)
;;; line="1 WCTDM/0/0 FXSKS (In use) (EC: VPMOCT032 - INACTIVE)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 1
callerid=
group=
context=default
;;; line="2 WCTDM/0/1 FXSKS (In use) (EC: VPMOCT032 - INACTIVE)"
signalling=fxs_ks
callerid=asreceived
group=2
context=from-pstn
channel => 2
callerid=
group=
context=default
;;; line="3 WCTDM/0/2 FXSKS (In use) (EC: VPMOCT032 - INACTIVE)"
signalling=fxs_ks
callerid=asreceived
group=3
context=from-pstn
channel => 3
callerid=
group=
context=default
;;; line="4 WCTDM/0/3 FXSKS (In use) (EC: VPMOCT032 - INACTIVE)"
signalling=fxs_ks
callerid=asreceived
group=4
context=from-pstn
channel => 4
callerid=
group=
context=default
;;; line="5 WCTDM/0/4 FXSKS (In use) (EC: VPMOCT032 - INACTIVE)"
signalling=fxs_ks
callerid=asreceived
group=5
context=from-pstn
channel => 5
callerid=
group=
context=default
;;; line="6 WCTDM/0/5 FXSKS (In use) (EC: VPMOCT032 - INACTIVE)"
signalling=fxs_ks
callerid=asreceived
group=6
context=from-pstn
channel => 6
callerid=
group=
context=default
;;; line="7 WCTDM/0/6 FXSKS (In use) (EC: VPMOCT032 - INACTIVE)"
signalling=fxs_ks
callerid=asreceived
group=7
context=from-pstn
channel => 7
callerid=
group=
context=default
;;; line="8 WCTDM/0/7 FXSKS (In use) (EC: VPMOCT032 - INACTIVE)"
signalling=fxs_ks
callerid=asreceived
group=8
context=from-pstn
channel => 8
callerid=
group=
context=default
/etc/dahdi/système.conf:
# Autogenerated by /usr/sbin/dahdi_genconf on Thu Aug 8 15:55:40 2013
# If you edit this file and execute /usr/sbin/dahdi_genconf again,
# your manual changes will be LOST.
# Dahdi Configuration File
#
# This file is parsed by the Dahdi Configurator, dahdi_cfg
#
# Span 1: WCTDM/0 "Wildcard AEX800" (MASTER)
fxsks=1
echocanceller=mg2,1
fxsks=2
echocanceller=mg2,2
fxsks=3
echocanceller=mg2,3
fxsks=4
echocanceller=mg2,4
fxsks=5
echocanceller=mg2,5
fxsks=6
echocanceller=mg2,6
fxsks=7
echocanceller=mg2,7
fxsks=8
echocanceller=mg2,8
Avec ces fichiers de config, quand je commence à asterisk, j'ai le DAHDI les erreurs liées:
[Aug 8 15:56:26] WARNING[25198] chan_dahdi.c: Unable to specify channel 1: Device or resource busy
[Aug 8 15:56:26] ERROR[25198] chan_dahdi.c: Unable to open channel 1: Device or resource busy
[Aug 8 15:56:26] ERROR[25198] chan_dahdi.c: Unable to register channel '1'
C'est le résultat de lsdahdi de l'unix terminal:
### Span 1: WCTDM/0 "Wildcard AEX800" (MASTER)
1 FXO FXSKS (In use) (EC: VPMOCT032 - INACTIVE)
2 FXO FXSKS (In use) (EC: VPMOCT032 - INACTIVE) RED
3 FXO FXSKS (In use) (EC: VPMOCT032 - INACTIVE) RED
4 FXO FXSKS (In use) (EC: VPMOCT032 - INACTIVE) RED
5 FXO FXSKS (In use) (EC: VPMOCT032 - INACTIVE) RED
6 FXO FXSKS (In use) (EC: VPMOCT032 - INACTIVE) RED
7 FXO FXSKS (In use) (EC: VPMOCT032 - INACTIVE) RED
8 FXO FXSKS (In use) (EC: VPMOCT032 - INACTIVE) RED
Je ne sais pas pourquoi on dit "En cours d'utilisation" comme il n'y a pas d'appels actuellement en cours de traitement. Je ne sais pas si c'est la sortie par défaut pour un AEX808 carte. Comment puis-je obtenir mon DAHDI de travail avec asterisk? Ce que je fais mal?
Résultat de dahdi afficher l'état dans asterisk:
astersik*CLI> dahdi show status
No such command 'dahdi show status' (type 'core show help dahdi show' for other possible commands)
Sortie de dahdi_cfg -vvvv:
DAHDI Tools Version - 2.7.0-rc1
DAHDI Version: 2.7.0-rc1
Echo Canceller(s): HWEC
Configuration
======================
Channel map:
Channel 01: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 01)
Channel 02: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 02)
Channel 03: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 03)
Channel 04: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 04)
Channel 05: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 05)
Channel 06: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 06)
Channel 07: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 07)
Channel 08: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 08)
8 channels to configure.
Setting echocan for channel 1 to mg2
Setting echocan for channel 2 to mg2
Setting echocan for channel 3 to mg2
Setting echocan for channel 4 to mg2
Setting echocan for channel 5 to mg2
Setting echocan for channel 6 to mg2
Setting echocan for channel 7 to mg2
Setting echocan for channel 8 to mg2
Toute aide serait appréciée.
Merci d'avance!
dahdi show status
dans asterisk ?veuillez vérifier mes modifications.
Eh bien, il semble que dahdi n'est pas correctement installé dans Asterisk:/, mais vous pouvez consulter ce lien :forums.asterisk.org/viewtopic.php?f=1&t=84728
OriginalL'auteur Sapphire | 2013-08-08
Vous devez vous connecter pour publier un commentaire.
Contrôler la sortie de:
Donc dahdi est ok. Vérifiez que astérisque utilisateur de pouvoir accéder à /dev/dahdi/*, si il est ok - essayez de recompiler astérisque
Oui, astérisque utilisateur et /dev/dahdi propriétaire sont les mêmes. Voulez-vous dire que je devrais réinstaller astérisque?
J'ai essayé de recompiler l'aide de ces étapes...toujours dit "Impossible de configurer le canal 1 - Périphérique ou ressource occupé"- ./configure make make install
digium offrir un soutien pour les cartes. Je pense que vous avez besoin de contacter digium de soutien,ils peuvent vous donner plus d'informations. Je suis désolé, il n'y a pas remotly deviner ce que vous la motoneige mal se basant sur l'information que vous avez fournie.
OriginalL'auteur arheops
Après beaucoup de recherches, j'ai réalisé que DAHDI n'a pas été installée correctement. J'ai enlevé DAHDI et de l'astérisque par le système et réinstallé tout pour le faire fonctionner.
OriginalL'auteur Sapphire