(SIP/2.0 423 Interval Too Brief) Asterisk y SIP Proxy.

526 views
Skip to first unread message

StyBba

unread,
Apr 13, 2009, 4:16:28 PM4/13/09
to asterisk-es
Buenas tardes,

Compañeros estoy teniendo un problema a la hora de registrar unas
cuentas SIP de un SIP Proxy en un Asterisk en producción, verán tengo
"X" cantidad de cuentas SIP las cuales me han creado en un sip proxy y
debo registrarlas en una central Asterisk para poder hacer uso de
ellas.

El problema es que el SIP Proxy me devuelve el error 423 "Interval Too
Brief" y no se que mas hacer, después de buscar en uno que otro link
creo que tengo una teoría del porque del mensaje de error pero en
realidad no estoy muy seguro...

Verán Asterisk manda el paquete de registro con la opción "Expires:
120" y es entonces cuando el SIP Proxy me devuelve el Mensaje de error
especificando que el valor mínimo de "Expires" es 3600, "Min-Expires:
3600"

Disculpen si lo que estoy diciendo no tiene sentido, pero es lo único
que he encontrado "sospechoso"... adjunto el ngrep filtrando el puerto
5060, les agradeceria si me pudierran ayudar en este caso o guiarme a
descubirir el porque del error.

Saludos y gracias.


Adjunto el ngrep:

cisvoiphds:~# ngrep -d any -P ' ' -W byline -T port 5060
interface: any
filter: (ip or ip6) and ( port 5060 )
#
U +4.539042 10.104.64.106:5060 -> 205.211.192.98:5060
REGISTER sip:205.211.192.98 SIP/2.0
Via: SIP/2.0/UDP 10.104.64.106:5060;branch=z9hG4bK34079a91;rport
From: <sip:508...@205.211.192.98>;tag=as483c62dd
To: <sip:508...@205.211.192.98>
Call-ID: 27948bae3f7ced27...@192.168.1.46
CSeq: 102 REGISTER
User-Agent: Asterisk PBX
Max-Forwards: 70
Expires: 120
Contact: <sip:508...@10.104.64.106>
Event: registration
Content-Length: 0


#
U +0.002212 205.211.192.98:5060 -> 10.104.64.106:5060
SIP/2.0 401 Unauthorized
WWW-Authenticate: Digest
realm="205.211.192.98",nonce="e7b482880c12885b7f9434c1b99cc4e9",opaque="DEADBEEF"
Call-ID: 27948bae3f7ced27...@192.168.1.46
CSeq: 102 REGISTER
From: <sip:508...@205.211.192.98>;tag=as483c62dd
To: <sip:508...@205.211.192.98>;tag=Safari+1+0+7860dd89
Via: SIP/2.0/UDP
10.104.64.106:5060;received=10.104.64.106;rport=5060;branch=z9hG4bK34079a91
Server: Safari
Organization: AMNETHN
Content-Length: 0


#
U +0.000192 10.104.64.106:5060 -> 205.211.192.98:5060
REGISTER sip:205.211.192.98 SIP/2.0
Via: SIP/2.0/UDP 10.104.64.106:5060;branch=z9hG4bK1e3f0a0c;rport
From: <sip:508...@205.211.192.98>;tag=as54963d40
To: <sip:508...@205.211.192.98>
Call-ID: 27948bae3f7ced27...@192.168.1.46
CSeq: 103 REGISTER
User-Agent: Asterisk PBX
Max-Forwards: 70
Authorization: Digest username="5080889", realm="205.211.192.98",
algorithm=MD5, uri="sip:205.211.192.98",
nonce="e7b482880c12885b7f9434c1b99cc4e9",
response="a9f5e13b603c0b3d93feaf5beabeb5ee", opaque="DEADBEEF"
Expires: 120
Contact: <sip:508...@10.104.64.106>
Event: registration
Content-Length: 0


#
U +0.002806 205.211.192.98:5060 -> 10.104.64.106:5060
SIP/2.0 423 Interval Too Brief
From: <sip:508...@205.211.192.98>;tag=as54963d40
To: <sip:508...@205.211.192.98>;tag=Safari+1+0+429d1d17
Via: SIP/2.0/UDP
10.104.64.106:5060;received=10.104.64.106;rport=5060;branch=z9hG4bK1e3f0a0c
Server: Safari
Organization: AMNETHN
Content-Length: 0
Call-ID: 27948bae3f7ced27...@192.168.1.46
CSeq: 103 REGISTER
Min-Expires: 3600

StyBba

unread,
Apr 13, 2009, 4:35:49 PM4/13/09
to asterisk-es
Me auto respondo jejeje...

Efectivamente era el valor por default de registro "Expires: 120"
para solucionarlo modifique el sip.conf agregando defaultexpirey=3600

Y listo!

sip show registry
Host Username Refresh
State Reg.Time
XXX.XXX.XXX.XX:5060 5080889 3585
Registered Mon, 13 Apr 2009 14:34:53

Saludos!
> From: <sip:5080...@205.211.192.98>;tag=as483c62dd
> To: <sip:5080...@205.211.192.98>
> Call-ID: 27948bae3f7ced2740735a4f5c008...@192.168.1.46
> CSeq: 102 REGISTER
> User-Agent: Asterisk PBX
> Max-Forwards: 70
> Expires: 120
> Contact: <sip:5080...@10.104.64.106>
> Event: registration
> Content-Length: 0
>
> #
> U +0.002212 205.211.192.98:5060 -> 10.104.64.106:5060
> SIP/2.0 401 Unauthorized
> WWW-Authenticate: Digest
> realm="205.211.192.98",nonce="e7b482880c12885b7f9434c1b99cc4e9",opaque="DEADBEEF"
> Call-ID: 27948bae3f7ced2740735a4f5c008...@192.168.1.46
> CSeq: 102 REGISTER
> From: <sip:5080...@205.211.192.98>;tag=as483c62dd
> To: <sip:5080...@205.211.192.98>;tag=Safari+1+0+7860dd89
> Via: SIP/2.0/UDP
> 10.104.64.106:5060;received=10.104.64.106;rport=5060;branch=z9hG4bK34079a91
> Server: Safari
> Organization: AMNETHN
> Content-Length: 0
>
> #
> U +0.000192 10.104.64.106:5060 -> 205.211.192.98:5060
> REGISTER sip:205.211.192.98 SIP/2.0
> Via: SIP/2.0/UDP 10.104.64.106:5060;branch=z9hG4bK1e3f0a0c;rport
> From: <sip:5080...@205.211.192.98>;tag=as54963d40
> To: <sip:5080...@205.211.192.98>
> Call-ID: 27948bae3f7ced2740735a4f5c008...@192.168.1.46
> CSeq: 103 REGISTER
> User-Agent: Asterisk PBX
> Max-Forwards: 70
> Authorization: Digest username="5080889", realm="205.211.192.98",
> algorithm=MD5, uri="sip:205.211.192.98",
> nonce="e7b482880c12885b7f9434c1b99cc4e9",
> response="a9f5e13b603c0b3d93feaf5beabeb5ee", opaque="DEADBEEF"
> Expires: 120
> Contact: <sip:5080...@10.104.64.106>
> Event: registration
> Content-Length: 0
>
> #
> U +0.002806 205.211.192.98:5060 -> 10.104.64.106:5060
> SIP/2.0 423 Interval Too Brief
> From: <sip:5080...@205.211.192.98>;tag=as54963d40
> To: <sip:5080...@205.211.192.98>;tag=Safari+1+0+429d1d17
> Via: SIP/2.0/UDP
> 10.104.64.106:5060;received=10.104.64.106;rport=5060;branch=z9hG4bK1e3f0a0c
> Server: Safari
> Organization: AMNETHN
> Content-Length: 0
> Call-ID: 27948bae3f7ced2740735a4f5c008...@192.168.1.46
Reply all
Reply to author
Forward
0 new messages