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

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

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

revision 4780 by derek, Wed May 11 23:10:19 2005 UTC revision 4781 by sgodin, Mon May 30 16:35:33 2005 UTC
# Line 138  Line 138 
138                    
139          // sip logic          // sip logic
140          RegListener client;          RegListener client;
141          MasterProfile profile;            SharedPtr<MasterProfile> profile(new MasterProfile);  
142          auto_ptr<ClientAuthManager> clientAuth(new ClientAuthManager());            auto_ptr<ClientAuthManager> clientAuth(new ClientAuthManager());  
143    
144      SipStack clientStack;      SipStack clientStack;
145          DialogUsageManager clientDum(clientStack);          DialogUsageManager clientDum(clientStack);
146          clientDum.addTransport(UDP, port);          clientDum.addTransport(UDP, port);
147          clientDum.setMasterProfile(&profile);          clientDum.setMasterProfile(profile);
148    
149          clientDum.setClientRegistrationHandler(&client);          clientDum.setClientRegistrationHandler(&client);
150          clientDum.setClientAuthManager(clientAuth);          clientDum.setClientAuthManager(clientAuth);
# Line 158  Line 158 
158    
159          /////          /////
160          NameAddr naFrom(from.c_str());          NameAddr naFrom(from.c_str());
161          profile.setDefaultFrom(naFrom);          profile->setDefaultFrom(naFrom);
162          profile.setDigestCredential(realm.c_str(), user.c_str(), passwd.c_str());          profile->setDigestCredential(realm.c_str(), user.c_str(), passwd.c_str());
163                    
164          MessageAppDialogSet *mads = new MessageAppDialogSet(clientDum);          MessageAppDialogSet *mads = new MessageAppDialogSet(clientDum);
165          SipMessage & regMessage = clientDum.makeRegistration(naFrom, mads);          SipMessage & regMessage = clientDum.makeRegistration(naFrom, mads);

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

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27