[AsteriskBrasil] hangup nao detectado

Alexandre Correa ajcorrea em gmail.com
Terça Janeiro 25 12:27:14 BRST 2011


Bom dia,

Instalei o ELASTIX com uma placa digium AEX410 com modulos FXO.

Quando alguem liga na linha PSTN ele transfere para um ramal voip
configurado .. o problem é no hangup, parece que ele não detecta .. se
ligar para o numero.. esperar alguns toques e desligar... o elastix
nao detecta o hangup e da o play da caixa postal..

segue o log do asterisk (console)

[root em sipsv01 asterisk]# /usr/sbin/asterisk -R
Asterisk 1.6.2.13, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster em digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty'
for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.2.13 currently running on sipsv01 (pid = 14672)
Verbosity is at least 3
    -- Starting simple switch on 'DAHDI/1-1'
    -- Executing [s em from-pstn:1] Set("DAHDI/1-1", "__FROM_DID=s") in new stack
    -- Executing [s em from-pstn:2] Gosub("DAHDI/1-1",
"app-blacklist-check,s,1") in new stack
    -- Executing [s em app-blacklist-check:1] GotoIf("DAHDI/1-1",
"0?blacklisted") in new stack
    -- Executing [s em app-blacklist-check:2] Set("DAHDI/1-1",
"CALLED_BLACKLIST=1") in new stack
    -- Executing [s em app-blacklist-check:3] Return("DAHDI/1-1", "") in new stack
    -- Executing [s em from-pstn:3] ExecIf("DAHDI/1-1", "1
?Set(CALLERID(name)=)") in new stack
    -- Executing [s em from-pstn:4] Set("DAHDI/1-1",
"__CALLINGPRES_SV=allowed_not_screened") in new stack
    -- Executing [s em from-pstn:5] Set("DAHDI/1-1",
"CALLERPRES()=allowed_not_screened") in new stack
    -- Executing [s em from-pstn:6] Goto("DAHDI/1-1",
"from-did-direct,2000,1") in new stack
    -- Goto (from-did-direct,2000,1)
    -- Executing [2000 em from-did-direct:1] Macro("DAHDI/1-1",
"exten-vm,2000,2000") in new stack
    -- Executing [s em macro-exten-vm:1] Macro("DAHDI/1-1",
"user-callerid,") in new stack
    -- Executing [s em macro-user-callerid:1] Set("DAHDI/1-1",
"AMPUSER=") in new stack
    -- Executing [s em macro-user-callerid:2] GotoIf("DAHDI/1-1",
"0?report") in new stack
    -- Executing [s em macro-user-callerid:3] ExecIf("DAHDI/1-1",
"1?Set(REALCALLERIDNUM=)") in new stack
    -- Executing [s em macro-user-callerid:4] Set("DAHDI/1-1",
"AMPUSER=") in new stack
    -- Executing [s em macro-user-callerid:5] Set("DAHDI/1-1",
"AMPUSERCIDNAME=") in new stack
    -- Executing [s em macro-user-callerid:6] GotoIf("DAHDI/1-1",
"1?report") in new stack
    -- Goto (macro-user-callerid,s,10)
    -- Executing [s em macro-user-callerid:10] GotoIf("DAHDI/1-1",
"0?continue") in new stack
    -- Executing [s em macro-user-callerid:11] Set("DAHDI/1-1",
"__TTL=64") in new stack
    -- Executing [s em macro-user-callerid:12] GotoIf("DAHDI/1-1",
"1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s em macro-user-callerid:19] NoOp("DAHDI/1-1", "Using
CallerID "" <>") in new stack
    -- Executing [s em macro-exten-vm:2] Set("DAHDI/1-1",
"RingGroupMethod=none") in new stack
    -- Executing [s em macro-exten-vm:3] Set("DAHDI/1-1", "VMBOX=2000")
in new stack
    -- Executing [s em macro-exten-vm:4] Set("DAHDI/1-1",
"EXTTOCALL=2000") in new stack
    -- Executing [s em macro-exten-vm:5] Set("DAHDI/1-1", "CFUEXT=") in new stack
    -- Executing [s em macro-exten-vm:6] Set("DAHDI/1-1", "CFBEXT=") in new stack
    -- Executing [s em macro-exten-vm:7] Set("DAHDI/1-1", "RT=15") in new stack
    -- Executing [s em macro-exten-vm:8] Macro("DAHDI/1-1",
"record-enable,2000,IN") in new stack
    -- Executing [s em macro-record-enable:1] GotoIf("DAHDI/1-1",
"1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s em macro-record-enable:4] ExecIf("DAHDI/1-1",
"0?MacroExit()") in new stack
    -- Executing [s em macro-record-enable:5] GotoIf("DAHDI/1-1",
"0?Group:OUT") in new stack
    -- Goto (macro-record-enable,s,15)
    -- Executing [s em macro-record-enable:15] GotoIf("DAHDI/1-1",
"1?IN") in new stack
    -- Goto (macro-record-enable,s,20)
    -- Executing [s em macro-record-enable:20] ExecIf("DAHDI/1-1",
"1?MacroExit()") in new stack
    -- Executing [s em macro-exten-vm:9] Macro("DAHDI/1-1",
"dial,15,tr,2000") in new stack
    -- Executing [s em macro-dial:1] GotoIf("DAHDI/1-1", "1?dial") in new stack
    -- Goto (macro-dial,s,3)
    -- Executing [s em macro-dial:3] AGI("DAHDI/1-1", "dialparties.agi")
in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
 dialparties.agi: Starting New Dialparties.agi
 dialparties.agi: Caller ID name is 'unknown' number is 'unknown'
 dialparties.agi: Methodology of ring is  'none'
    -- dialparties.agi: Added extension 2000 to extension map
    -- dialparties.agi: Extension 2000 cf is disabled
    -- dialparties.agi: Extension 2000 do not disturb is disabled
 dialparties.agi: EXTENSION_STATE: 0 (NOT_INUSE)
 dialparties.agi: Extension 2000 has ExtensionState: 0
    -- dialparties.agi: Checking CW and CFB status for extension 2000
    -- dialparties.agi: DbDel CALLTRACE/2000 - Caller ID is not defined
    -- dialparties.agi: Filtered ARG3: 2000
    -- <DAHDI/1-1>AGI Script dialparties.agi completed, returning 0
    -- Executing [s em macro-dial:7] Dial("DAHDI/1-1", "SIP/2000,15,tr")
in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Called 2000
    -- Remote UNIX connection
    -- Remote UNIX connection disconnected
    -- SIP/2000-00000004 is ringing
    -- Nobody picked up in 15000 ms
    -- Executing [s em macro-dial:8] Set("DAHDI/1-1",
"DIALSTATUS=NOANSWER") in new stack
    -- Executing [s em macro-dial:9] GosubIf("DAHDI/1-1", "0?NOANSWER,1")
in new stack
    -- Executing [s em macro-exten-vm:10] GotoIf("DAHDI/1-1",
"0?exit,return") in new stack
    -- Executing [s em macro-exten-vm:11] Set("DAHDI/1-1",
"SV_DIALSTATUS=NOANSWER") in new stack
    -- Executing [s em macro-exten-vm:12] GosubIf("DAHDI/1-1",
"0?docfu,1") in new stack
    -- Executing [s em macro-exten-vm:13] GosubIf("DAHDI/1-1",
"0?docfb,1") in new stack
    -- Executing [s em macro-exten-vm:14] Set("DAHDI/1-1",
"DIALSTATUS=NOANSWER") in new stack
    -- Executing [s em macro-exten-vm:15] NoOp("DAHDI/1-1", "Voicemail is
'2000'") in new stack
    -- Executing [s em macro-exten-vm:16] GotoIf("DAHDI/1-1",
"0?s-NOANSWER,1") in new stack
    -- Executing [s em macro-exten-vm:17] NoOp("DAHDI/1-1", "Sending to
Voicemail box 2000") in new stack
    -- Executing [s em macro-exten-vm:18] Macro("DAHDI/1-1",
"vm,2000,NOANSWER,") in new stack
    -- Executing [s em macro-vm:1] Macro("DAHDI/1-1",
"user-callerid,SKIPTTL") in new stack
    -- Executing [s em macro-user-callerid:1] Set("DAHDI/1-1",
"AMPUSER=") in new stack
    -- Executing [s em macro-user-callerid:2] GotoIf("DAHDI/1-1",
"0?report") in new stack
    -- Executing [s em macro-user-callerid:3] ExecIf("DAHDI/1-1",
"1?Set(REALCALLERIDNUM=)") in new stack
    -- Executing [s em macro-user-callerid:4] Set("DAHDI/1-1",
"AMPUSER=") in new stack
    -- Executing [s em macro-user-callerid:5] Set("DAHDI/1-1",
"AMPUSERCIDNAME=") in new stack
    -- Executing [s em macro-user-callerid:6] GotoIf("DAHDI/1-1",
"1?report") in new stack
    -- Goto (macro-user-callerid,s,10)
    -- Executing [s em macro-user-callerid:10] GotoIf("DAHDI/1-1",
"1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s em macro-user-callerid:19] NoOp("DAHDI/1-1", "Using
CallerID "" <>") in new stack
    -- Executing [s em macro-vm:2] Set("DAHDI/1-1", "VMGAIN=""") in new stack
    -- Executing [s em macro-vm:3] GotoIf("DAHDI/1-1", "1?vmx,1") in new stack
    -- Goto (macro-vm,vmx,1)
    -- Executing [vmx em macro-vm:1] Set("DAHDI/1-1", "MEXTEN=2000") in new stack
    -- Executing [vmx em macro-vm:2] Set("DAHDI/1-1", "MMODE=NOANSWER")
in new stack
    -- Executing [vmx em macro-vm:3] Set("DAHDI/1-1", "RETVM=") in new stack
    -- Executing [vmx em macro-vm:4] Set("DAHDI/1-1", "MODE=unavail") in new stack
    -- Executing [vmx em macro-vm:5] GotoIf("DAHDI/1-1", "1?chknomsg") in new stack
    -- Goto (macro-vm,vmx,7)
    -- Executing [vmx em macro-vm:7] GotoIf("DAHDI/1-1",
"0?s-NOANSWER,1") in new stack
    -- Executing [vmx em macro-vm:8] GotoIf("DAHDI/1-1", "1?notdirect")
in new stack
    -- Goto (macro-vm,vmx,10)
    -- Executing [vmx em macro-vm:10] NoOp("DAHDI/1-1", "Checking if ext
2000 is enabled: ") in new stack
    -- Executing [vmx em macro-vm:11] GotoIf("DAHDI/1-1",
"1?s-NOANSWER,1") in new stack
    -- Goto (macro-vm,s-NOANSWER,1)
    -- Executing [s-NOANSWER em macro-vm:1] Macro("DAHDI/1-1",
"get-vmcontext,2000") in new stack
    -- Executing [s em macro-get-vmcontext:1] Set("DAHDI/1-1",
"VMCONTEXT=default") in new stack
    -- Executing [s em macro-get-vmcontext:2] GotoIf("DAHDI/1-1",
"0?200:300") in new stack
    -- Goto (macro-get-vmcontext,s,300)
    -- Executing [s em macro-get-vmcontext:300] NoOp("DAHDI/1-1", "") in new stack
    -- Executing [s-NOANSWER em macro-vm:2] VoiceMail("DAHDI/1-1",
"2000 em default,u") in new stack
    -- <DAHDI/1-1> Playing 'vm-theperson.gsm' (language 'en')
    -- <DAHDI/1-1> Playing 'digits/2.gsm' (language 'en')
    -- <DAHDI/1-1> Playing 'digits/0.gsm' (language 'en')
    -- <DAHDI/1-1> Playing 'digits/0.gsm' (language 'en')
    -- <DAHDI/1-1> Playing 'digits/0.gsm' (language 'en')
    -- <DAHDI/1-1> Playing 'vm-isunavail.gsm' (language 'en')
    -- <DAHDI/1-1> Playing 'vm-intro.gsm' (language 'en')
    -- <DAHDI/1-1> Playing 'beep.gsm' (language 'en')
    -- Recording the message
    -- x=0, open writing:
/var/spool/asterisk/voicemail/default/2000/tmp/o1UGfB format: wav49,
0x2aaaac29dea8
    -- x=1, open writing:
/var/spool/asterisk/voicemail/default/2000/tmp/o1UGfB format: wav,
0x111c7868
    -- User hung up
  == Parsing '/var/spool/asterisk/voicemail/default/2000/INBOX/msg0000.txt':
  == Found
  == Parsing '/var/spool/asterisk/voicemail/default/2000/INBOX/msg0000.txt':
  == Found
  == Spawn extension (macro-vm, s-NOANSWER, 2) exited non-zero on
'DAHDI/1-1' in macro 'vm'
  == Spawn extension (macro-exten-vm, s, 18) exited non-zero on
'DAHDI/1-1' in macro 'exten-vm'
  == Spawn extension (from-did-direct, 2000, 1) exited non-zero on 'DAHDI/1-1'
    -- Hungup 'DAHDI/1-1'


no dahdi_channels.conf esta:

; Span 1: WCTDM/0 "Wildcard AEX410 Board 1" (MASTER)
;;; line="1 WCTDM/0/0 FXSKS"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 1
callerid=
group=
context=default

no dahdi.conf esta:

# Autogenerated by /usr/sbin/dahdi_genconf on Tue Jan 25 10:00:42 2011
# 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 AEX410 Board 1" (MASTER)
fxsks=1
echocanceller=oslec,1
# channel 2, WCTDM/0/1, no module.
# channel 3, WCTDM/0/2, no module.
# channel 4, WCTDM/0/3, no module.

# Global data

loadzone        = us
defaultzone     = us



no chan_dahdi.conf esta:

[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

;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




existe algum parametro para detectar imadiatamente o hangup ?

obrigado !


-- 
Sds.
Alexandre J. Correa
Onda Internet
http://www.onda.net.br


IPV6 Ready !!!
http://ipv6.onda.net.br


Mais detalhes sobre a lista de discussão AsteriskBrasil