[Spce-user] mr4.1.1 ¿Problem between LB and Proxy?

Sergio Serrano sergio.serrano at avanzada7.com
Fri Jan 29 15:35:41 EST 2016


Thanks Andreas,

	this is the 401 message between proxy and lb. I think that this
message is correct. Do you see something extrange? LB must forward
REPLY to 5.40.159.12:5060 port but I can't see any packet. It is
possible that some internal mechanism of kamailio lb as pike or
something else could block this packets?

2016/01/29 21:28:09.515777 127.0.0.1:5062 -> 127.0.0.1:60060
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP
127.0.0.1:60060;branch=z9hG4bKa532.b552b856e253af48ba389a9dbc2df8da.0;r
port=60060
Via: SIP/2.0/UDP
5.40.159.212:5060;received=5.40.159.212;branch=z9hG4bK707446208;rport=5
060
From: <sip:USUARIOA at 5.40.159.205:60060;user=phone>;tag=1014564898
To: <sip:USUARIOA at 5.40.159.205:60060;user=phone>;tag=1d24a28a0bded6c40d
31e6db8aab9ac6.3937
Call-ID: 895223361-5060-2 at F.EA.BFJ.CBC
CSeq: 2000 REGISTER
P-Out-Socket: udp:5.40.159.205:60060
P-NGCP-Auth-IP: 5.40.159.212
P-NGCP-Auth-UA: Grandstream HT701 1.0.8.2
WWW-Authenticate: Digest realm="5.40.159.205",
nonce="VqvMhVary1kL5aaS7egMp641OcDsn+kj"
Server: Sipwise NGCP Proxy 4.X
Content-Length: 0



regards,


Sergio


El vie, 29-01-2016 a las 16:31 +0100, Andreas Granig escribió:
> Hi,
> 
> You'd need to post the 401 you captured on the wire between proxy and
> lb
> for us to see how the lb is supposed to behave.
> 
> Since the lb is acting totally stateless, it needs the correct
> information where to forward a reply to in the sip message, as it
> doesn't store any states.
> 
> Usually replies are routed according to the Via header, but certain
> information like telling the lb which socket to use for sending the
> reply is encoded in other headers. We'd need to see the message to
> tell
> you what's going on.
> 
> Andreas
> 
> On 01/28/2016 10:31 PM, Sergio Serrano wrote:
> > I'm sorry but I can't explain well. response are correct from
> > 12.0.0.1:5062(Proxy) and 127.0.0.1:5060(LB) but then there is no
> > traffic
> > from public IP address of LB and public IP of subscriber. It's
> > something
> > like this:
> > 
> > A.A.A.A(subscriber)  -REGISTER-> B.B.B.B.(LB)
> > 127.0.0.1:5060(LB) -REGISTER-> 127.0.0.1:5062(PROXY)
> > 127.0.0.1:5062(PROXY) -100 TRYING-> 127.0.0.1:5062(LB)
> > Here, LB doesn't send 100 TRYING to subscriber
> > 127.0.0.1:5062(PROXY) -401 Unauthorized-> 127.0.0.1:5062(LB)
> > Here, LB doesn't send 401 Unauthorized to subscriber
> > Then subscriber resend REGISTER again
> > 
> > and this loop is forever. 
> > 
> > In kamailio-lb log I can see the message
> > 2016-01-28T18:23:16.178771+01:00 sbc lb[14381]: DEBUG: <core>
> > [forward.c:835]: do_forward_reply(): reply forwarded to
> > A.A.A.A:5060,
> > but LB never send reply to subscriber.
> > 
> > it could be possible?
> > 
> > Regards
> > 
> > Sergio
> > 
> > 
> > El jue, 28-01-2016 a las 21:20 +0000, Marco Teixeira escribió:
> > > Hi,
> > > 
> > > Traffic between lb and proxy is on 127.0.0.1
> > > Sure you can't see it with "ngrep-sip br" ?
> > > 
> > > 
> > > 
> > > ---
> > > Cumprimentos / Best regards
> > > 
> > > Marco
> > > ---
> > > 
> > > 
> > > On Thu, Jan 28, 2016 at 6:27 PM, Sergio Serrano
> > > <sergio.serrano at avanzada7.com <mailto:
> > > sergio.serrano at avanzada7.com>>
> > > wrote:
> > > > We have an installation with a extrange problem. Some
> > > > subscribers,
> > > > send a REGISTER from A.A.A.A, LB receive REGISTER and resend
> > > > REGISTER
> > > > to Proxy, the proxy send 100 Trying and 401 but with sngrep,
> > > > ngrep-sip or something else I can't view responses from LB to
> > > > subscriber, but in the log of LB I can see
> > > > 2016-01-28T18:23:16.178771+01:00 sbc lb[14381]: DEBUG: <core>
> > > > [forward.c:835]: do_forward_reply(): reply forwarded to
> > > > A.A.A.A:5060
> > > > 
> > > > It's so extrange but I trust more in tshark, ngrep than the
> > > > kamailio-lb log. Anyone know if there are some configuration or
> > > > bug for this behaviour?
> > > > 
> > > > If someone could help me I will be pleasant because I can't see
> > > > which is the problem.
> > > > 
> > > > Thanks,
> > > > 
> > > > Sergio
> > > > 
> > > > _______________________________________________
> > > > Spce-user mailing list
> > > > Spce-user at lists.sipwise.com <mailto:Spce-user at lists.sipwise.com
> > > > >
> > > > https://lists.sipwise.com/listinfo/spce-user
> > > > 
> > > 
> > 
> > 
> > _______________________________________________
> > Spce-user mailing list
> > Spce-user at lists.sipwise.com
> > https://lists.sipwise.com/listinfo/spce-user
> > 
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> https://lists.sipwise.com/listinfo/spce-user



More information about the Spce-user mailing list