/[resiprocate]/main/sip/resiprocate/dum/test/UserAgent.cxx
ViewVC logotype

Diff of /main/sip/resiprocate/dum/test/UserAgent.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4780 by derek, Thu May 12 01:27:52 2005 UTC revision 4781 by sgodin, Mon May 30 16:35:33 2005 UTC
# Line 20  Line 20 
20    
21  UserAgent::UserAgent(int argc, char** argv) :  UserAgent::UserAgent(int argc, char** argv) :
22     CommandLineParser(argc, argv),     CommandLineParser(argc, argv),
23     mProfile(),     mProfile(new MasterProfile),
24  #if defined(USE_SSL)  #if defined(USE_SSL)
25     mSecurity(new Security(mCertPath)),     mSecurity(new Security(mCertPath)),
26     mStack(mSecurity),     mStack(mSecurity),
# Line 49  Line 49 
49     addTransport(DTLS, mDtlsPort);     addTransport(DTLS, mDtlsPort);
50  #endif  #endif
51    
52     mProfile.setDefaultRegistrationTime(mRegisterDuration);     mProfile->setDefaultRegistrationTime(mRegisterDuration);
53     mProfile.addSupportedMethod(NOTIFY);     mProfile->addSupportedMethod(NOTIFY);
54     mProfile.validateAcceptEnabled() = false;     mProfile->validateAcceptEnabled() = false;
55     mProfile.validateContentEnabled() = false;     mProfile->validateContentEnabled() = false;
56     mProfile.addSupportedMimeType(NOTIFY, Pidf::getStaticType());     mProfile->addSupportedMimeType(NOTIFY, Pidf::getStaticType());
57     mProfile.setDefaultFrom(NameAddr(mAor));     mProfile->setDefaultFrom(NameAddr(mAor));
58     mProfile.setDigestCredential(mAor.host(), mAor.user(), mPassword);     mProfile->setDigestCredential(mAor.host(), mAor.user(), mPassword);
59        
60     if (!mContact.host().empty())     if (!mContact.host().empty())
61     {     {
62        mProfile.setOverrideHostAndPort(mContact);        mProfile->setOverrideHostAndPort(mContact);
63     }     }
64     if (!mOutboundProxy.host().empty())     if (!mOutboundProxy.host().empty())
65     {     {
66        mProfile.setOutboundProxy(Uri(mOutboundProxy));        mProfile->setOutboundProxy(Uri(mOutboundProxy));
67     }     }
68     mProfile.setUserAgent("limpc/1.0");     mProfile->setUserAgent("limpc/1.0");
69        
70     mDum.setMasterProfile(&mProfile);     mDum.setMasterProfile(mProfile);
71     mDum.setClientRegistrationHandler(this);     mDum.setClientRegistrationHandler(this);
72     mDum.addClientSubscriptionHandler(Symbols::Presence, this);     mDum.addClientSubscriptionHandler(Symbols::Presence, this);
73     mDum.addClientPublicationHandler(Symbols::Presence, this);     mDum.addClientPublicationHandler(Symbols::Presence, this);

Legend:
Removed from v.4780  
changed lines
  Added in v.4781

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27