Hello list,

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:user@remote.registrar"));
CleanupStack::PushL(aor);

CSIPAddress* addr = CSIPAddress::DecodeL(_L8("sip:user@LOCALHOST"));
CleanupStack::PushL(addr);
CSIPContactHeader* contact = CSIPContactHeader::NewL(addr);
CleanupStack::Pop(addr);
CleanupStack::PushL(contact);

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?

TIA
Vin