In the sample code for SIP Registration using the SIP Client API, there is no mention about how the Request URI can be set, which in the case of REGISTER is not the same as the To header.
Here is the relevant part of the sample code that is included in the documentation, for sending a REGISTER request:
CSIPToHeader* aor = CSIPToHeader::DecodeL(_L8("sip:email@example.com"));
CSIPAddress* addr = CSIPAddress::DecodeL(_L8("sip:user@LOCALHOST"));
CSIPContactHeader* contact = CSIPContactHeader::NewL(addr);
CSIPRefresh* refresh = CSIPRefresh::NewLC();
iRegistration = CSIPRegistrationBinding::NewL(*iConnection, aor, contact, refresh);
CleanupStack::Pop(3); //refresh, contact, aor
The above code only sets the To and Contact headers, omitting the Request URI.
How can the Request URI be set for a REGISTER request?