[Spce-user] Unauthorised

Daniel Grotti dgrotti at sipwise.com
Wed Nov 6 09:37:09 EST 2013


Martin,

the second REGISTER with credentials here.
We have to options here, the client doesn't receive the 401 message (so
it can't generate the REGISTER with credentials) or the client somehow
is broken and doesn't reply with a new REGISTER with credentials.

Can you check if the client is receiving the 401 message ?

Daniel






On 11/06/2013 03:25 PM, Martin Wong wrote:
> Hi Daniel, please see the following where a.a.a.a is the SPCE server,
> and x.x.x.x is the originating IP
> 
> This mwhome subscriber is under the domain a.a.a.a and using X-lite, it
> works fine.
> 
> Thanks.
> 
> #############
> U 2013/11/07 01:22:03.819704 x.x.x.x:5060 -> a.a.a.a:5067
> REGISTER sip:a.a.a.a SIP/2.0'
> Via: SIP/2.0/UDP
> x.x.x.x:5060;branch=z9hG4bK38909c9807812cbfad758a6261d2b47;rport'
> From: "mynumber" <sip:mwhome at a.a.a.a>;tag=1629839185'
> To: "mynumber" <sip:mwhome at a.a.a.a>'
> Call-ID: 2636612795 at 192_168_7_100'
> CSeq: 3 REGISTER'
> Contact: <sip:mwhome at x.x.x.x:5060>'
> Max-Forwards: 70'
> User-Agent: A580 IP/022270000000'
> Expires: 180'
> Allow: INVITE, ACK, CANCEL, BYE, OPTIONS, INFO, REFER, SUBSCRIBE, NOTIFY'
> Content-Length: 0'
> '
> 
> #
> U 2013/11/07 01:22:03.819903 127.0.0.1:5060 <http://127.0.0.1:5060> ->
> 127.0.0.1:5062 <http://127.0.0.1:5062>
> REGISTER sip:a.a.a.a SIP/2.0'
> Via: SIP/2.0/UDP
> 127.0.0.1;branch=z9hG4bKada9.fa5deb525cfd8d1dda86eb547cbcde21.0'
> Via: SIP/2.0/UDP
> x.x.x.x:5060;branch=z9hG4bK38909c9807812cbfad758a6261d2b47;rport=5060'
> From: "mynumber" <sip:mwhome at a.a.a.a>;tag=1629839185'
> To: "mynumber" <sip:mwhome at a.a.a.a>'
> Call-ID: 2636612795 at 192_168_7_100'
> CSeq: 3 REGISTER'
> Contact: <sip:mwhome at x.x.x.x:5060>'
> Max-Forwards: 69'
> User-Agent: A580 IP/022270000000'
> Expires: 180'
> Allow: INVITE, ACK, CANCEL, BYE, OPTIONS, INFO, REFER, SUBSCRIBE, NOTIFY'
> Content-Length: 0'
> P-NGCP-Src-Ip: x.x.x.x'
> P-NGCP-Src-Port: 5060'
> P-NGCP-Src-Proto: udp'
> P-NGCP-Src-Af: 4'
> P-Sock-Info: udp:a.a.a.a:5067'
> Path: <sip:lb at 127.0.0.1
> <mailto:sip%3Alb at 127.0.0.1>;lr;socket='sip:a.a.a.a:5067'>'
> '
> 
> #
> U 2013/11/07 01:22:03.820014 127.0.0.1:5062 <http://127.0.0.1:5062> ->
> 127.0.0.1:5060 <http://127.0.0.1:5060>
> SIP/2.0 100 Trying'
> Via: SIP/2.0/UDP
> 127.0.0.1;branch=z9hG4bKada9.fa5deb525cfd8d1dda86eb547cbcde21.0'
> Via: SIP/2.0/UDP
> x.x.x.x:5060;branch=z9hG4bK38909c9807812cbfad758a6261d2b47;rport=5060'
> From: "mynumber" <sip:mwhome at a.a.a.a>;tag=1629839185'
> To: "mynumber" <sip:mwhome at a.a.a.a>'
> Call-ID: 2636612795 at 192_168_7_100'
> CSeq: 3 REGISTER'
> P-Out-Socket: udp:a.a.a.a:5067'
> Server: Sipwise NGCP Proxy 2.X'
> Content-Length: 0'
> '
> 
> #
> U 2013/11/07 01:22:03.820128 a.a.a.a:5067 -> x.x.x.x:5060
> SIP/2.0 100 Trying'
> Via: SIP/2.0/UDP
> x.x.x.x:5060;branch=z9hG4bK38909c9807812cbfad758a6261d2b47;rport=5060'
> From: "mynumber" <sip:mwhome at a.a.a.a>;tag=1629839185'
> To: "mynumber" <sip:mwhome at a.a.a.a>'
> Call-ID: 2636612795 at 192_168_7_100'
> CSeq: 3 REGISTER'
> Server: Sipwise NGCP Proxy 2.X'
> Content-Length: 0'
> '
> 
> #
> U 2013/11/07 01:22:03.820315 127.0.0.1:5062 <http://127.0.0.1:5062> ->
> 127.0.0.1:5060 <http://127.0.0.1:5060>
> SIP/2.0 401 Unauthorized'
> Via: SIP/2.0/UDP
> 127.0.0.1;branch=z9hG4bKada9.fa5deb525cfd8d1dda86eb547cbcde21.0;rport=5060'
> Via: SIP/2.0/UDP
> x.x.x.x:5060;branch=z9hG4bK38909c9807812cbfad758a6261d2b47;rport=5060'
> From: "mynumber" <sip:mwhome at a.a.a.a>;tag=1629839185'
> To: "mynumber"
> <sip:mwhome at a.a.a.a>;tag=1d24a28a0bded6c40d31e6db8aab9ac6.1a7c'
> Call-ID: 2636612795 at 192_168_7_100'
> CSeq: 3 REGISTER'
> P-Out-Socket: udp:a.a.a.a:5067'
> WWW-Authenticate: Digest realm="a.a.a.a",
> nonce="UnpRt1J6UIvQxO4+PyWeqayk3PIexvLL"'
> Server: Sipwise NGCP Proxy 2.X'
> Content-Length: 0'
> '
> 
> #
> U 2013/11/07 01:22:03.820449 a.a.a.a:5067 -> x.x.x.x:5060
> SIP/2.0 401 Unauthorized'
> Via: SIP/2.0/UDP
> x.x.x.x:5060;branch=z9hG4bK38909c9807812cbfad758a6261d2b47;rport=5060'
> From: "mynumber" <sip:mwhome at a.a.a.a>;tag=1629839185'
> To: "mynumber"
> <sip:mwhome at a.a.a.a>;tag=1d24a28a0bded6c40d31e6db8aab9ac6.1a7c'
> Call-ID: 2636612795 at 192_168_7_100'
> CSeq: 3 REGISTER'
> WWW-Authenticate: Digest realm="a.a.a.a",
> nonce="UnpRt1J6UIvQxO4+PyWeqayk3PIexvLL"'
> Server: Sipwise NGCP Proxy 2.X'
> Content-Length: 0'
> '
> 
> On Wed, Nov 6, 2013 at 7:27 PM, Daniel Grotti <dgrotti at sipwise.com
> <mailto:dgrotti at sipwise.com>> wrote:
> 
>     > SIP/2.0 401 Unauthorized'
>     > Via: SIP/2.0/UDP
>     >
>     127.0.0.1;branch=z9hG4bKada9.44ab841ba58bccfe98ea05cb9d6877fa.0;rport=5060'
>     > Via: SIP/2.0/UDP
>     >
>     x.x.x.x:5060;branch=z9hG4bK1b4eb087927d3de642df3a24516b92c0;rport=5060'
>     > From: "12345678" <sip:mwhome at a.a.a.a>;tag=2710412683'
>     > To: "12345678"
>     > <sip:mwhome at a.a.a.a>;tag=1d24a28a0bded6c40d31e6db8aab9ac6.349b'
>     > Call-ID: 2636612795 at 192_168_7_100'
>     > CSeq: 3 REGISTER'
>     > P-Out-Socket: udp:a.a.a.a:5067'
>     > WWW-Authenticate: Digest realm="a.a.a.a",
>     > nonce="Unl7MFJ5egT6oLK7RFftDdsJGjHuzMty"'
>     > Server: Sipwise NGCP Proxy 2.X'
>     > Content-Length: 0'
>     >
>     >
>     >
>     > U 2013/11/06 10:06:44.597694 a.a.a.a:5067 -> x.x.x.x:5060
>     > SIP/2.0 401 Unauthorized'
>     > Via: SIP/2.0/UDP
>     >
>     x.x.x.x:5060;branch=z9hG4bK1b4eb087927d3de642df3a24516b92c0;rport=5060'
>     > From: "0395791635" <sip:mwhome at a.a.a.a>;tag=2710412683'
>     > To: "0395791635 <tel:0395791635>"
>     > <sip:mwhome at a.a.a.a>;tag=1d24a28a0bded6c40d31e6db8aab9ac6.349b'
>     > Call-ID: 2636612795 at 192_168_7_100'
>     > CSeq: 3 REGISTER'
>     > WWW-Authenticate: Digest realm="a.a.a.a",
>     > nonce="Unl7MFJ5egT6oLK7RFftDdsJGjHuzMty"'
>     > Server: Sipwise NGCP Proxy 2.X'
>     > Content-Length: 0'
>     >
>     > Kamailio proxy log says :
>     >
>     > Nov  6 10:08:08 km3 /usr/sbin/kamailio[2321]: INFO: <script>: New
>     > request - M=REGISTER R=sip:a.a.a.a F=sip:mwhome at a.a.a.a
>     > T=sip:mwhome at a.a.a.a IP=x.x.x.x:5060 (127.0.0.1:5060
>     <http://127.0.0.1:5060>
> 
> 




More information about the Spce-user mailing list