[reSIProcate] Register to other SipServer
Hi, everyone.
How can I use the resip to send Register message?
I have make a SipServer(works like a B2BUA), it can handle Regiser、Invite requests.
Now I want the SipServer Register to the upper SipServer. And when I send the Register with password, it can't be responsed 200OK.
I mean Register as a UAC with authorized.
So does anyone know the problem?
I attach to the wireshark file.
Óû§Ãû£ºf94ce36369fb77650520cb82d8215e0f
9920bf7d75d500469e36ed4f0b20cf36
REGISTER:sip:200000103123066000@172.20.40.29:5060
23bb085eb7b887c2577a634b0073e292
e583a35620d1190169cad951a4b96ce8
35e1e6f066b42311084b010dcd0a3467
REGISTER sip:200000103123066000@60.190.252.23:5060 SIP/2.0
Via: SIP/2.0/UDP
172.20.40.29:5060;branch=z9hG4bK-524287-1---531c5b7d3650a343;rport
Max-Forwards: 70
Contact: <sip:20000000011180100600@172.20.40.29:5060>
To: <sip:200000103123066000@60.190.252.23:5060>
From: <sip:20000000011180100600@172.20.40.29:5060>;tag=a401e058
Call-ID: OuruDka15wu7jM4dIf2FsA..
CSeq: 1 REGISTER
Expires: 200
Allow: REGISTER, INVITE, ACK, BYE, CANCEL, MESSAGE, INFO, SUBSCRIBE, NOTIFY
Content-Length: 0
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP
172.20.40.29:5060;branch=z9hG4bK-524287-1---531c5b7d3650a343;rport
To: <sip:200000103123066000@60.190.252.23:5060>
From: <sip:20000000011180100600@172.20.40.29:5060>;tag=a401e058
Contact: <sip:20000000011180100600@172.20.40.29:5060>
Call-ID: OuruDka15wu7jM4dIf2FsA..
CSeq: 1 REGISTER
WWW-Authenticate: Digest
realm="2000000001",nonce="b19e33ba19e18048a2c805b34cc8ebdb"
Max-Forwards: 70
Allow: REGISTER, INVITE, ACK, BYE, CANCEL, MESSAGE, INFO, SUBSCRIBE, NOTIFY
Content-Length: 0
REGISTER sip:200000103123066000@60.190.252.23:5060 SIP/2.0
Via: SIP/2.0/UDP
172.20.40.29:5060;branch=z9hG4bK-524287-1---da595170a255776a;rport
Max-Forwards: 70
Contact: <sip:20000000011180100600@172.20.40.29:5060>
To: <sip:200000103123066000@60.190.252.23:5060>
From: <sip:20000000011180100600@172.20.40.29:5060>;tag=c46d6735
Call-ID: pb-uqQSEWUvvi5uqiGJuKQ..
CSeq: 1 REGISTER
Expires: 200
Allow: REGISTER, INVITE, ACK, BYE, CANCEL, MESSAGE, INFO, SUBSCRIBE, NOTIFY
Authorization: Digest
username="200000103123066000",realm="2000000001",nonce="b19e33ba19e18048a2c805b34cc8ebdb",uri="sip:200000103123066000@60.190.252.23:5060",response="6eb2452b210a59c8ee08a6df3b1cc8f0",algorithm=MD5
Content-Length: 0
REGISTER sip:200000103123066000@60.190.252.23:5060 SIP/2.0
Via: SIP/2.0/UDP
172.20.40.29:5060;branch=z9hG4bK-524287-1---da595170a255776a;rport
Max-Forwards: 70
Contact: <sip:20000000011180100600@172.20.40.29:5060>
To: <sip:200000103123066000@60.190.252.23:5060>
From: <sip:20000000011180100600@172.20.40.29:5060>;tag=c46d6735
Call-ID: pb-uqQSEWUvvi5uqiGJuKQ..
CSeq: 1 REGISTER
Expires: 200
Allow: REGISTER, INVITE, ACK, BYE, CANCEL, MESSAGE, INFO, SUBSCRIBE, NOTIFY
Authorization: Digest
username="200000103123066000",realm="2000000001",nonce="b19e33ba19e18048a2c805b34cc8ebdb",uri="sip:200000103123066000@60.190.252.23:5060",response="6eb2452b210a59c8ee08a6df3b1cc8f0",algorithm=MD5
Content-Length: 0
REGISTER sip:200000103123066000@60.190.252.23:5060 SIP/2.0
Via: SIP/2.0/UDP
172.20.40.29:5060;branch=z9hG4bK-524287-1---da595170a255776a;rport
Max-Forwards: 70
Contact: <sip:20000000011180100600@172.20.40.29:5060>
To: <sip:200000103123066000@60.190.252.23:5060>
From: <sip:20000000011180100600@172.20.40.29:5060>;tag=c46d6735
Call-ID: pb-uqQSEWUvvi5uqiGJuKQ..
CSeq: 1 REGISTER
Expires: 200
Allow: REGISTER, INVITE, ACK, BYE, CANCEL, MESSAGE, INFO, SUBSCRIBE, NOTIFY
Authorization: Digest
username="200000103123066000",realm="2000000001",nonce="b19e33ba19e18048a2c805b34cc8ebdb",uri="sip:200000103123066000@60.190.252.23:5060",response="6eb2452b210a59c8ee08a6df3b1cc8f0",algorithm=MD5
Content-Length: 0
REGISTER sip:200000103123066000@60.190.252.23:5060 SIP/2.0
Via: SIP/2.0/UDP
172.20.40.29:5060;branch=z9hG4bK-524287-1---da595170a255776a;rport
Max-Forwards: 70
Contact: <sip:20000000011180100600@172.20.40.29:5060>
To: <sip:200000103123066000@60.190.252.23:5060>
From: <sip:20000000011180100600@172.20.40.29:5060>;tag=c46d6735
Call-ID: pb-uqQSEWUvvi5uqiGJuKQ..
CSeq: 1 REGISTER
Expires: 200
Allow: REGISTER, INVITE, ACK, BYE, CANCEL, MESSAGE, INFO, SUBSCRIBE, NOTIFY
Authorization: Digest
username="200000103123066000",realm="2000000001",nonce="b19e33ba19e18048a2c805b34cc8ebdb",uri="sip:200000103123066000@60.190.252.23:5060",response="6eb2452b210a59c8ee08a6df3b1cc8f0",algorithm=MD5
Content-Length: 0
REGISTER sip:200000103123066000@60.190.252.23:5060 SIP/2.0
Via: SIP/2.0/UDP
172.20.40.29:5060;branch=z9hG4bK-524287-1---da595170a255776a;rport
Max-Forwards: 70
Contact: <sip:20000000011180100600@172.20.40.29:5060>
To: <sip:200000103123066000@60.190.252.23:5060>
From: <sip:20000000011180100600@172.20.40.29:5060>;tag=c46d6735
Call-ID: pb-uqQSEWUvvi5uqiGJuKQ..
CSeq: 1 REGISTER
Expires: 200
Allow: REGISTER, INVITE, ACK, BYE, CANCEL, MESSAGE, INFO, SUBSCRIBE, NOTIFY
Authorization: Digest
username="200000103123066000",realm="2000000001",nonce="b19e33ba19e18048a2c805b34cc8ebdb",uri="sip:200000103123066000@60.190.252.23:5060",response="6eb2452b210a59c8ee08a6df3b1cc8f0",algorithm=MD5
Content-Length: 0
REGISTER sip:200000103123066000@60.190.252.23:5060 SIP/2.0
Via: SIP/2.0/UDP
172.20.40.29:5060;branch=z9hG4bK-524287-1---da595170a255776a;rport
Max-Forwards: 70
Contact: <sip:20000000011180100600@172.20.40.29:5060>
To: <sip:200000103123066000@60.190.252.23:5060>
From: <sip:20000000011180100600@172.20.40.29:5060>;tag=c46d6735
Call-ID: pb-uqQSEWUvvi5uqiGJuKQ..
CSeq: 1 REGISTER
Expires: 200
Allow: REGISTER, INVITE, ACK, BYE, CANCEL, MESSAGE, INFO, SUBSCRIBE, NOTIFY
Authorization: Digest
username="200000103123066000",realm="2000000001",nonce="b19e33ba19e18048a2c805b34cc8ebdb",uri="sip:200000103123066000@60.190.252.23:5060",response="6eb2452b210a59c8ee08a6df3b1cc8f0",algorithm=MD5
Content-Length: 0