[AsteriskBrasil] melhor forma de obter o dtmf
Judson Carneiro
judson.jcj em gmail.com
Segunda Fevereiro 13 22:55:23 BRST 2012
Eis a saida, já contendo o sip debug.
O bloco destacado é onde acredito ser a falha, mas só acontece se eu chamar
de celular e digitar uma sequencia bem rápida de dtmf, de fixo não
acontece.
== CDR updated on SIP/tellfree-00000003
-- Executing [8 em ivr-3:1] NoOp("SIP/tellfree-00000003", "Pressionado 8")
in n
ew stack
-- Executing [8 em ivr-3:2] Set("SIP/tellfree-00000003", "DTMF=8") in new
stack
-- Executing [8 em ivr-3:3] Goto("SIP/tellfree-00000003", "ivr-3,s,begin")
in n
ew stack
-- Goto (ivr-3,s,6)
-- Executing [s em ivr-3:6] NoOp("SIP/tellfree-00000003", "") in new stack
-- Executing [s em ivr-3:7] WaitExten("SIP/tellfree-00000003", ",") in new
stac
k
== CDR updated on SIP/tellfree-00000003
-- Executing [0 em ivr-3:1] NoOp("SIP/tellfree-00000003", "Pressionado 0")
in n
ew stack
-- Executing [0 em ivr-3:2] Set("SIP/tellfree-00000003", "DTMF=0") in new
stack
-- Executing [0 em ivr-3:3] Goto("SIP/tellfree-00000003", "ivr-3,s,begin")
in n
ew stack
-- Goto (ivr-3,s,6)
-- Executing [s em ivr-3:6] NoOp("SIP/tellfree-00000003", "") in new stack
-- Executing [s em ivr-3:7] WaitExten("SIP/tellfree-00000003", ",") in new
stac
k
*<--- SIP read from UDP:201.33.209.147:5060 --->
BYE sip:7984045 em 177.67.86.134:5060 SIP/2.0
Record-Route: <sip:201.33.209.147;lr;ftag=as5de498b6>
Via: SIP/2.0/UDP 201.33.209.147;branch=z9hG4bKb44a.76cbc601.0
Via: SIP/2.0/UDP 201.39.124.2:5060
;received=201.39.124.2;branch=z9hG4bK3dde526f;
rport=5060
From: "02781172769" <sip:02781172769 em 201.39.124.2>;tag=as5de498b6
To: <sip:552734214774 em sip.tellfree.net>;tag=as1b00d95c
Call-ID: 64e40d6c2e915be51c438e85324dca56 em 201.39.124.2
CSeq: 103 BYE
User-Agent: POP Tellfree Vitoria
Max-Forwards: 69
X-Asterisk-HangupCause: Normal Clearing
X-Asterisk-HangupCauseCode: 16
Content-Length: 0
*
<------------->
--- (13 headers 0 lines) ---
Sending to 201.33.209.147:5060 (NAT)
Scheduling destruction of SIP dialog
'64e40d6c2e915be51c438e85324dca56 em 201.39.12
4.2' in 10560 ms (Method: BYE)
<--- Transmitting (NAT) to 201.33.209.147:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP
201.33.209.147;branch=z9hG4bKb44a.76cbc601.0;received=201.33.20
9.147;rport=5060
Via: SIP/2.0/UDP 201.39.124.2:5060
;received=201.39.124.2;branch=z9hG4bK3dde526f;
rport=5060
Record-Route: <sip:201.33.209.147;lr;ftag=as5de498b6>
From: "02781172769" <sip:02781172769 em 201.39.124.2>;tag=as5de498b6
To: <sip:552734214774 em sip.tellfree.net>;tag=as1b00d95c
Call-ID: 64e40d6c2e915be51c438e85324dca56 em 201.39.124.2
CSeq: 103 BYE
Server: Asterisk PBX 1.8.8.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
PUBLIS
H
Supported: replaces, timer
Content-Length: 0
<------------>
== Spawn extension (ivr-3, s, 7) exited non-zero on
'SIP/tellfree-00000003'
-- Executing [h em ivr-3:1] Hangup("SIP/tellfree-00000003", "") in new
stack
== Spawn extension (ivr-3, h, 1) exited non-zero on
'SIP/tellfree-00000003'
[Feb 13 22:44:22] NOTICE[21062]: chan_sip.c:12622 sip_reregister: --
Re-regis
tration for 7984045 em sip.tellfree.net
> doing dnsmgr_lookup for 'sip.tellfree.net'
> ast_get_srv: SRV lookup for '_sip._udp.sip.tellfree.net' mapped to
host
sipn.tellfree.com.br, port 5060
REGISTER 11 headers, 0 lines
Reliably Transmitting (NAT) to 201.33.209.147:5060:
REGISTER sip:sip.tellfree.net SIP/2.0
Via: SIP/2.0/UDP 177.67.86.134:5060;branch=z9hG4bK1a7a0cee;rport
Max-Forwards: 70
From: <sip:7984045 em sip.tellfree.net>;tag=as6abb4b0f
To: <sip:7984045 em sip.tellfree.net>
Call-ID: 7d4fcb131ccf50c65ddedebe2d144136@[::1]
CSeq: 112 REGISTER
User-Agent: Asterisk PBX 1.8.8.1
Authorization: Digest username="7984045", realm="sip.tellfree.net",
algorithm=MD
5, uri="sip:sip.tellfree.net",
nonce="4f39ae1e000037749d16a257f2bd3ab9388d4946d3
14cac2", response="28d7a816a33328403a628c0374fdce9c"
Expires: 120
Contact: <sip:7984045 em 177.67.86.134:5060>
Content-Length: 0
---
<--- SIP read from UDP:201.33.209.147:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 177.67.86.134:5060;branch=z9hG4bK1a7a0cee;rport=5060
From: <sip:7984045 em sip.tellfree.net>;tag=as6abb4b0f
To: <sip:7984045 em sip.tellfree.net>;tag=6941ecd2c0641cfc32b8682cab9d8f61.6a51
Call-ID: 7d4fcb131ccf50c65ddedebe2d144136@[::1]
CSeq: 112 REGISTER
WWW-Authenticate: Digest realm="sip.tellfree.net",
nonce="4f39ae87000050154e1434
13d92a89b9bf01922590d85ef3", stale=true
Server: OpenSIPS XS 1.4.5
Content-Length: 0
<------------->
--- (9 headers 0 lines) ---
Responding to challenge, registration to domain/host name sip.tellfree.net
> doing dnsmgr_lookup for 'sip.tellfree.net'
> ast_get_srv: SRV lookup for '_sip._udp.sip.tellfree.net' mapped to
host
sipn.tellfree.com.br, port 5060
REGISTER 11 headers, 0 lines
Reliably Transmitting (NAT) to 201.33.209.147:5060:
REGISTER sip:sip.tellfree.net SIP/2.0
Via: SIP/2.0/UDP 177.67.86.134:5060;branch=z9hG4bK05e1f97a;rport
Max-Forwards: 70
From: <sip:7984045 em sip.tellfree.net>;tag=as7c931d61
To: <sip:7984045 em sip.tellfree.net>
Call-ID: 7d4fcb131ccf50c65ddedebe2d144136@[::1]
CSeq: 113 REGISTER
User-Agent: Asterisk PBX 1.8.8.1
Authorization: Digest username="7984045", realm="sip.tellfree.net",
algorithm=MD
5, uri="sip:sip.tellfree.net",
nonce="4f39ae87000050154e143413d92a89b9bf01922590
d85ef3", response="9bc75bb4a8c1dcc521089d11507cf0b6"
Expires: 120
Contact: <sip:7984045 em 177.67.86.134:5060>
Content-Length: 0
---
<--- SIP read from UDP:201.33.209.147:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 177.67.86.134:5060;branch=z9hG4bK05e1f97a;rport=5060
From: <sip:7984045 em sip.tellfree.net>;tag=as7c931d61
To: <sip:7984045 em sip.tellfree.net>;tag=6941ecd2c0641cfc32b8682cab9d8f61.38c7
Call-ID: 7d4fcb131ccf50c65ddedebe2d144136@[::1]
CSeq: 113 REGISTER
Contact: <sip:7984045 em 177.67.86.134:5060>;expires=120
Server: OpenSIPS XS 1.4.5
Content-Length: 0
<------------->
--- (9 headers 0 lines) ---
Scheduling destruction of SIP dialog '7d4fcb131ccf50c65ddedebe2d144136@[::1]'
in
32000 ms (Method: REGISTER)
[Feb 13 22:44:23] NOTICE[21062]: chan_sip.c:20205 handle_response_register:
Outb
ound Registration: Expiry for sip.tellfree.net is 120 sec (Scheduling
reregistra
tion in 105 s)
Really destroying SIP dialog '64e40d6c2e915be51c438e85324dca56 em 201.39.124.2'
Met
hod: BYE
> doing dnsmgr_lookup for 'sip.tellfree.net'
> ast_get_srv: SRV lookup for '_sip._udp.sip.tellfree.net' mapped to
host
sipn.tellfree.com.br, port 5060
> doing dnsmgr_lookup for 'sip.tellfree.net'
> ast_get_srv: SRV lookup for '_sip._udp.sip.tellfree.net' mapped to
host
sipn.tellfree.com.br, port 5060
Em 13 de fevereiro de 2012 21:07, thiagoc <root em thiagoc.net> escreveu:
> 2012/2/13 Judson Carneiro <judson.jcj em gmail.com>:
> > Aparece um "spaw extention" acho que sou eu que estou desconectando. Se
> > fosse a operadora de celular, era pra acontecer quando eu ligo para um
> > telefone fixo normal e repito o processo.
>
> Envie o log do console do Asterisk quando ocorre o desligamento.
>
> --
> thiagoc
>
> "O povo não deveria temer o governo. O governo é quem deveria temer o
> povo."
> V de Vingança
> _______________________________________________
> KHOMP ::: External Series Experience :::
> Um novo conceito para o mercado de aplicações que vai
> fazer você pensar fora da caixa. Aguarde este lançamento
> _______________________________________________
> DIGIVOICE: Lider no mercado de placas para Asterisk
> Único fabricante com Centro de Treinamento especializado.
> LANÇAMENTO: Channel Bank TDMoE, até 64 canais FXS / FXO.
> www.digivoice.com.br ou (11)3016-5200.
> ________
> YEALINK: Telefones IP e VídeoPhones IP com o melhor custo/benefício do
> mercado.
> email: yealink em commlogik.com.br | www.commlogik.com.br | (11) 5503-1011
> ______________________________________________
> 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/20120213/e7bf4621/attachment.htm
Mais detalhes sobre a lista de discussão AsteriskBrasil