[OpenSIPS-Users] 401 unauthorized

Rodrigo Ferreira rodrigo.ferreira at vipway.net.br
Mon Nov 7 13:08:46 CET 2011


Hi guys,

I'm having some troubles with a NAT client.

I have 2 phones (one NATed and one with valid IP).

Making SIP calls between them, everything works fine, the problem starts when I'm trying to receive a call from the PSTN, the NATed client is giving me 401 Uanuthorized, but in the valid IP one, everything is working.

I got this from my ngrep.

U *.*.*.*:5060 -> *.*.*.*:55225
INVITE sip:1630751038@*.*.*.*:5062 SIP/2.0.
Record-Route: <sip:*.*.*.*;lr=on;did=5bf.4529821>.
Content-Type:application/sdp.
To:sip:0151630751038@*.*.*.*.
From:sip:1340101000@*.*.*.*;cpc=ordinary;tag=CC203030373433390080C9D0.
Allow:INVITE,ACK,OPTIONS,BYE,CANCEL,REGISTER,INFO,UPDATE,PRACK,REFER,SUBSCRIBE,NOTIFY.
Supported:100rel.
Expires:120.
Date:Mon, 07 Nov 2011 11:01:49 GMT.
Call-ID:0200CC52308140000000367E at TB007439_VOIP1.TB007439.
CSeq:1 INVITE.
Max-Forwards:69.
Timestamp:8440272.
User-Agent:TB007439.
Contact:sip:1340101000@*.*.*.*:5060.
Via: SIP/2.0/UDP *.*.*.*;branch=z9hG4bKcef9.0ca191b4.0.
Via:SIP/2.0/UDP *.*.*.*:5060;received=200.152.176.62;branch=z9hG4bKF6DBE15131EED68891B500A3455D133D;rport=5060.
Content-Length: 203.
.
v=0.
o=tb640 5 1 IN IP4 *.*.*.*.
s=-.
c=IN IP4 *.*.*.*.
t=0 0.
m=audio 61536 RTP/AVP 0 8 4 18 101 13.
a=fmtp:4 bitrate=6300;annexa=no.
a=rtpmap:101 telephone-event/8000.
a=nortpproxy:yes.


U *.*.*.*:55225 -> *.*.*.*:5060
SIP/2.0 401 Unauthorized.
To:sip:0151630751038@*.*.*.*;tag=7f18aab466db6f88i2.
From:sip:1340101000@*.*.*.*;cpc=ordinary;tag=CC203030373433390080C9D0.
Call-ID:0200CC52308140000000367E at TB007439_VOIP1.TB007439.
CSeq:1 INVITE.
Via: SIP/2.0/UDP *.*.*.*;branch=z9hG4bKcef9.0ca191b4.0.
Via:SIP/2.0/UDP *.*.*.*:5060;received=*.*.*.*;branch=z9hG4bKF6DBE15131EED68891B500A3455D133D;rport=5060.
Record-Route: <sip:*.*.*.*;lr=on;did=5bf.4529821>.
Timestamp:8440272.
Server: Linksys/SPA942-5.1.15(a).
WWW-Authenticate: Digest realm="*.*.*.*", nonce="178352f8", qop="auth", algorithm=md5.
Content-Length: 0.
.


I have rtpproxy for NATed clients.

Any clues?

Eng.º Rodrigo Ferreira
Supervisor de Telecomunicações
Fone: (13) 4010-1037
Cel: (13) 9615-7774
VIPWay Serviços de Telecomunicações LTDA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20111107/52d02930/attachment.htm>


More information about the Users mailing list