[Spce-user] Please let me know why I faced 401/403(Unauthorized/Invalid To-URI Detected).

David Ho rea1ity at kaist.ac.kr
Tue Mar 19 06:17:36 EDT 2013


p{margin:0;padding:0;}


Hi all,

I tried to register my PSTN Gateway with SIPWISE.
 
the following is communicate log between PSTN Gateway and SIPWISE.
 
Please see the following log;
============================================================================
REGISTER sip:sip.baekdoo.local SIP/2.0
Via:SIP/2.0/UDP 192.168.102.254:5060;branch=z9hG4bK1129594316
From:<sip:5799128 at sip.baekdoo.local>;tag=1561012923
To:<sip:5799128 at sip.baekdoo.local>
Call-ID:952467015 at 192.168.102.254
CSeq:20 REGISTER
Contact:*
Max-Forwards: 70
Expires: 0
user-agent: HUMAN TECHNOLOGY - HMG-1016
Allow:INVITE, CANCEL, PRACK, REFER, ACK, INFO, BYE, NOTIFY
Content-Length:0
 
SIP/2.0 100 Trying
Via:SIP/2.0/UDP 192.168.102.254:5060;rport=5060;branch=z9hG4bK1129594316
From:<sip:5799128 at sip.baekdoo.local>;tag=1561012923
To:<sip:5799128 at sip.baekdoo.local>
Call-ID:952467015 at 192.168.102.254
CSeq:20 REGISTER
Server: Sipwise NGCP Proxy 2.X
Content-Length: 0
 
SIP/2.0 401 Unauthorized
Via:SIP/2.0/UDP 192.168.102.254:5060;rport=5060;branch=z9hG4bK1129594316
From:<sip:5799128 at sip.baekdoo.local>;tag=1561012923
To:<sip:5799128 at sip.baekdoo.local>;tag=1d24a28a0bded6c40d31e6db8aab9ac6.1edb
Call-ID:952467015 at 192.168.102.254
CSeq:20 REGISTER
WWW-Authenticate: Digest realm="sip.baekdoo.local", nonce="UUgkOlFIIw4AagrF0Gf5ISH7uv3SM61l"
Server: Sipwise NGCP Proxy 2.X
Content-Length: 0
 
REGISTER sip:sip.baekdoo.local SIP/2.0
Via:SIP/2.0/UDP 192.168.102.254:5060;branch=z9hG4bK1374480614
From:<sip:5799128 at sip.baekdoo.local>;tag=1784607549
To:<sip:5799128 at sip.baekdoo.local>
Call-ID:952467015 at 192.168.102.254
CSeq:21 REGISTER
Contact:*
Authorization:Digest username="testuser4", realm="sip.baekdoo.local", nonce="UUgkOlFIIw4AagrF0Gf5ISH7uv3SM61l", uri="sip:sip.baekdoo.local", response="ff2c8b1a5c065d441453fed04e3904f6", algorithm=MD5
Max-Forwards: 70
Expires: 0
user-agent: HUMAN TECHNOLOGY - HMG-1016
Allow:INVITE, CANCEL, PRACK, REFER, ACK, INFO, BYE, NOTIFY
Content-Length:0
 
SIP/2.0 100 Trying
Via:SIP/2.0/UDP 192.168.102.254:5060;rport=5060;branch=z9hG4bK1374480614
From:<sip:5799128 at sip.baekdoo.local>;tag=1784607549
To:<sip:5799128 at sip.baekdoo.local>
Call-ID:952467015 at 192.168.102.254
CSeq:21 REGISTER
Server: Sipwise NGCP Proxy 2.X
Content-Length: 0
 
SIP/2.0 403 Invalid To-URI Detected
Via:SIP/2.0/UDP 192.168.102.254:5060;rport=5060;branch=z9hG4bK1374480614
From:<sip:5799128 at sip.baekdoo.local>;tag=1784607549
To:<sip:5799128 at sip.baekdoo.local>;tag=1d24a28a0bded6c40d31e6db8aab9ac6.4d11
Call-ID:952467015 at 192.168.102.254
CSeq:21 REGISTER
Server: Sipwise NGCP Proxy 2.X
Content-Length: 0
 
REGISTER sip:sip.baekdoo.local SIP/2.0
Via:SIP/2.0/UDP 192.168.102.254:5060;branch=z9hG4bK3917095761
From:<sip:5799128 at sip.baekdoo.local>;tag=1232014036
To:<sip:5799128 at sip.baekdoo.local>
Call-ID:94144624 at 192.168.102.254
CSeq:20 REGISTER
Contact:<sip:5799128 at 192.168.102.254:5060>
Max-Forwards: 70
Expires: 3600
user-agent: HUMAN TECHNOLOGY - HMG-1016
Allow:INVITE, CANCEL, PRACK, REFER, ACK, INFO, BYE, NOTIFY
Content-Length:0
 
SIP/2.0 100 Trying
Via:SIP/2.0/UDP 192.168.102.254:5060;rport=5060;branch=z9hG4bK3917095761
From:<sip:5799128 at sip.baekdoo.local>;tag=1232014036
To:<sip:5799128 at sip.baekdoo.local>
Call-ID:94144624 at 192.168.102.254
CSeq:20 REGISTER
Server: Sipwise NGCP Proxy 2.X
Content-Length: 0
 
SIP/2.0 401 Unauthorized
Via:SIP/2.0/UDP 192.168.102.254:5060;rport=5060;branch=z9hG4bK3917095761
From:<sip:5799128 at sip.baekdoo.local>;tag=1232014036
To:<sip:5799128 at sip.baekdoo.local>;tag=1d24a28a0bded6c40d31e6db8aab9ac6.98b4
Call-ID:94144624 at 192.168.102.254
CSeq:20 REGISTER
WWW-Authenticate: Digest realm="sip.baekdoo.local", nonce="UUgkP1FIIxO9M9CJvgTf7zCTDIambZIq"
Server: Sipwise NGCP Proxy 2.X
Content-Length: 0
 
REGISTER sip:sip.baekdoo.local SIP/2.0
Via:SIP/2.0/UDP 192.168.102.254:5060;branch=z9hG4bK517439459
From:<sip:5799128 at sip.baekdoo.local>;tag=192689838
To:<sip:5799128 at sip.baekdoo.local>
Call-ID:94144624 at 192.168.102.254
CSeq:21 REGISTER
Contact:<sip:5799128 at 192.168.102.254:5060>
Authorization:Digest username="testuser4", realm="sip.baekdoo.local", nonce="UUgkP1FIIxO9M9CJvgTf7zCTDIambZIq", uri="sip:sip.baekdoo.local", response="ef1a60da2d0e72ad5bad87ebaa551626", algorithm=MD5
Max-Forwards: 70
Expires: 3600
user-agent: HUMAN TECHNOLOGY - HMG-1016
Allow:INVITE, CANCEL, PRACK, REFER, ACK, INFO, BYE, NOTIFY
Content-Length:0
 
SIP/2.0 100 Trying
Via:SIP/2.0/UDP 192.168.102.254:5060;rport=5060;branch=z9hG4bK517439459
From:<sip:5799128 at sip.baekdoo.local>;tag=192689838
To:<sip:5799128 at sip.baekdoo.local>
Call-ID:94144624 at 192.168.102.254
CSeq:21 REGISTER
Server: Sipwise NGCP Proxy 2.X
Content-Length: 0
 
SIP/2.0 403 Invalid To-URI Detected
Via:SIP/2.0/UDP 192.168.102.254:5060;rport=5060;branch=z9hG4bK517439459
From:<sip:5799128 at sip.baekdoo.local>;tag=192689838
To:<sip:5799128 at sip.baekdoo.local>;tag=1d24a28a0bded6c40d31e6db8aab9ac6.a338
Call-ID:94144624 at 192.168.102.254
CSeq:21 REGISTER
Server: Sipwise NGCP Proxy 2.X
Content-Length: 0
=============================================================================
 
As refer the upper log, PSTN gateway tried three times registerating to SIPWISE but The SIPWISE server didn't register PSTN gateway caused by 
 
unathorized(401) and last time received message as Invalid To-URI Detected(403).
 
So I tried several times that I modified values it related authorized with WISESIP server at PSTN Gateway.
 
You could see the values what I could modified it attached as image file name is PSTN_Gateway.png
 
There have three values(Represented number, ID, Password) it needed to modify if PSTN gateway could register to SIPWISE.
 
But results are still same like upper log.
 
Also I attached the image file(test-gw-1.png) it could you know how to configured at SIP Peerings menu in SIPWISE server.
 
Sorry for long message so it could take your time if you could read it.
 
But I really want to know what is problemed.
 
It'll be appreciate give me advise to solve this problem.

Regards,

David Ho.

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20130319/e29aee08/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-gw-1.png
Type: application/octet-stream
Size: 51372 bytes
Desc: not available
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20130319/e29aee08/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PSTN_Gateway.png
Type: application/octet-stream
Size: 11219 bytes
Desc: not available
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20130319/e29aee08/attachment-0001.png>


More information about the Spce-user mailing list