[Elastix General-es] Problemas con las Outbound routes en salidas analogicas ATCOM AX1600P/800P / elastix-2.2.0

Moi Serrano moi3020 en gmail.com
Mie Mar 28 03:39:26 EDT 2012


Fallo salida dahdi
Hola chicos Feliz dia, tengo un pequeno dilema de instalacion que puede ser
una novatada, pero ya que he hecho pruebas diferentes y nada me ha
funcionado aun les comento para ver si me pueden ayudar. El problema es con
los outbound routes siempre me da bussy todas las lineas.
hoy día, hice todas estas pruebas, lei en el foro un post acerca de un caso
similar en el que el compañero soluciono su caso, como habia borrado el
zap/0 al inicio de la configuración, y le daba el error similar, entonces
borro todo los troncales y las rutas de salida y las creo de nuevo desde
cero..

Como soy medio exagerada, le hice la prueba, detectando la tarjeta de cero
para que me pusiera los valores por defecto del hardware, borre todas las
rutas de salidas y cree un troncal zap/0 uno Zap/1 para el g1 y por ultimo
cree la ruta de salida local con el DIAL PATTERNS

9|.  y
9|XXXXXXXX
tambien lo probe con otros prefijos de salida como 5|XXXXXXXX
y lo coloque con la troncal g1 que es la que cree con Zap/1

Adjunto el error, lo intente tambien colocandole para la salida 5|XXXXXXXX
y reconoce la troncal pero una vez que lo envia alli sale ese mismo error,
borre todo y cree las rutas de salida de cero cada vez que las hacia pero
aun no me ha funcionado
Este es el error
== Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Executing [526124389 en from-internal:1] Macro("SIP/100-00000006",
"user-callerid,SKIPTTL,") in new stack
    -- Executing [s en macro-user-callerid:1] Set("SIP/100-00000006",
"AMPUSER=100") in new stack
    -- Executing [s en macro-user-callerid:2] GotoIf("SIP/100-00000006",
"0?report") in new stack
    -- Executing [s en macro-user-callerid:3] ExecIf("SIP/100-00000006",
"1?Set(REALCALLERIDNUM=100)") in new stack
    -- Executing [s en macro-user-callerid:4] Set("SIP/100-00000006",
"AMPUSER=100") in new stack
    -- Executing [s en macro-user-callerid:5] Set("SIP/100-00000006",
"AMPUSERCIDNAME=100 master") in new stack
    -- Executing [s en macro-user-callerid:6] GotoIf("SIP/100-00000006",
"0?report") in new stack
    -- Executing [s en macro-user-callerid:7] Set("SIP/100-00000006",
"AMPUSERCID=100") in new stack
    -- Executing [s en macro-user-callerid:8] Set("SIP/100-00000006",
"CALLERID(all)="100 master" <100>") in new stack
    -- Executing [s en macro-user-callerid:9] ExecIf("SIP/100-00000006",
"0?Set(CHANNEL(language)=)") in new stack
    -- Executing [s en macro-user-callerid:10] GotoIf("SIP/100-00000006",
"1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s en macro-user-callerid:19] Set("SIP/100-00000006",
"CALLERID(number)=100") in new stack
    -- Executing [s en macro-user-callerid:20] Set("SIP/100-00000006",
"CALLERID(name)=100 master") in new stack
    -- Executing [s en macro-user-callerid:21] NoOp("SIP/100-00000006", "Using
CallerID "100 master" <100>") in new stack
    -- Executing [526124389 en from-internal:2] NoOp("SIP/100-00000006",
"Calling Out Route: local") in new stack
    -- Executing [526124389 en from-internal:3] Set("SIP/100-00000006",
"MOHCLASS=default") in new stack
    -- Executing [526124389 en from-internal:4] Set("SIP/100-00000006",
"_NODEST=") in new stack
    -- Executing [526124389 en from-internal:5] Macro("SIP/100-00000006",
"record-enable,100,OUT,") in new stack
    -- Executing [s en macro-record-enable:1] GotoIf("SIP/100-00000006",
"1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s en macro-record-enable:4] ExecIf("SIP/100-00000006",
"0?MacroExit()") in new stack
    -- Executing [s en macro-record-enable:5] GotoIf("SIP/100-00000006",
"0?Group:OUT") in new stack
    -- Goto (macro-record-enable,s,15)
    -- Executing [s en macro-record-enable:15] GotoIf("SIP/100-00000006",
"0?IN") in new stack
    -- Executing [s en macro-record-enable:16] ExecIf("SIP/100-00000006",
"1?MacroExit()") in new stack
    -- Executing [526124389 en from-internal:6] Macro("SIP/100-00000006",
"dialout-trunk,3,26124389,") in new stack
    -- Executing [s en macro-dialout-trunk:1] Set("SIP/100-00000006",
"DIAL_TRUNK=3") in new stack
    -- Executing [s en macro-dialout-trunk:2] GosubIf("SIP/100-00000006",
"0?sub-pincheck,s,1") in new stack
    -- Executing [s en macro-dialout-trunk:3] GotoIf("SIP/100-00000006",
"0?disabletrunk,1") in new stack
    -- Executing [s en macro-dialout-trunk:4] Set("SIP/100-00000006",
"DIAL_NUMBER=26124389") in new stack
    -- Executing [s en macro-dialout-trunk:5] Set("SIP/100-00000006",
"DIAL_TRUNK_OPTIONS=trwW") in new stack
    -- Executing [s en macro-dialout-trunk:6] Set("SIP/100-00000006",
"OUTBOUND_GROUP=OUT_3") in new stack
    -- Executing [s en macro-dialout-trunk:7] GotoIf("SIP/100-00000006",
"1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s en macro-dialout-trunk:9] GotoIf("SIP/100-00000006",
"0?skipoutcid") in new stack
    -- Executing [s en macro-dialout-trunk:10] Set("SIP/100-00000006",
"DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s en macro-dialout-trunk:11] Macro("SIP/100-00000006",
"outbound-callerid,3") in new stack
    -- Executing [s en macro-outbound-callerid:1] ExecIf("SIP/100-00000006",
"0?Set(CALLERPRES()=)") in new stack
    -- Executing [s en macro-outbound-callerid:2] ExecIf("SIP/100-00000006",
"0?Set(REALCALLERIDNUM=100)") in new stack
    -- Executing [s en macro-outbound-callerid:3] GotoIf("SIP/100-00000006",
"1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,6)
    -- Executing [s en macro-outbound-callerid:6] Set("SIP/100-00000006",
"USEROUTCID=") in new stack
    -- Executing [s en macro-outbound-callerid:7] Set("SIP/100-00000006",
"EMERGENCYCID=") in new stack
    -- Executing [s en macro-outbound-callerid:8] Set("SIP/100-00000006",
"TRUNKOUTCID=") in new stack
    -- Executing [s en macro-outbound-callerid:9] GotoIf("SIP/100-00000006",
"1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,12)
    -- Executing [s en macro-outbound-callerid:12] ExecIf("SIP/100-00000006",
"0?Set(CALLERID(all)=)") in new stack
    -- Executing [s en macro-outbound-callerid:13] ExecIf("SIP/100-00000006",
"0?Set(CALLERID(all)=)") in new stack
    -- Executing [s en macro-outbound-callerid:14] ExecIf("SIP/100-00000006",
"0?Set(CALLERID(all)=)") in new stack
    -- Executing [s en macro-outbound-callerid:15] ExecIf("SIP/100-00000006",
"0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
    -- Executing [s en macro-dialout-trunk:12] GosubIf("SIP/100-00000006",
"0?sub-flp-3,s,1") in new stack
    -- Executing [s en macro-dialout-trunk:13] Set("SIP/100-00000006",
"OUTNUM=26124389") in new stack
    -- Executing [s en macro-dialout-trunk:14] Set("SIP/100-00000006",
"custom=DAHDI/g1") in new stack
    -- Executing [s en macro-dialout-trunk:15] ExecIf("SIP/100-00000006",
"0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack
    -- Executing [s en macro-dialout-trunk:16] Macro("SIP/100-00000006",
"dialout-trunk-predial-hook,") in new stack
    -- Executing [s en macro-dialout-trunk-predial-hook:1]
MacroExit("SIP/100-00000006", "") in new stack
    -- Executing [s en macro-dialout-trunk:17] GotoIf("SIP/100-00000006",
"0?bypass,1") in new stack
    -- Executing [s en macro-dialout-trunk:18] GotoIf("SIP/100-00000006",
"0?customtrunk") in new stack
    -- Executing [s en macro-dialout-trunk:19] Dial("SIP/100-00000006",
"DAHDI/g1/26124389,300,") in new stack
    -- Called DAHDI/g1/26124389
    -- Hanging up on 'DAHDI/1-1'
    -- Hungup 'DAHDI/1-1'
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [s en macro-dialout-trunk:20] NoOp("SIP/100-00000006", "Dial
failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 0")
in new stack
    -- Executing [s en macro-dialout-trunk:21] Goto("SIP/100-00000006",
"s-CHANUNAVAIL,1") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
    -- Executing [s-CHANUNAVAIL en macro-dialout-trunk:1]
Set("SIP/100-00000006", "RC=0") in new stack
    -- Executing [s-CHANUNAVAIL en macro-dialout-trunk:2]
Goto("SIP/100-00000006", "0,1") in new stack
    -- Goto (macro-dialout-trunk,0,1)
    -- Executing [0 en macro-dialout-trunk:1] Goto("SIP/100-00000006",
"continue,1") in new stack
    -- Goto (macro-dialout-trunk,continue,1)
    -- Executing [continue en macro-dialout-trunk:1]
GotoIf("SIP/100-00000006", "1?noreport") in new stack
    -- Goto (macro-dialout-trunk,continue,3)
    -- Executing [continue en macro-dialout-trunk:3] NoOp("SIP/100-00000006",
"TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 0 - failing through to
other trunks") in new stack
    -- Executing [continue en macro-dialout-trunk:4] Set("SIP/100-00000006",
"CALLERID(number)=100") in new stack
    -- Executing [526124389 en from-internal:7] Macro("SIP/100-00000006",
"outisbusy,") in new stack
    -- Executing [s en macro-outisbusy:1] Progress("SIP/100-00000006", "") in
new stack
    -- Executing [s en macro-outisbusy:2] GotoIf("SIP/100-00000006",
"0?emergency,1") in new stack
    -- Executing [s en macro-outisbusy:3] GotoIf("SIP/100-00000006",
"0?intracompany,1") in new stack
    -- Executing [s en macro-outisbusy:4] Playback("SIP/100-00000006",
"all-circuits-busy-now&pls-try-call-later, noanswer") in new stack
    -- <SIP/100-00000006> Playing 'all-circuits-busy-now.gsm' (language
'es')
    -- <SIP/100-00000006> Playing 'pls-try-call-later.gsm' (language 'es')
    -- Executing [s en macro-outisbusy:5] Congestion("SIP/100-00000006", "20")
in new stack
  == Spawn extension (macro-outisbusy, s, 5) exited non-zero on
'SIP/100-00000006' in macro 'outisbusy'
  == Spawn extension (from-internal, 526124389, 7) exited non-zero on
'SIP/100-00000006'
    -- Executing [h en from-internal:1] Macro("SIP/100-00000006",
"hangupcall") in new stack
    -- Executing [s en macro-hangupcall:1] GotoIf("SIP/100-00000006",
"1?endmixmoncheck") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s en macro-hangupcall:9] NoOp("SIP/100-00000006", "End of
MIXMON check") in new stack
    -- Executing [s en macro-hangupcall:10] GotoIf("SIP/100-00000006",
"1?nomeetmemon") in new stack
    -- Goto (macro-hangupcall,s,15)
    -- Executing [s en macro-hangupcall:15] NoOp("SIP/100-00000006",
"MEETME_RECORDINGFILE=") in new stack
    -- Executing [s en macro-hangupcall:16] GotoIf("SIP/100-00000006",
"1?noautomon") in new stack
    -- Goto (macro-hangupcall,s,18)
    -- Executing [s en macro-hangupcall:18] NoOp("SIP/100-00000006",
"TOUCH_MONITOR_OUTPUT=") in new stack
    -- Executing [s en macro-hangupcall:19] GotoIf("SIP/100-00000006",
"1?noautomon2") in new stack
    -- Goto (macro-hangupcall,s,25)
    -- Executing [s en macro-hangupcall:25] NoOp("SIP/100-00000006",
"MONITOR_FILENAME=") in new stack
    -- Executing [s en macro-hangupcall:26] GotoIf("SIP/100-00000006",
"1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,29)
    -- Executing [s en macro-hangupcall:29] GotoIf("SIP/100-00000006",
"1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,32)
    -- Executing [s en macro-hangupcall:32] GotoIf("SIP/100-00000006",
"1?theend") in new stack
    -- Goto (macro-hangupcall,s,34)
    -- Executing [s en macro-hangupcall:34] Hangup("SIP/100-00000006", "") in
new stack
  == Spawn extension (macro-hangupcall, s, 34) exited non-zero on
'SIP/100-00000006' in macro 'hangupcall'
  == Spawn extension (from-internal, h, 1) exited non-zero on
'SIP/100-00000006'
Prueba 1: desconecta la linea analogica y la probe con un telefonito
regular y no hubo problema, probe con otras lineas analogicas (otros
numeros) e igual.
Prueba 2: en un post de la lista lei y en elastixwitot thears que cambiara
el g1,g2 por 1 o 2 respectivamente en la troncal que creo para la salida,
lo hice e igual.
prueba 3: en el dahdi.conf por si era el caso dedeteccion de colgado
descomente detectbusy y busycount en 6
tambien intente colocando
;answeronpolarityswitch=no  ; estas son para las lineas que no detectan
cambio de polaridad
;hanguponpolarityswitch=no   ; estas son para las lineas que no detectan
cambio de polaridad

Con la entrada no tengo problema, la detecta y me la envia a la extension
configurada, esta es la distribucion que tengo con una tarjeta ATCOM
AX1600P/800P  de 8 puertos. he recreado varias veces el procedimiento pero
aun nada.
[root en PCD dahdi]# rpm -qa | grep elastix | sort
elastix-2.2.0-14
elastix-a2billing-1.8.1-16
elastix-addons-2.2.0-4
elastix-agenda-2.2.0-5
elastix-asterisk-sounds-1.2.3-1
elastix-email_admin-2.2.0-9
elastix-extras-2.0.4-4
elastix-fax-2.2.0-4
elastix-firstboot-2.2.0-5
elastix-im-2.0.4-2
elastix-my_extension-2.2.0-5
elastix-pbx-2.2.0-14
elastix-reports-2.2.0-6
elastix-security-2.2.0-7
elastix-system-2.2.0-14
elastix-vtigercrm-5.1.0-8
redhat-logos-4.9.99-11elastix
[root en PCD dahdi]# rpm -qa | grep freePBX
freePBX-2.8.1-7
[root en Nazarit dahdi]#


chan_dahdi.conf
[channels]
context=from-pstn
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=6.0
txgain=6.0
callgroup=1
pickupgroup=1
relaxdtmf=yes

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

immediate=no

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

Tendra esto que ver con el archino chan_dahdi.conf.elastixsave que se
encuentra ahora tambien, no lo tenia la version 1.6

dahdi-channels.con
; Span 1: ATCOM-1600P/16 "ATCOM AX1600P/800P Board 17" (MASTER)
;;; line="1 ATCOM-1600P/16/0 FXSKS  (In use) (SWEC: OSLEC)"
signalling=fxs_ks
callerid=asreceived
group=1
context=from-pstn
channel => 1
callerid=
group=
context=default

;;; line="2 ATCOM-1600P/16/1 FXSKS  (In use) (SWEC: OSLEC)"
signalling=fxs_ks
callerid=asreceived
group=1
context=from-pstn
channel => 2
callerid=
group=
context=default

;;; line="3 ATCOM-1600P/16/2 FXSKS  (In use) (SWEC: OSLEC)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 3
callerid=
group=
context=default

;;; line="4 ATCOM-1600P/16/3 FXSKS  (In use) (SWEC: OSLEC)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 4
callerid=
group=
context=default

;;; line="5 ATCOM-1600P/16/4 FXSKS  (In use) (SWEC: OSLEC)"
signalling=fxs_ks
callerid=asreceived
group=2
context=from-zaptel
channel => 5
callerid=
group=
context=default

;;; line="6 ATCOM-1600P/16/5 FXSKS  (In use) (SWEC: OSLEC)"
signalling=fxs_ks
callerid=asreceived
group=3
context=from-zaptel
channel => 6
callerid=
group=
context=default

;;; line="7 ATCOM-1600P/16/6 FXSKS  (In use) (SWEC: OSLEC)"
signalling=fxs_ks
callerid=asreceived
group=4
context=from-zaptel
channel => 7
callerid=
group=
context=default

;;; line="8 ATCOM-1600P/16/7 FXSKS  (In use) (SWEC: OSLEC)"
signalling=fxs_ks
callerid=asreceived
group=5
context=from-zaptel
channel => 8
callerid=
group=
context=default

dahdi show channels
   Chan Extension  Context         Language   MOH Interpret
Blocked    State
 pseudo            default
default                         In Service
      1            from-pstn                default
In Service
      2            from-pstn                default
In Service
      3            from-pstn                default
In Service
      4            from-pstn                default
In Service
      5            from-zaptel              default
In Service
      6            from-zaptel              default
In Service
      7            from-zaptel              default
In Service
      8            from-zaptel              default
In Service

otra prueba fue que hice fue agregar en el chan_dahdi.conf
answeronpolarityswitch=no  ; estas son para las lineas que no detectan
cambio de polaridad
hanguponpolarityswitch=no   ; estas son para las lineas que no detectan
cambio de polaridad

que fue otra recomemdacion que ley entre foro y san google, pero esta nino
se niega a hacerme caso y sacar la llamadas!!!

en el system.conf
 Autogenerated by /usr/sbin/dahdi_genconf on Mon Mar 26 19:31:30 2012
# 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: ATCOM-1600P/16 "ATCOM AX1600P/800P Board 17" (MASTER)
fxsks=1
echocanceller=oslec,1
fxsks=2
echocanceller=oslec,2
fxsks=3
echocanceller=oslec,3
fxsks=4
echocanceller=oslec,4
fxsks=5
echocanceller=oslec,5
fxsks=6
echocanceller=oslec,6
fxsks=7
echocanceller=oslec,7
fxsks=8
echocanceller=oslec,8
# channel 9, ATCOM-1600P/16/8, no module.
# channel 10, ATCOM-1600P/16/9, no module.
# channel 11, ATCOM-1600P/16/10, no module.
# channel 12, ATCOM-1600P/16/11, no module.
# channel 13, ATCOM-1600P/16/12, no module.
# channel 14, ATCOM-1600P/16/13, no module.
# channel 15, ATCOM-1600P/16/14, no module.
# channel 16, ATCOM-1600P/16/15, no module.

# Global data

loadzone    = us
defaultzone   = us

-----



-- 
*M Serrano Perez*
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: http://lists.elastix.org/pipermail/general-es/attachments/20120328/dda5e4af/attachment-0001.html 


Más información sobre la lista de distribución General-es