[AsteriskBrasil] RES: RES: Elastix 1.6 DAHDI, delay de 1:48 minutos ao encerrar a chamada pelo sip.

Fábio Ghisleni fghisleni em gmail.com
Quinta Julho 17 16:29:32 BRT 2014


Tente o seguinte:

 

;answeronpolarityswitch=yes
;hanguponpolarityswitch=yes
immediate=no
busydetect=yes
busycount=10

 

 

De: asteriskbrasil-bounces em listas.asteriskbrasil.org
[mailto:asteriskbrasil-bounces em listas.asteriskbrasil.org] Em nome de Gino
Enviada em: quinta-feira, 17 de julho de 2014 16:10
Para: asteriskbrasil em listas.asteriskbrasil.org
Assunto: Re: [AsteriskBrasil] RES: Elastix 1.6 DAHDI, delay de 1:48 minutos
ao encerrar a chamada pelo sip.

 

Boa tarde Fábio! comentei as linhas que não estavam comentadas como você me
sugeriu mas também não obtive Resultados, Veja o meu CLI ao receber uma
chamada até seu fim:

Welcome to Elastix
----------------------------------------------------
Elastix is a product meant to be configured through a web browser.
Any changes made from within the command line may corrupt the system
configuration and produce unexpected behavior; in addition, changes
made to system files through here may be lost when doing an update.

To access your Elastix System, using a separate workstation (PC/MAC/Linux)
Open the Internet Browser using the following URL:
http://<YOUR-IP-HERE>
If you could not get a DHCP IP address please type setup and select "Network


configuration" to set up a static IP.

[root em Elastix ~]# rasterisk
Verbosity is at least 3
    -- Starting simple switch on 'DAHDI/2-1'
    -- Executing [s em from-pstn:1] NoOp("DAHDI/2-1", """ <>") in new stack
    -- Executing [s em from-pstn:2] Gosub("DAHDI/2-1",
"app-blacklist-check,s,1") in new 

stack
    -- Executing [s em app-blacklist-check:1] GotoIf("DAHDI/2-1",
"0?blacklisted") in 

new stack
    -- Executing [s em app-blacklist-check:2] Set("DAHDI/2-1",
"CALLED_BLACKLIST=1") in 

new stack
    -- Executing [s em app-blacklist-check:3] Return("DAHDI/2-1", "") in new
stack
    -- Executing [s em from-pstn:3] ExecIf("DAHDI/2-1", "1
?Set(CALLERID(name)=)") in 

new stack
    -- Executing [s em from-pstn:4] Set("DAHDI/2-1", 

"__CALLINGPRES_SV=allowed_not_screened") in new stack
    -- Executing [s em from-pstn:5] Set("DAHDI/2-1", "CALLERPRES()

=allowed_not_screened") in new stack
    -- Executing [s em from-pstn:6] Goto("DAHDI/2-1", "ivr-6,s,1") in new stack
    -- Goto (ivr-6,s,1)
    -- Executing [s em ivr-6:1] Set("DAHDI/2-1", "MSG=custom/URA") in new stack
    -- Executing [s em ivr-6:2] Set("DAHDI/2-1", "LOOPCOUNT=0") in new stack
    -- Executing [s em ivr-6:3] Set("DAHDI/2-1", "__DIR-CONTEXT=") in new stack
    -- Executing [s em ivr-6:4] Set("DAHDI/2-1", "_IVR_CONTEXT_ivr-6=") in new
stack
    -- Executing [s em ivr-6:5] Set("DAHDI/2-1", "_IVR_CONTEXT=ivr-6") in new
stack
    -- Executing [s em ivr-6:6] GotoIf("DAHDI/2-1", "0?begin") in new stack
    -- Executing [s em ivr-6:7] Answer("DAHDI/2-1", "") in new stack
    -- Executing [s em ivr-6:8] Wait("DAHDI/2-1", "1") in new stack
    -- Executing [s em ivr-6:9] Set("DAHDI/2-1", "TIMEOUT(digit)=3") in new
stack
    -- Digit timeout set to 3.000
    -- Executing [s em ivr-6:10] Set("DAHDI/2-1", "TIMEOUT(response)=10") in
new stack
    -- Response timeout set to 10.000
    -- Executing [s em ivr-6:11] Set("DAHDI/2-1", "__IVR_RETVM=") in new stack
    -- Executing [s em ivr-6:12] ExecIf("DAHDI/2-1",
"1?Background(custom/URA)") in new 

stack
    -- <DAHDI/2-1> Playing 'custom/URA.slin' (language 'en')
    -- Executing [5 em ivr-6:1] NoOp("DAHDI/2-1", "Deleting:  ") in new stack
    -- Executing [5 em ivr-6:2] Set("DAHDI/2-1", "__NODEST=") in new stack
    -- Executing [5 em ivr-6:3] Goto("DAHDI/2-1",
"from-did-direct,1938342191,1") in new 

stack
    -- Goto (from-did-direct,1938342191,1)
    -- Executing [1938342191 em from-did-direct:1] Macro("DAHDI/2-1", "exten-

vm,novm,1938342191") in new stack
    -- Executing [s em macro-exten-vm:1] Macro("DAHDI/2-1", "user-callerid,")
in new 

stack
    -- Executing [s em macro-user-callerid:1] Set("DAHDI/2-1", "AMPUSER=") in
new stack
    -- Executing [s em macro-user-callerid:2] GotoIf("DAHDI/2-1", "0?report")
in new 

stack
    -- Executing [s em macro-user-callerid:3] ExecIf("DAHDI/2-1", "1?Set

(REALCALLERIDNUM=)") in new stack
    -- Executing [s em macro-user-callerid:4] Set("DAHDI/2-1", "AMPUSER=") in
new stack
    -- Executing [s em macro-user-callerid:5] Set("DAHDI/2-1",
"AMPUSERCIDNAME=") in new 

stack
    -- Executing [s em macro-user-callerid:6] GotoIf("DAHDI/2-1", "1?report")
in new 

stack
    -- Goto (macro-user-callerid,s,10)
    -- Executing [s em macro-user-callerid:10] GotoIf("DAHDI/2-1",
"0?continue") in new 

stack
    -- Executing [s em macro-user-callerid:11] Set("DAHDI/2-1", "__TTL=64") in
new stack
    -- Executing [s em macro-user-callerid:12] GotoIf("DAHDI/2-1",
"1?continue") in new 

stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s em macro-user-callerid:19] Set("DAHDI/2-1",
"CALLERID(number)=") in 

new stack
    -- Executing [s em macro-user-callerid:20] Set("DAHDI/2-1",
"CALLERID(name)=") in 

new stack
    -- Executing [s em macro-user-callerid:21] NoOp("DAHDI/2-1", "Using
CallerID "" <>") 

in new stack
    -- Executing [s em macro-exten-vm:2] Set("DAHDI/2-1",
"RingGroupMethod=none") in new 

stack
    -- Executing [s em macro-exten-vm:3] Set("DAHDI/2-1", "VMBOX=novm") in new
stack
    -- Executing [s em macro-exten-vm:4] Set("DAHDI/2-1",
"__EXTTOCALL=1938342191") in 

new stack
    -- Executing [s em macro-exten-vm:5] Set("DAHDI/2-1", "CFUEXT=") in new
stack
    -- Executing [s em macro-exten-vm:6] Set("DAHDI/2-1", "CFBEXT=") in new
stack
    -- Executing [s em macro-exten-vm:7] Set("DAHDI/2-1", "RT=""") in new stack
    -- Executing [s em macro-exten-vm:8] Macro("DAHDI/2-1", "record-

enable,1938342191,IN") in new stack
    -- Executing [s em macro-record-enable:1] GotoIf("DAHDI/2-1", "1?check") in
new 

stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s em macro-record-enable:4] ExecIf("DAHDI/2-1",
"0?MacroExit()") in 

new stack
    -- Executing [s em macro-record-enable:5] GotoIf("DAHDI/2-1",
"0?Group:OUT") in new 

stack
    -- Goto (macro-record-enable,s,15)
    -- Executing [s em macro-record-enable:15] GotoIf("DAHDI/2-1", "1?IN") in
new stack
    -- Goto (macro-record-enable,s,20)
    -- Executing [s em macro-record-enable:20] ExecIf("DAHDI/2-1",
"1?MacroExit()") in 

new stack
    -- Executing [s em macro-exten-vm:9] Macro("DAHDI/2-1", "dial-

one,"",tTwW,1938342191") in new stack
    -- Executing [s em macro-dial-one:1] Set("DAHDI/2-1", "DEXTEN=1938342191")
in new 

stack
    -- Executing [s em macro-dial-one:2] Set("DAHDI/2-1", "DIALSTATUS_CW=") in
new stack
    -- Executing [s em macro-dial-one:3] GosubIf("DAHDI/2-1", "0?screen,1") in
new stack
    -- Executing [s em macro-dial-one:4] GosubIf("DAHDI/2-1", "0?cf,1") in new
stack
    -- Executing [s em macro-dial-one:5] GotoIf("DAHDI/2-1", "1?skip1") in new
stack
    -- Goto (macro-dial-one,s,8)
    -- Executing [s em macro-dial-one:8] GotoIf("DAHDI/2-1", "0?nodial") in new
stack
    -- Executing [s em macro-dial-one:9] GotoIf("DAHDI/2-1", "0?continue") in
new stack
    -- Executing [s em macro-dial-one:10] Set("DAHDI/2-1", "EXTHASCW=") in new
stack
    -- Executing [s em macro-dial-one:11] GotoIf("DAHDI/2-1",
"1?next1:cwinusebusy") in 

new stack
    -- Goto (macro-dial-one,s,12)
    -- Executing [s em macro-dial-one:12] GotoIf("DAHDI/2-1", "0?docfu:skip3")
in new 

stack
    -- Goto (macro-dial-one,s,16)
    -- Executing [s em macro-dial-one:16] GotoIf("DAHDI/2-1",
"1?next2:continue") in new 

stack
    -- Goto (macro-dial-one,s,17)
    -- Executing [s em macro-dial-one:17] GotoIf("DAHDI/2-1", "1?continue") in
new stack
    -- Goto (macro-dial-one,s,25)
    -- Executing [s em macro-dial-one:25] GotoIf("DAHDI/2-1", "0?nodial") in
new stack
    -- Executing [s em macro-dial-one:26] GosubIf("DAHDI/2-1",
"1?dstring,1:dlocal,1") 

in new stack
    -- Executing [dstring em macro-dial-one:1] Set("DAHDI/2-1", "DSTRING=") in
new stack
    -- Executing [dstring em macro-dial-one:2] Set("DAHDI/2-1",
"DEVICES=1938342191") in 

new stack
    -- Executing [dstring em macro-dial-one:3] ExecIf("DAHDI/2-1",
"0?Return()") in new 

stack
    -- Executing [dstring em macro-dial-one:4] ExecIf("DAHDI/2-1", "0?Set

(DEVICES=938342191)") in new stack
    -- Executing [dstring em macro-dial-one:5] Set("DAHDI/2-1", "LOOPCNT=1") in
new 

stack
    -- Executing [dstring em macro-dial-one:6] Set("DAHDI/2-1", "ITER=1") in
new stack
    -- Executing [dstring em macro-dial-one:7] Set("DAHDI/2-1", 

"THISDIAL=SIP/1938342191") in new stack
    -- Executing [dstring em macro-dial-one:8] GosubIf("DAHDI/2-1",
"1?zap2dahdi,1") in 

new stack
    -- Executing [zap2dahdi em macro-dial-one:1] ExecIf("DAHDI/2-1",
"0?Return()") in 

new stack
    -- Executing [zap2dahdi em macro-dial-one:2] Set("DAHDI/2-1", "NEWDIAL=")
in new 

stack
    -- Executing [zap2dahdi em macro-dial-one:3] Set("DAHDI/2-1", "LOOPCNT2=1")
in new 

stack
    -- Executing [zap2dahdi em macro-dial-one:4] Set("DAHDI/2-1", "ITER2=1") in
new 

stack
    -- Executing [zap2dahdi em macro-dial-one:5] Set("DAHDI/2-1", 

"THISPART2=SIP/1938342191") in new stack
    -- Executing [zap2dahdi em macro-dial-one:6] ExecIf("DAHDI/2-1", "0?Set

(THISPART2=DAHDI/1938342191)") in new stack
    -- Executing [zap2dahdi em macro-dial-one:7] Set("DAHDI/2-1", 

"NEWDIAL=SIP/1938342191&") in new stack
    -- Executing [zap2dahdi em macro-dial-one:8] Set("DAHDI/2-1", "ITER2=2") in
new 

stack
    -- Executing [zap2dahdi em macro-dial-one:9] GotoIf("DAHDI/2-1",
"0?begin2") in new 

stack
    -- Executing [zap2dahdi em macro-dial-one:10] Set("DAHDI/2-1", 

"THISDIAL=SIP/1938342191") in new stack
    -- Executing [zap2dahdi em macro-dial-one:11] Return("DAHDI/2-1", "") in
new stack
    -- Executing [dstring em macro-dial-one:9] Set("DAHDI/2-1", 

"DSTRING=SIP/1938342191&") in new stack
    -- Executing [dstring em macro-dial-one:10] Set("DAHDI/2-1", "ITER=2") in
new stack
    -- Executing [dstring em macro-dial-one:11] GotoIf("DAHDI/2-1", "0?begin")
in new 

stack
    -- Executing [dstring em macro-dial-one:12] Set("DAHDI/2-1", 

"DSTRING=SIP/1938342191") in new stack
    -- Executing [dstring em macro-dial-one:13] Return("DAHDI/2-1", "") in new
stack
    -- Executing [s em macro-dial-one:27] GotoIf("DAHDI/2-1", "0?nodial") in
new stack
    -- Executing [s em macro-dial-one:28] GotoIf("DAHDI/2-1", "0?skiptrace") in
new 

stack
    -- Executing [s em macro-dial-one:29] GosubIf("DAHDI/2-1",
"0?ctset,1:ctclear,1") in 

new stack
    -- Executing [ctclear em macro-dial-one:1] NoOp("DAHDI/2-1", "Deleting: 

CALLTRACE/1938342191 ") in new stack
    -- Executing [ctclear em macro-dial-one:2] Return("DAHDI/2-1", "") in new
stack
    -- Executing [s em macro-dial-one:30] Set("DAHDI/2-1", "D_OPTIONS=tTwW") in
new 

stack
    -- Executing [s em macro-dial-one:31] ExecIf("DAHDI/2-1",
"0?SIPAddHeader(Alert-

Info: )") in new stack
    -- Executing [s em macro-dial-one:32] ExecIf("DAHDI/2-1",
"0?SIPAddHeader()") in new 

stack
    -- Executing [s em macro-dial-one:33] ExecIf("DAHDI/2-1", "0?Set(CHANNEL

(musicclass)=)") in new stack
    -- Executing [s em macro-dial-one:34] GosubIf("DAHDI/2-1", "0?qwait,1") in
new stack
    -- Executing [s em macro-dial-one:35] Set("DAHDI/2-1", "__CWIGNORE=") in
new stack
    -- Executing [s em macro-dial-one:36] Set("DAHDI/2-1", "__KEEPCID=TRUE") in
new 

stack
    -- Executing [s em macro-dial-one:37] Dial("DAHDI/2-1",
"SIP/1938342191,"",tTwW") in 

new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Called SIP/1938342191
    -- SIP/1938342191-00000013 is ringing
    -- SIP/1938342191-00000013 answered DAHDI/2-1
    -- Executing [h em macro-dial-one:1] Macro("DAHDI/2-1", "hangupcall,") in
new stack
    -- Executing [s em macro-hangupcall:1] GotoIf("DAHDI/2-1",
"1?endmixmoncheck") in 

new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s em macro-hangupcall:9] NoOp("DAHDI/2-1", "End of MIXMON
check") in 

new stack
    -- Executing [s em macro-hangupcall:10] GotoIf("DAHDI/2-1",
"1?nomeetmemon") in new 

stack
    -- Goto (macro-hangupcall,s,28)
    -- Executing [s em macro-hangupcall:28] NoOp("DAHDI/2-1", "End of MEETME
check") in 

new stack
    -- Executing [s em macro-hangupcall:29] GotoIf("DAHDI/2-1", "1?noautomon")
in new 

stack
    -- Goto (macro-hangupcall,s,34)
    -- Executing [s em macro-hangupcall:34] NoOp("DAHDI/2-1",
"TOUCH_MONITOR_OUTPUT=") 

in new stack
    -- Executing [s em macro-hangupcall:35] GotoIf("DAHDI/2-1", "1?noautomon2")
in new 

stack
    -- Goto (macro-hangupcall,s,41)
    -- Executing [s em macro-hangupcall:41] NoOp("DAHDI/2-1",
"MONITOR_FILENAME=") in 

new stack
    -- Executing [s em macro-hangupcall:42] GotoIf("DAHDI/2-1", "1?skiprg") in
new stack
    -- Goto (macro-hangupcall,s,45)
    -- Executing [s em macro-hangupcall:45] GotoIf("DAHDI/2-1", "1?skipblkvm")
in new 

stack
    -- Goto (macro-hangupcall,s,48)
    -- Executing [s em macro-hangupcall:48] GotoIf("DAHDI/2-1", "1?theend") in
new stack
    -- Goto (macro-hangupcall,s,50)
    -- Executing [s em macro-hangupcall:50] AGI("DAHDI/2-1", "hangup.agi") in
new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
    -- <DAHDI/2-1>AGI Script hangup.agi completed, returning 0
    -- Executing [s em macro-hangupcall:51] Hangup("DAHDI/2-1", "") in new
stack
  == Spawn extension (macro-hangupcall, s, 51) exited non-zero on
'DAHDI/2-1' in 

macro 'hangupcall'
  == Spawn extension (macro-dial-one, h, 1) exited non-zero on 'DAHDI/2-1'
  == Spawn extension (macro-dial-one, s, 37) exited non-zero on 'DAHDI/2-1'
in macro 

'dial-one'
  == Spawn extension (macro-exten-vm, s, 9) exited non-zero on 'DAHDI/2-1'
in macro 

'exten-vm'
  == Spawn extension (from-did-direct, 1938342191, 1) exited non-zero on
'DAHDI/2-1'
    -- Hanging up on 'DAHDI/2-1'
    -- Hungup 'DAHDI/2-1'
Elastix*CLI>

----------------------------------------------------------------------------
---------------------------------------



Em 17/07/2014 15:16, Fábio Ghisleni escreveu:

Já me deparei com estes problemas.

Resolvi assim:

 

;answeronpolarityswitch=yes
;hanguponpolarityswitch=yes
;immediate=yes
busydetect=yes
busycount=10

 

Espero ter ajudado.

 

De: asteriskbrasil-bounces em listas.asteriskbrasil.org
[mailto:asteriskbrasil-bounces em listas.asteriskbrasil.org] Em nome de Gino
Enviada em: quinta-feira, 17 de julho de 2014 14:55
Para: asteriskbrasil em listas.asteriskbrasil.org
Assunto: Re: [AsteriskBrasil] Elastix 1.6 DAHDI, delay de 1:48 minutos ao
encerrar a chamada pelo sip.

 

Rafael Obrigado pela Ajuda, Fiz o a  edição do system.conf> loadzone=br e
defaultzone=br reiniciei o serviço porém ainda esta tendo o delay. também
estou realizando outros meios para solucionar o problema. se alguém tiver
mais alguma sugestão agradeço. 

Em 17/07/2014 13:46, Rafael Tavares | Ibinetwork Informática escreveu:

Amigo pode ser que o dahdi não esteja reconhecendo o sinal de ocupado da
linha, ou algo do tipo.

Tente adicionar em system.conf




loadzone=br
 
defaultzone=br
 
 
Ve se resolve, ok?
 
Espero ter ajudado.



Em 17/07/2014 13:14, Gino escreveu:

Boa tarde Pessoal da AsteriskBrasil!
Primeiramente quero agradecer a todos por poder participar do listas.
 
Pessoal é o seguinte tenho uma placa TDM800P configurada em 
chan_dahdi.conf para um IVR até ai tudo bem
o problema é que quando o usuário do IVR atender a chamada ao desligar  
pelo softphone demora cerca de 1 minuto e 48 segundos para que a ligação 
do originador caia, Obrigado a todos!
Abaixo está uma copia do meu chan_dahdi.conf
 
 
; Auto-generated by /usr/sbin/hardware_detector
[trunkgroups]
 
[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=0.0
txgain=0.0
callgroup=1
pickupgroup=1
relaxdtmf=yes
ringtimeout=1000
;Uncomment these lines if you have problems with the disconection of 
your analog lines
answeronpolarityswitch=yes
hanguponpolarityswitch=yes
immediate=yes
busydetect=yes
busycount=3
#include dahdi-channels.conf
#include chan_dahdi_additional.conf
 
 
 
 
_______________________________________________
 
WORKOFFEES KHOMP: Eventos KHOMP em diversas cidades.
Faça já a sua inscrição GRATUITA para participar da próxima 
edição que acontecerá dia 17 de julho, em RECIFE.
Veja as outras cidades agendadas em: www.workoffee.com.br
_______________________________________________
ALIGERA – Fabricante e desenvolvedor nacional de Soluções para telefonia IP
.
Gateway Sip, Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express.
Banco de Canais Analógicos  – Appliance Asterisk
 Acesse www.aligera.com.br
_______________________________________________
Para remover seu email desta lista, basta enviar um email em branco para
asteriskbrasil-unsubscribe em listas.asteriskbrasil.org








_______________________________________________
 
WORKOFFEES KHOMP: Eventos KHOMP em diversas cidades.
Faça já a sua inscrição GRATUITA para participar da próxima 
edição que acontecerá dia 17 de julho, em RECIFE.
Veja as outras cidades agendadas em: www.workoffee.com.br
_______________________________________________
ALIGERA – Fabricante e desenvolvedor nacional de Soluções para telefonia IP
.
Gateway Sip, Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express.
Banco de Canais Analógicos  – Appliance Asterisk
 Acesse www.aligera.com.br
_______________________________________________
Para remover seu email desta lista, basta enviar um email em branco para
asteriskbrasil-unsubscribe em listas.asteriskbrasil.org

 






_______________________________________________
 
WORKOFFEES KHOMP: Eventos KHOMP em diversas cidades.
Faça já a sua inscrição GRATUITA para participar da próxima 
edição que acontecerá dia 17 de julho, em RECIFE.
Veja as outras cidades agendadas em: www.workoffee.com.br
_______________________________________________
ALIGERA – Fabricante e desenvolvedor nacional de Soluções para telefonia IP
.
Gateway Sip, Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express.
Banco de Canais Analógicos  – Appliance Asterisk
 Acesse www.aligera.com.br
_______________________________________________
Para remover seu email desta lista, basta enviar um email em branco para
asteriskbrasil-unsubscribe em listas.asteriskbrasil.org

 

-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20140717/7a37a4b5/attachment-0001.htm 
-------------- Próxima Parte ----------
Um anexo não texto foi limpo...
Nome  : não disponível
Tipo  : image/jpeg
Tam   : 57939 bytes
Descr.: não disponível
Url   : http://listas.asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20140717/7a37a4b5/attachment-0001.jpeg 


Mais detalhes sobre a lista de discussão AsteriskBrasil