mediatrix 4404 y digest username (username mismatch have x digest has y)

529 views
Skip to first unread message

paco perez

unread,
Mar 14, 2014, 5:26:26 AM3/14/14
to aster...@googlegroups.com
Saludos.
   Estoy liado con la config de un gateway mediatrix 4404 y un asterisk 1.8, el caso es que, una vez configuradas las extensiones, al parecer, el gateway me manda el mismo digest username en todas las cuentas y asterisk me tira

Total que asterisk me tira un:

[Mar 14 10:23:52] WARNING[7799]: chan_sip.c:14411 check_auth: username mismatch, have <50001>, digest has <50000>
[Mar 14 10:23:52] NOTICE[7799]: chan_sip.c:24969 handle_request_register: Registration from '"50001" <sip:50001@ip_servidor>' failed for ip_origen:5061' - Username/auth name mismatch



Os pego la config y una traza a ver si me podeis echar un cable:

[50000]
type=peer        
username=50000
fromuser=50000
secret=secretoXXXX
host=dynamic
disallow=all
allow=alaw
nat=yes
canreinvite=no
dtmfmode=rfc2833
insecure=port,invite
context=contextoytal
qualify=yes


[50001]
type=peer       
defaultuser=50001
fullname=50001
username=50001
fromuser=50001
secret=secretXXX
host=dynamic
disallow=all
allow=alaw
nat=no
canreinvite=no
dtmfmode=rfc2833
insecure=port,invite
context=contextoytal
qualify=yes


os pego un ejemplo de la traza:

# SE REGISTRA LA EXTENSION 5000
U 2014/03/14 09:57:40.284491 ip_origen:5060 -> ip_servidor:5060
REGISTER sip:ip_servidor SIP/2.0
Via: SIP/2.0/UDP ip_origen:5060;branch=z9hG4bK55b9f325147b30b58
Max-Forwards: 70
From: "50000" <sip:50000@ip_servidor>;tag=3b79699f75
To: "50000" <sip:50000@ip_servidor>
Call-ID: b3a99ee0f34982ed
CSeq: 816786513 REGISTER
Authorization: Digest username="50000",realm="REALMSERVER",nonce="0dc1e7be",uri="sip:ip_servidor",response="989358cad4b1671b1ab3b644b65ab551",algorithm=MD5
Contact: "50000" <sip:50000@ip_origen:5060>;expires=0
Supported: sdp-anat
User-Agent: Mediatrix 4404/v2.0.24.402 44XX-MX-D2000-128
Content-Length: 0
 

# DESAFIO
U 2014/03/14 09:57:40.284824 ip_servidor:5060 -> ip_origen:5060
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP ip_origen:5060;branch=z9hG4bK55b9f325147b30b58;received=ip_origen;rport=5060
From: "50000" <sip:50000@ip_servidor>;tag=3b79699f75
To: "50000" <sip:50000@ip_servidor>;tag=as26012275
Call-ID: b3a99ee0f34982ed
CSeq: 816786513 REGISTER
Server: REALMSERVER
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="REALMSERVER", nonce="34183101"
Content-Length: 0
 

# REGISTRO 50001
U 2014/03/14 09:57:40.327391 ip_origen:5061 -> ip_servidor:5060
REGISTER sip:ip_servidor SIP/2.0
Via: SIP/2.0/UDP ip_origen:5061;branch=z9hG4bK4c2030a305870ea5b
Max-Forwards: 70
From: "50001" <sip:50001@ip_servidor>;tag=bf9f149521
To: "50001" <sip:50001@ip_servidor>
Call-ID: 175f32c9ed4655cb
CSeq: 394923006 REGISTER
Contact: "50001" <sip:50001@ip_origen:5061>
Supported: sdp-anat
User-Agent: Mediatrix 4404/v2.0.24.402 44XX-MX-D2000-128
Content-Length: 0
 

# DESAFIO
U 2014/03/14 09:57:40.327632 ip_servidor:5060 -> ip_origen:5061
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP ip_origen:5061;branch=z9hG4bK4c2030a305870ea5b;received=ip_origen
From: "50001" <sip:50001@ip_servidor>;tag=bf9f149521
To: "50001" <sip:50001@ip_servidor>;tag=as5a160526
Call-ID: 175f32c9ed4655cb
CSeq: 394923006 REGISTER
Server: REALMSERVER
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="REALMSERVER", nonce="77aa46de"
Content-Length: 0
 



# REGISTRO OK DE 50000
U 2014/03/14 09:57:40.583618 ip_origen:5060 -> ip_servidor:5060
REGISTER sip:ip_servidor SIP/2.0
Via: SIP/2.0/UDP ip_origen:5060;branch=z9hG4bK6bd4673610bc6ca74
Max-Forwards: 70
From: "50000" <sip:50000@ip_servidor>;tag=3b79699f75
To: "50000" <sip:50000@ip_servidor>
Call-ID: b3a99ee0f34982ed
CSeq: 816786514 REGISTER
Authorization: Digest username="50000",realm="REALMSERVER",nonce="34183101",uri="sip:ip_servidor",response="735f622d679649d62bc3e64073dcaac1",algorithm=MD5
Contact: "50000" <sip:50000@ip_origen:5060>;expires=0
Supported: sdp-anat
User-Agent: Mediatrix 4404/v2.0.24.402 44XX-MX-D2000-128
Content-Length: 0
 

# OK AL REGISTRO DE 50000
U 2014/03/14 09:57:40.583956 ip_servidor:5060 -> ip_origen:5060
SIP/2.0 200 OK
Via: SIP/2.0/UDP ip_origen:5060;branch=z9hG4bK6bd4673610bc6ca74;received=ip_origen;rport=5060
From: "50000" <sip:50000@ip_servidor>;tag=3b79699f75
To: "50000" <sip:50000@ip_servidor>;tag=as26012275
Call-ID: b3a99ee0f34982ed
CSeq: 816786514 REGISTER
Server: REALMSERVER
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Expires: 0
Date: Fri, 14 Mar 2014 08:57:40 GMT
Content-Length: 0
 


# REGISTRO DE 50001 CON DIGEST USERNAME = 50000
U 2014/03/14 09:57:40.625055 ip_origen:5061 -> ip_servidor:5060
REGISTER sip:ip_servidor SIP/2.0
Via: SIP/2.0/UDP ip_origen:5061;branch=z9hG4bKff0306e64f3aa0645
Max-Forwards: 70
From: "50001" <sip:50001@ip_servidor>;tag=bf9f149521
To: "50001" <sip:50001@ip_servidor>
Call-ID: 175f32c9ed4655cb
CSeq: 394923007 REGISTER
Authorization: Digest username="50000",realm="REALMSERVER",nonce="77aa46de",uri="sip:ip_servidor",response="4e2ad78fedb66e0e61acd3a343b3cfb0",algorithm=MD5
Contact: "50001" <sip:50001@ip_origen:5061>
Supported: sdp-anat
User-Agent: Mediatrix 4404/v2.0.24.402 44XX-MX-D2000-128
Content-Length: 0
 

# ASTERISK DICE QUE NANAI
U 2014/03/14 09:57:40.625319 ip_servidor:5060 -> ip_origen:5061
SIP/2.0 403 Forbidden (Bad auth)
Via: SIP/2.0/UDP ip_origen:5061;branch=z9hG4bKff0306e64f3aa0645;received=ip_origen
From: "50001" <sip:50001@ip_servidor>;tag=bf9f149521
To: "50001" <sip:50001@ip_servidor>;tag=as5a160526
Call-ID: 175f32c9ed4655cb
CSeq: 394923007 REGISTER
Server: REALMSERVER
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0



¿Alguna idea? Opción en asterisk, en el mediatrix??

Saludos


jorge montero

unread,
Mar 14, 2014, 6:11:26 AM3/14/14
to aster...@googlegroups.com
No entiendo que tiene que ver las extensiones con el GW.

En el 4404 le digo que me tire las llamadas al Asterisk y el Asterisk (como buen B2BUA) se lo tira a la extensión, y a la inversa para las llamadas salientes.

Por eso digo que no entiendo, ¿estan las extensiones dadas de alta en el Mediatrix?

un saludo.

Jorge


--
Este email pertenece a la lista de Asterisk-ES (http://www.asterisk-es.org)
Normas de la lista Asterisk-ES: http://comunidad.asterisk-es.org/index.php?title=Lista:normas-asterisk-es
---
Has recibido este mensaje porque estás suscrito al grupo "asterisk-es" de Grupos de Google.
Para anular tu suscripción a este grupo y dejar de recibir sus mensajes, envía un mensaje a asterisk-es...@googlegroups.com.
Para publicar en este grupo, envía un mensaje a aster...@googlegroups.com.
Visita este grupo en http://groups.google.com/group/asterisk-es .
Para acceder a más opciones, visita https://groups.google.com/d/optout.



--
Un saludo.

Jorge Montero

paco perez

unread,
Mar 14, 2014, 7:56:13 AM3/14/14
to aster...@googlegroups.com
Saludos Jorge
 En primer lugar gracias por tu respuesta, la verdad es que es la primera vez que configuraba un aparato de estos y venia ya "preconfigurado, muy toqueteado vamos" al final he indicado desde asterisk la dirección del gateway via IP sin host=dynamic y  envio y recibo llamadas correctamente. El tema es que el gateway tenia configurados 4 registros sip contra el mismo y no se por que se se liaba el tema del digest username.
   Aunque esta funcionando, si a alguien le ha ocurrido lo mismo me gustaria saber que hizo.

Saludos

Fernando Villares

unread,
Mar 14, 2014, 10:24:02 AM3/14/14
to aster...@googlegroups.com
es lo mismo q con los audiocodes...debes tenerlo configurado como gateway y luego te faltan las extensiones entonces siempre se registra con lo 1ero q le declaraste...y nunca pasa aguas abajo



Reply all
Reply to author
Forward
0 new messages