Actualizando (aunque creo que solo soy yo)
Revisando el tema, hize uso de las siguientes configuraciones (Borre todo y reconfigure) y creo que quedo mas Limpio:
#chan_dahdi.conf
; Auto-generated by /usr/sbin/hardware_detector
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
relaxdtmf=yes
rxgain=0.0
txgain=0.0
immediate=no
context=pstn
group=0
signalling=mfcr2
mfcr2_variant=mx
mfcr2_get_ani_first=no
mfcr2_max_ani=10
mfcr2_max_dnis=4
mfcr2_category=national_subscriber
mfcr2_call_files=yes
mfcr2_logdir=span1
mfcr2_logging=all
mfcr2_mfback_timeout=-1
mfcr2_metering_pulse_timeout=-1
channel => 1-15,17-31
;incluir la configuracion de dahdi-channels
#include dahdi-channels.conf
En dahdi-channels.conf
; Autogenerated by /usr/sbin/dahdi_genconf on Tue Sep 30 16:34:48 2014
; 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: WPE1/0 "wanpipe1 card 0" (MASTER)
signalling=mfcr2
mfcr2_variant=mx
mfcr2_get_ani_first=no
mfcr2_max_ani=10
mfcr2_max_dnis=4
mfcr2_category=national_subscriber
mfcr2_mfback_timeout=-1
mfcr2_metering_pulse_timeout=-1
mfcr2_forced_release=no
context=from-pstn
group=0
channel => 1-15,17-31
En system.conf
This file is parsed by the Dahdi Configurator, dahdi_cfg
#
Span 1: WPE1/0 "wanpipe1 card 0" (MASTER)
span=1,1,0,cas,hdb3
cas=1-15:1101
cas=17-31:1101
echocanceller=mg2,1-15,17-31
termtype: te
#bchan=1-15,17-31
#dchan=16
hardhdlc=16
Global data
loadzone = mx
defaultzone = mx
Y por ultimo, en wanpipe1.conf (lo que me faltaba)
#================================================
WANPIPE1 Configuration File
#================================================
#
Date: Wed Dec 6 20:29:03 UTC 2006
#
Note: This file was generated automatically
by /usr/local/sbin/setup-sangoma program.
#
If you want to edit this file, it is
recommended that you use wancfg program
to do so.
#================================================
Sangoma Technologies Inc.
#================================================
wanpipe1 = WAN_AFT_TE1, Comment
w1g1 = wanpipe1, , TDM_VOICE, Comment
CARD_TYPE = AFT
S514CPU = A
CommPort = PRI
AUTO_PCISLOT = NO
PCISLOT = 4
PCIBUS = 3
FE_MEDIA = E1
FE_LCODE = HDB3
FE_FRAME = NCRC4
FE_LINE = 1
TE_CLOCK = NORMAL
TE_REF_CLOCK = 0
TE_HIGHIMPEDANCE = NO
TE_SIG_MODE = CAS
TE_RX_SLEVEL = 430
HW_RJ45_PORT_MAP = DEFAULT
LBO = 120OH
FE_TXTRISTATE = NO
MTU = 1500
UDPPORT = 9000
TTL = 255
IGNORE_FRONT_END = NO
TDMV_SPAN = 1
TDMV_DCHAN = 16
TE_AIS_MAINTENANCE = NO #NO: defualt YES: Start port in AIS Blue Alarm and keep line down
#wanpipemon -i w1g1 -c Ttx_ais_off to disable AIS maintenance mode
#wanpipemon -i w1g1 -c Ttx_ais_on to enable AIS maintenance mode
TDMV_HW_DTMF = NO # YES: receive dtmf events from hardware
TDMV_HW_FAX_DETECT = NO # YES: receive fax 1100hz events from hardware
HWEC_OPERATION_MODE = OCT_NORMAL # OCT_NORMAL: echo cancelation enabled with nlp (default)
OCT_SPEECH: improves software tone detection by disabling NLP (echo possible)
OCT_NO_ECHO:disables echo cancelation but allows VQE/tone functions.
HWEC_DTMF_REMOVAL = NO # NO: default YES: remove dtmf out of incoming media (must have hwdtmf enabled)
HWEC_NOISE_REDUCTION = NO # NO: default YES: reduces noise on the line - could break fax
HWEC_ACUSTIC_ECHO = NO # NO: default YES: enables acustic echo cancelation
HWEC_NLP_DISABLE = NO # NO: default YES: guarantees software tone detection (possible echo)
HWEC_TX_AUTO_GAIN = 0 # 0: disable -40-0: default tx audio level to be maintained (-20 default)
HWEC_RX_AUTO_GAIN = 0 # 0: disable -40-0: default tx audio level to be maintained (-20 default)
HWEC_TX_GAIN = 0 # 0: disable -24-24: db values to be applied to tx signal
HWEC_RX_GAIN = 0 # 0: disable -24-24: db values to be applied to tx signal
ACTIVE_CH = ALL
TDMV_HWEC = NO
MTU = 8
Hasta aqui, ya puedo recibir llamadas, de hecho, para los trunk segui los pasos de aqui (http://www.elastix.org/images/ehcp/guides/sangoma-a102_interfacecard_setupguide.pdf)
Lo que me queda duda es:
- ¿Como hago que las llamadas salgan por DID? Quiero destinar un DID para llamadas locales, otro para moviles y uno especial. Si hay guia, mejor.
- Al reves ¿Como configuro el DID para cada extension?
Y pues, aun no puedo sacar llamadas, lo cual se me hace raro... ¿Como puedo debuggear esto?
Las preguntas las hago porque no las he podido encontrar, ademas, me gustaria hacer una miniguia para Axtel.