// Get the default profile.
iProfile = iProfileRegistry->DefaultProfileL();
// The client asks the API to enable the retrieved profile for its use.
TInt status = iProfileRegistry->EnableL(*iProfile, *this);
if (status == KErrNone)
// get the SIP connection used by the profile
iConnection = iProfileRegistry->ConnectionL(*iProfile);
// create a SIP dialog for sending an INVITE;
iSIPInviteDialogAssoc = CreateSIPInviteDialogAssoc();
// Continue session establishement using the SIP Client API
iSIPClientTransaction = iSIPInviteDialogAssoc->SendInviteL();
// wait for the profile to be registered before using it further
the registration is successful, but the call "iConnection = iProfileRegistry->ConnectionL(*iProfile)" fails with the error KErrAlreadyExists. Any ideas as to what could be wrong ? i have tried directly using the construction CSIPConnection::NewL but to no avail.
the default profile is the same as the one used by the example warships program which runs correctly.