I found some old similar threads but still without a solutions.

I'm creating a SIP and a VoIP profile programmatically and I need my SIP profile enabled (because there's no way to register this profile until I edit and save it manually).
I don't need to make a VoIP call or any other communications in my app, just an ability to register SIP profile for Nokia SIP client.

Profile created with CSIPManagedProfileRegestry (as in this wiki).
I've tried to enble profile following ways:

1) CManagedProfileRegestry::EnableProfileL(CSIPProfile &aProfile)
Code:
CSIPManagedProfileRegistry *profRegistry =
			CSIPManagedProfileRegistry::NewLC(*this);
CSIPManagedProfile *profile;
...
profile = static_cast<CSIPManagedProfile*> (profiles[ourIndex]);
....
TRAPD(error,profRegistry->SaveL(*profile));
	if (error == KErrNone)
		{
		isSipSet = true;
		profRegistry->EnableProfileL(*profile);
		saveData();	
		}
But in this way I got a building error
"undefined reference to `CSIPProfileRegistryBase::EnableProfileL(CSIPProfile&)' "

sipprofileregistrybase.h is included.

2) CSIPProfileRegestry::EnableL(CSIPProfile& aProfile, MSIPConnectionObserver &aObserver);

Code:
CSIP *sip = CSIP::NewLC(us, *this);
	CSIPProfileRegistry *reg = CSIPProfileRegistry::NewLC(*sip,*this);
CSIPManagedProfile *profile;
...
profile = static_cast<CSIPManagedProfile*> (profiles[ourIndex]);
...
TRAPD(error,profRegistry->SaveL(*profile));
	if (error == KErrNone)
		{
		isSipSet = true;
		reg->EnableL(*profile,*this);
		saveData();	
		}
In this case building is fine but EnableL crashes (found with TRAPD) with (-1) error code.

3) CSIPProfile::SetEnabled(TBool aEnabled);

Code:
CSIPManagedProfileRegistry *profRegistry =
			CSIPManagedProfileRegistry::NewLC(*this);
CSIPManagedProfile *profile;
...
profile = static_cast<CSIPManagedProfile*> (profiles[ourIndex]);
....
TRAPD(error,profRegistry->SaveL(*profile));
	if (error == KErrNone)
		{
		isSipSet = true;
		profile->SetEnabled(ETrue);
		saveData();	
		}
The building error is " undefined reference to `CSIPProfile::SetEnabled(int)' "

Can anyone help me solving this issue?