[AsteriskBrasil] Asterisk 1.8 + Autenticação em Loop

Sylvio Jollenbeck sylvio.jollenbeck em gmail.com
Segunda Setembro 2 15:42:16 BRT 2013


Marcio,

   Segue:

Global Settings:
----------------
  UDP Bindaddress:        0.0.0.0:5060
  TCP SIP Bindaddress:    Disabled
  TLS SIP Bindaddress:    Disabled
  Videosupport:           Yes
  Textsupport:            No
  Ignore SDP sess. ver.:  No
  AutoCreate Peer:        No
  Match Auth Username:    No
  Allow unknown access:   No
  Allow subscriptions:    Yes
  Allow overlap dialing:  Yes
  Allow promisc. redir:   No
  Enable call counters:   Yes
  SIP domain support:     No
  Realm. auth:            No
  Our auth realm          HT
  Use domains as realms:  No
  Call to non-local dom.: Yes
  URI user is phone no:   No
  Always auth rejects:    Yes
  Direct RTP setup:       No
  User Agent:             HT AIO
  SDP Session Name:       HT AIO 1.8.23.0
  SDP Owner Name:         root
  Reg. context:           (not set)
  Regexten on Qualify:    No
  Legacy userfield parse: No
  Caller ID:              HT
  From: Domain:
  Record SIP history:     Off
  Call Events:            On
  Auth. Failure Events:   On
  T.38 support:           No
  T.38 EC mode:           Unknown
  T.38 MaxDtgrm:          -1
  SIP realtime:           Enabled
  Qualify Freq :          90000 ms
  Q.850 Reason header:    No
  Store SIP_CAUSE:        Yes

Network QoS Settings:
---------------------------
  IP ToS SIP:             CS3
  IP ToS RTP audio:       EF
  IP ToS RTP video:       AF41
  IP ToS RTP text:        AF41
  802.1p CoS SIP:         3
  802.1p CoS RTP audio:   5
  802.1p CoS RTP video:   4
  802.1p CoS RTP text:    3
  Jitterbuffer enabled:   No

Network Settings:
---------------------------
  SIP address remapping:  Disabled, no localnet list
  Externhost:             <none>
  Externaddr:             (null)
  Externrefresh:          10

Global Signalling Settings:
---------------------------
  Codecs:                 0xc (ulaw|alaw)
  Codec Order:            alaw:20,ulaw:20
  Relax DTMF:             No
  RFC2833 Compensation:   No
  Symmetric RTP:          No
  Compact SIP headers:    No
  RTP Keepalive:          0 (Disabled)
  RTP Timeout:            60
  RTP Hold Timeout:       300
  MWI NOTIFY mime type:   application/simple-message-summary
  DNS SRV lookup:         No
  Pedantic SIP support:   No
  Reg. min duration       60 secs
  Reg. max duration:      3600 secs
  Reg. default duration:  120 secs
  Outbound reg. timeout:  20 secs
  Outbound reg. attempts: 0
  Notify ringing state:   Yes
    Include CID:          Yes
  Notify hold state:      Yes
  SIP Transfer mode:      open
  Max Call Bitrate:       384 kbps
  Auto-Framing:           No
  Outb. proxy:            <not set>
  Session Timers:         Accept
  Session Refresher:      uas
  Session Expires:        1800 secs
  Session Min-SE:         90 secs
  Timer T1:               500
  Timer T1 minimum:       100
  Timer B:                32000
  No premature media:     No
  Max forwards:           70

Default Settings:
-----------------
  Allowed transports:     UDP
  Outbound transport:     UDP
  Context:                drop-calls
  Force rport:            Yes
  DTMF:                   rfc2833
  Qualify:                0
  Use ClientCode:         No
  Progress inband:        Yes
  Language:               br
  MOH Interpret:          default
  MOH Suggest:
  Voice Mail Extension:   HT

Realtime SIP Settings:
----------------------
  Realtime Peers:         Yes
  Realtime Regs:          No
  Cache Friends:          Yes
  Update:                 Yes
  Ignore Reg. Expire:     No
  Save sys. name:         No
  Auto Clear:             120 (Disabled)

----

LOG:


<--- SIP read from UDP:10.80.2.159:5060 --->
REGISTER sip:10.90.0.211:5060 SIP/2.0
Via: SIP/2.0/UDP 10.80.2.159:5060;branch=z9hG4bK6174d037a65b85224db41;rport
From: "20041" <sip:20041 em 10.90.0.211:5060>;tag=6174d6932
To: "20041" <sip:20041 em 10.90.0.211:5060>
Call-ID: 4ccbb8-1658a-5224db33 em 10.90.0.211
CSeq: 617 REGISTER
Contact: "20041" <sip:20041 em 10.80.2.159:5060>
Authorization: Digest username="20041", realm="HT", nonce="5a52f9e3",
uri="sip:10.90.0.211", response="1ba1e78f4503243091c53e6055be0e6f",
algorithm=MD5
User-Agent: VaxSIPUserAgent/3.1
Expires: 3600
Max-Forwards: 70
Content-Length: 0


<------------->
--- (12 headers 0 lines) ---
Sending to 10.80.2.159:5060 (no NAT)
[Sep  2 15:36:51] NOTICE[29822]: chan_sip.c:15065 check_auth: Correct auth,
but based on stale nonce received from '"20041" <sip:20041 em 10.90.0.211:5060
>;tag=6174d6932'

<--- Transmitting (no NAT) to 10.80.2.159:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.80.2.159:5060
;branch=z9hG4bK6174d037a65b85224db41;received=10.80.2.159;rport=5060
From: "20041" <sip:20041 em 10.90.0.211:5060>;tag=6174d6932
To: "20041" <sip:20041 em 10.90.0.211:5060>;tag=as1e8572d4
all-ID: 4ccbb8-1658a-5224db33 em 10.90.0.211
CSeq: 617 REGISTER
Server: HT AIO
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="HT", nonce="32f63d5d",
stale=true
Content-Length: 0




Em 2 de setembro de 2013 15:18, Marcio - Google <marciorp em gmail.com>escreveu:

> Já tive algo parecido mas com a .15. Não tinha nada haver com o Asterisk,
> o problema era no roteamento da rede.
> Solicite ao pessoal de infra para verificar se não está ocorrendo um loop
> de pacotes na rede, provavelmente entre o switch/router que está o servidor
> e o que está o cliente.
> Se não for rede, poste os sip.conf e os logs.
>
>
> [...]'s
>
> Marcio
>
> ========================================
> ########### Campanha Ajude o Marcio! ###########
> http://sosmarcio.blogspot.com.br/
> http://www.vakinha.com.br/VaquinhaP.aspx?e=195793
> ========================================
>
>
> Em 2 de setembro de 2013 14:09, Sylvio Jollenbeck <
> sylvio.jollenbeck em gmail.com> escreveu:
>
> Sim... foi a primeira tentativa!
>>
>>
>> Em 2 de setembro de 2013 15:07, Rafael dos Santos Saraiva <
>> rafaelsnsa em gmail.com> escreveu:
>>
>> Tentou o pedantic=no?
>>>
>>>
>>>
>>> Att,
>>> *Rafael dos Santos Saraiva*
>>> <http://br.linkedin.com/pub/rafael-saraiva/52/aab/230>
>>>
>>>
>>> Em 2 de setembro de 2013 14:59, Sylvio Jollenbeck <
>>> sylvio.jollenbeck em gmail.com> escreveu:
>>>
>>>> Olá Pessoal,
>>>>
>>>>    Estou usando um asterisk 1.8.23.0 em um ambiente controlado e
>>>> segmentado por vlans, estou recebendo a seguinte mensagem:
>>>>
>>>> [Sep  2 14:40:20] NOTICE[29822]: chan_sip.c:15065 check_auth: Correct
>>>> auth, but based on stale nonce received from '"20041"
>>>> <sip:20041 em servidor:5060>;tag=254019805b'
>>>>
>>>>    O SIP entra em loop e depois de algumas milhares de tentativas
>>>> morre.
>>>>
>>>> Alguém já passou por isso ?
>>>>
>>>> Já andei pesquisando alguns link:
>>>> http://forums.asterisk.org/viewtopic.php?p=161257
>>>>
>>>> Mas nada de solucionar o problema!
>>>>
>>>> Abs
>>>>
>>>> --
>>>> Sylvio Jollenbeck
>>>> www.hosannatecnologia.com.br
>>>>
>>>>
>>>> _______________________________________________
>>>> KHOMP: completa linha de placas externas FXO, FXS, GSM e E1;
>>>> Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e SS7;
>>>> Intercomunicadores para acesso remoto via rede IP. Conheça em
>>>> www.Khomp.com.
>>>> _______________________________________________
>>>> ALIGERA – Fabricante nacional de Gateways SIP-E1 para R2, ISDN e SS7.
>>>> Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express.
>>>> Channel Bank – 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
>>>>
>>>
>>>
>>> _______________________________________________
>>> KHOMP: completa linha de placas externas FXO, FXS, GSM e E1;
>>> Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e SS7;
>>> Intercomunicadores para acesso remoto via rede IP. Conheça em
>>> www.Khomp.com.
>>> _______________________________________________
>>> ALIGERA – Fabricante nacional de Gateways SIP-E1 para R2, ISDN e SS7.
>>> Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express.
>>> Channel Bank – 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
>>>
>>
>>
>>
>> --
>> Sylvio Jollenbeck
>> www.hosannatecnologia.com.br
>>
>>
>> _______________________________________________
>> KHOMP: completa linha de placas externas FXO, FXS, GSM e E1;
>> Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e SS7;
>> Intercomunicadores para acesso remoto via rede IP. Conheça em
>> www.Khomp.com.
>> _______________________________________________
>> ALIGERA – Fabricante nacional de Gateways SIP-E1 para R2, ISDN e SS7.
>> Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express.
>> Channel Bank – 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
>>
>
>
> _______________________________________________
> KHOMP: completa linha de placas externas FXO, FXS, GSM e E1;
> Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e SS7;
> Intercomunicadores para acesso remoto via rede IP. Conheça em
> www.Khomp.com.
> _______________________________________________
> ALIGERA – Fabricante nacional de Gateways SIP-E1 para R2, ISDN e SS7.
> Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express.
> Channel Bank – 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
>



-- 
Sylvio Jollenbeck
www.hosannatecnologia.com.br
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20130902/de76caab/attachment-0001.htm 


Mais detalhes sobre a lista de discussão AsteriskBrasil