Dear all,I have OpenSBC-1-1-5_RC3 running in B2BUA UpperReg Mode, deployed it in front of OpenIMSCore.I use uctimsclient as the client. User registrations are being successfully to OpenIMSCore routed through OpenSBC ,but when I make calls,the OpenIMSCore responsed with "403 Forbidden Not Registered!" .But I have registered successfully before sending invite.I searched onlint about this problem,someone say that it maybe because the contact field of the register message and the invite message are different.So I checked the contact field of the register message and the invite message,and I found that they do different!Also,the invite message that OpenSBC forwarded has no "Route" in "Via" field.
So anyone could tell me how to configue or modify the OpenSBC can make it just forwards the invite message but not rewrite?
Below are the messages I catched with wireshark:
uctimsclient IP:10.108.114.161
OpenSBC IP:10.108.115.160
OpenIMSCore IP:10.108.112.3
(1)Source register message(uctimsclient sends to OpenSBC):
REGISTER sip:open-ims.test SIP/2.0
Via: SIP/2.0/UDP 10.108.114.161:5060;rport;branch=z9hG4bK199146792
From: <sip:bo...@op...>;tag=1071778406
To: <sip:bo...@op...>
Call-ID: 1039155445
CSeq: 1 REGISTER
Contact: <sip:bob@10.108.114.161:5060;line=91bd58e3edb376e>
Authorization: Digest username="bo...@op...", realm="open-ims.test", nonce=" ", uri="sip:open-ims.test", response=" "
Max-Forwards: 70
User-Agent: UCT IMS Client
Expires: 600000
Supported: path
Content-Length: 0
(2)Forward register message(OpenSBC sends to OpenIMSCore):
REGISTER sip:bo...@op... SIP/2.0
From: <sip:bo...@op...>;tag=1071778406
To: <sip:bo...@op...>
Via: SIP/2.0/UDP 10.108.115.160:5060;branch=z9hG4bKccdcafe27fa2e1118165e501eb40e155;uas-addr=10.108.112.3;x-reg-id=c2lwOmJvYkAxMC4xMDguMTE0LjE2MTo1MDYw
Via: SIP/2.0/UDP 10.108.114.161:5060;branch=z9hG4bK199146792;rport=5060;received=10.108.114.161
CSeq: 1 REGISTER
Call-ID: 1039155445
Contact: <sip:x-reg-id-sip%3Abob%4010.108.114.161%3A5060%3Bsend-addr%3D10.108.114.161%3A5060@10.108.115.160:5062;line=91bd58e3edb376e>
User-Agent: UCT IMS Client
Expires: 600000
Max-Forwards: 70
Authorization: Digest username="bo...@op...", realm="open-ims.test", nonce=" ", uri="sip:open-ims.test", response=" "
Supported: path
Content-Length: 0
(3)Source invite message(uctimsclient sends to OpenSBC):
INVITE sip:al...@op... SIP/2.0
Via: SIP/2.0/UDP 10.108.114.161:5060;rport;branch=z9hG4bK155360770
Route: <sip:or...@sc...:6060;lr>
From: "Bob" <sip:bo...@op...>;tag=392237072
To: <sip:al...@op...>
Call-ID: 1574149825
CSeq: 20 INVITE
Contact: <sip:bob@10.108.114.161:5060>
Content-Type: application/sdp
Max-Forwards: 70
User-Agent: UCT IMS Client
Subject: IMS Call
P-Preferred-Identity: "Bob" <sip:bo...@op...>
Privacy: none
P-Access-Network-Info: IEEE-802.11a
Require: sec-agree
Proxy-Require: sec-agree
Supported: 100rel
Content-Length: 325
v=0
o=- 0 0 IN IP4 10.108.114.161
s=IMS Call
c=IN IP4 10.108.114.161
t=0 0
m=audio 14586 RTP/AVP 3 0 101
b=AS:64
a=rtpmap:3 GSM/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-11
a=curr:qos local none
a=curr:qos remote none
a=des:qos none local sendrecv
a=des:qos none remote sendrecv
(4)Forward invite message(OpenSBC sends to OpenIMSCore):
INVITE sip:al...@op... SIP/2.0
From: "Bob" <sip:bo...@op...>;tag=392237072
To: <sip:al...@op...>
Via: SIP/2.0/UDP 10.108.115.160:5060;iid=30204;branch=z9hG4bKb801352e80a2e1118165e501eb40e155;uas-addr=10.108.112.3;rport
CSeq: 20 INVITE
Call-ID: 1574149825-0x0001
Contact: <sip:bob@10.108.115.160:5060>
P-Preferred-Identity: "Bob" <sip:bo...@op...>
Privacy: none
Subject: IMS Call
User-Agent: UCT IMS Client
Max-Forwards: 69
Proxy-Require: sec-agree
Require: sec-agree
Supported: 100rel
P-Access-Network-Info: IEEE-802.11a
Content-Type: application/sdp
Content-Length: 325
v=0
o=- 0 0 IN IP4 10.108.114.161
s=IMS Call
c=IN IP4 10.108.115.160
t=0 0
m=audio 10002 RTP/AVP 3 0 101
b=AS:64
a=rtpmap:3 GSM/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-11
a=curr:qos local none
a=curr:qos remote none
a=des:qos none local sendrecv
a=des:qos none remote sendrecv
(5)403 Forbidden OpenIMSCore responsed:
SIP/2.0 403 Forbidden - Not Registered! You must register first with a S-CSCF
From: "Bob" <sip:bo...@op...>;tag=392237072
To: <sip:al...@op...>;tag=63ff54fe497b36d2a5d235b96c7297c2.efcd
Via: SIP/2.0/UDP 10.108.115.160:5060;iid=30204;branch=z9hG4bKb801352e80a2e1118165e501eb40e155;uas-addr=10.108.112.3;rport=5060
CSeq: 20 INVITE
Call-ID: 1574149825-0x0001
Server: Sip EXpress router (2.1.0-dev1 OpenIMSCore (i386/linux))
Content-Length: 0
Warning: 392 10.108.112.3:4060 "Noisy feedback tells: pid=1706 req_src_ip=10.108.115.160 req_src_port=5060 in_uri=sip:al...@op... out_uri=sip:al...@op... via_cnt==1"
Thanks and best wishes!
Yours sincerely,
Helen |