Hello:
I am trying to connect SIPDEMO application to IMS Network (SBC/P-CSCF). I
am using Android Studio. I just commented few lines and added following
code to setup correct SipProfile , targetting P-CSCF/IMS
username="+9665xxxxxxx";
domain="rcs.xxx.xxx.com.sa";
builder.setOutboundProxy("xx.xx.xx.xx");
builder.setAuthUserName("[email protected]");
Now,
I am tracing in IMS/P-CSCF and can see REGISTER message coming and is
replying to my application with "401 UNAUTHORISED". You can see below 2
REGISTER messages that first one has Request-URI without port:5060 but the
second one has port:*5060* (in the first line of both REGISTER). This is
causing failure in REGISTRATION as Response to second register should match
with the first one saved in IMS...so, all i need to remove port:5060 from
Request-URI in second REGISTER. Any help will be apreciated.
FIRST REGISTER
==============
REGISTER sip:rcs.ksa.zain.com.sa SIP/2.0
Via: SIP/2.0/UDP
51.36.23.185:1616;branch=z9hG4bKa9c834f6a38ee3cb85e41bb99ec297d3343431;rport
Call-ID: [email protected]
From: <sip:[email protected]>;tag=3228249145
To: <sip:[email protected]>
CSeq: 1118 REGISTER
Max-Forwards: 70
User-Agent: SIPAUA/0.1.001
Contact: <sip:[email protected]:1616;transport=udp>
Expires: 3600
Content-Length: 0
SECOND REGISTER
===============
REGISTER sip:rcs.ksa.zain.com.sa:5060 SIP/2.0
Via: SIP/2.0/UDP
51.36.23.185:1616;branch=z9hG4bK8981b68d329313b6b56eadeb92bb53e9343431;rport
Call-ID: [email protected]
From: <sip:[email protected]>;tag=3228249145
To: <sip:[email protected]>
CSeq: 1119 REGISTER
Max-Forwards: 70
User-Agent: SIPAUA/0.1.001
Contact: <sip:[email protected]:1616;transport=udp>
Expires: 3600
Authorization: Digest
username="[email protected]",realm="rcs.xxx.xxx.com.sa",nonce="W5zuSqrOAyQDQ4HVyRk3/Q==",uri="sip:rcs.xxx.xxx.com.sa:
*5060*
",response="a6325969f125416e6a8256a34eabbc46",algorithm=MD5,cnonce="xyz",qop=auth,nc=00000001
Content-Length: 0
--
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-developers/9b30db2a-5f50-4c7d-837b-1ba6cdfb180b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.