Hola a todos! Tengo un problema que literalmente me esta volviendo loco.
Este es el panorama.
1 Servidor Asterisk 1.6 (Core)
Telefonos Cisco SPA 301
Tengo unas VPN entre las sucursales con Fortigate 60c.
El problema es un error SIP/2.0 401 Unauthorized. Lo confuso es que si tengo 2 usuarios en la VPN uno se conecta y el otro no y en algunas estaciones ninguno, y en otras los dos si se conectan sin ningun problema, las configuraciones de los telefonos y usuarios sip sn identicas y si tomo un usuario que no se conecte y lo pruebo con un softphone dentro de la red local de asterisk, este se conecta sin ningun problema.
Les paso mi debug y configuracion.
<------------>
Scheduling destruction of SIP dialog 'db9c8273-d5d7e108@192.168.0.105' in 32000 ms (Method: REGISTER)
<--- SIP read from UDP:192.168.0.105:5060 --->
REGISTER sip:10.1.11.6:6512 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.105:5060;branch=z9hG4bK-99533825
From: "Eco Toreo" <sip:ECOTJTOR@10.1.11.6>;tag=cdd23179640b94ebo0
To: "Eco Toreo" <sip:ECOTJTOR@10.1.11.6>
Call-ID: db9c8273-d5d7e108@192.168.0.105
CSeq: 35766 REGISTER
Max-Forwards: 70
Contact: "Eco Toreo" <sip:ECOTJTOR@192.168.0.105:5060>;expires=3600
User-Agent: Cisco/SPA301-7.5.2b
Content-Length: 0
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER, UPDATE
Supported: replaces
<------------->
--- (12 headers 0 lines) ---
Sending to 192.168.0.105 : 5060 (NAT)
<--- Transmitting (NAT) to 192.168.0.105:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.0.105:5060;branch=z9hG4bK-99533825;received=192.168.0.105
From: "Eco Toreo" <sip:ECOTJTOR@10.1.11.6>;tag=cdd23179640b94ebo0
To: "Eco Toreo" <sip:ECOTJTOR@10.1.11.6>;tag=as1f3fbb2c
Call-ID: db9c8273-d5d7e108@192.168.0.105
CSeq: 35766 REGISTER
Server: Asterisk PBX 1.6.2.17.2
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="29943bbb"
Content-Length: 0
------------------
SIP.CONF
[general]
context=ECO
allowoverlap=yes
disallow=all
allow=ulaw
allow=alaw
bindaddr=0.0.0.0
[ECOTJTOR]
deny=0.0.0.0/0.0.0.0
dtmfmode=rfc2833
canreinvite=no
type=friend
username=ECOTJTOR
secret=123456
host=dynamic
nat=yes
qualify=yes
port=5060
permit=0.0.0.0/0.0.0.0
context=ECO
[ECOTJVR]
deny=0.0.0.0/0.0.0.0
dtmfmode=rfc2833
canreinvite=no
type=friend
username=ECOTJVR
secret=123456
host=dynamic
nat=yes
qualify=yes
port=5060
permit=0.0.0.0/0.0.0.0
context=ECO
Este es el panorama.
1 Servidor Asterisk 1.6 (Core)
Telefonos Cisco SPA 301
Tengo unas VPN entre las sucursales con Fortigate 60c.
El problema es un error SIP/2.0 401 Unauthorized. Lo confuso es que si tengo 2 usuarios en la VPN uno se conecta y el otro no y en algunas estaciones ninguno, y en otras los dos si se conectan sin ningun problema, las configuraciones de los telefonos y usuarios sip sn identicas y si tomo un usuario que no se conecte y lo pruebo con un softphone dentro de la red local de asterisk, este se conecta sin ningun problema.
Les paso mi debug y configuracion.
<------------>
Scheduling destruction of SIP dialog 'db9c8273-d5d7e108@192.168.0.105' in 32000 ms (Method: REGISTER)
<--- SIP read from UDP:192.168.0.105:5060 --->
REGISTER sip:10.1.11.6:6512 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.105:5060;branch=z9hG4bK-99533825
From: "Eco Toreo" <sip:ECOTJTOR@10.1.11.6>;tag=cdd23179640b94ebo0
To: "Eco Toreo" <sip:ECOTJTOR@10.1.11.6>
Call-ID: db9c8273-d5d7e108@192.168.0.105
CSeq: 35766 REGISTER
Max-Forwards: 70
Contact: "Eco Toreo" <sip:ECOTJTOR@192.168.0.105:5060>;expires=3600
User-Agent: Cisco/SPA301-7.5.2b
Content-Length: 0
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER, UPDATE
Supported: replaces
<------------->
--- (12 headers 0 lines) ---
Sending to 192.168.0.105 : 5060 (NAT)
<--- Transmitting (NAT) to 192.168.0.105:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.0.105:5060;branch=z9hG4bK-99533825;received=192.168.0.105
From: "Eco Toreo" <sip:ECOTJTOR@10.1.11.6>;tag=cdd23179640b94ebo0
To: "Eco Toreo" <sip:ECOTJTOR@10.1.11.6>;tag=as1f3fbb2c
Call-ID: db9c8273-d5d7e108@192.168.0.105
CSeq: 35766 REGISTER
Server: Asterisk PBX 1.6.2.17.2
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="29943bbb"
Content-Length: 0
------------------
SIP.CONF
[general]
context=ECO
allowoverlap=yes
disallow=all
allow=ulaw
allow=alaw
bindaddr=0.0.0.0
[ECOTJTOR]
deny=0.0.0.0/0.0.0.0
dtmfmode=rfc2833
canreinvite=no
type=friend
username=ECOTJTOR
secret=123456
host=dynamic
nat=yes
qualify=yes
port=5060
permit=0.0.0.0/0.0.0.0
context=ECO
[ECOTJVR]
deny=0.0.0.0/0.0.0.0
dtmfmode=rfc2833
canreinvite=no
type=friend
username=ECOTJVR
secret=123456
host=dynamic
nat=yes
qualify=yes
port=5060
permit=0.0.0.0/0.0.0.0
context=ECO
Comentario