< Previous by Date Date Index Next by Date >
  Thread Index Next in Thread >

[reSIProcate] Problem while compiling DUM using SVN head revision 8352


Hi all,
I updated my Resiprocate repository taking SVN head revision 8352 and
I'm obtaining compiler error in DUM.
I think that the problem is related to changes for PrivacyCategory (from
Token to specific ParserCategory).

In particular I tried to change InviteSessioneCreator.cxx in the
following manner (include PrivacyCategory.hxx was missing):

#include "resip/stack/PrivacyCategory.hxx"
[...]
InviteSessionCreator::InviteSessionCreator(DialogUsageManager& dum,
                                           const NameAddr& target,
                                           SharedPtr<UserProfile>
userProfile,
                                           const SdpContents* initial,
 
DialogUsageManager::EncryptionLevel level,
                                           const SdpContents*
alternative,
                                           ServerSubscriptionHandle
serverSub)
   : BaseCreator(dum, userProfile),
     mState(Initialized),
     mInitialOffer(0),
     mServerSub(serverSub),
     mEncryptionLevel(level)
{
   makeInitialRequest(target, INVITE);
   if (userProfile->isAnonymous())
   {
      //mLastRequest->header(h_Privacys).push_back(Token(Symbols::id));
        
mLastRequest->header(h_Privacys).push_back(PrivacyCategory(Symbols::id))
;
   }
[...]
}

Moreover I changed Dialog.cxx (line 1002):

void
Dialog::makeRequest(SipMessage& request, MethodTypes method)
{
[...]
    if (mDialogSet.mUserProfile->isAnonymous())
   {
      //request.header(h_Privacys).push_back(Token(Symbols::id));
        
request.header(h_Privacys).push_back(PrivacyCategory(Symbols::id));
   }
[...]
}

Are these the right fixes?

Thank you and best regards.

Dario.