/[resiprocate]/main/resip/dum/test/basicRegister.cxx
ViewVC logotype

Diff of /main/resip/dum/test/basicRegister.cxx

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

revision 3458 by sgodin, Tue Nov 16 14:27:08 2004 UTC revision 3608 by sgodin, Tue Nov 23 21:18:26 2004 UTC
# Line 3  Line 3 
3  #include "resiprocate/dum/ClientRegistration.hxx"  #include "resiprocate/dum/ClientRegistration.hxx"
4  #include "resiprocate/dum/DialogUsageManager.hxx"  #include "resiprocate/dum/DialogUsageManager.hxx"
5  #include "resiprocate/dum/InviteSessionHandler.hxx"  #include "resiprocate/dum/InviteSessionHandler.hxx"
6  #include "resiprocate/dum/Profile.hxx"  #include "resiprocate/dum/MasterProfile.hxx"
7  #include "resiprocate/dum/RegistrationHandler.hxx"  #include "resiprocate/dum/RegistrationHandler.hxx"
8  #include "resiprocate/os/Log.hxx"  #include "resiprocate/os/Log.hxx"
9  #include "resiprocate/os/Logger.hxx"  #include "resiprocate/os/Logger.hxx"
# Line 98  Line 98 
98     Log::initialize(Log::Cout, (resip::Log::Level)level, argv[0]);     Log::initialize(Log::Cout, (resip::Log::Level)level, argv[0]);
99    
100     Client client;     Client client;
101     Profile profile;       MasterProfile profile;  
102     auto_ptr<ClientAuthManager> clientAuth(new ClientAuthManager(profile));       auto_ptr<ClientAuthManager> clientAuth(new ClientAuthManager);  
103    
104     DialogUsageManager clientDum;     DialogUsageManager clientDum;
105     clientDum.addTransport(UDP, 15060);     clientDum.addTransport(UDP, 15060);
106     clientDum.setProfile(&profile);     clientDum.setMasterProfile(&profile);
107    
108     clientDum.setClientRegistrationHandler(&client);     clientDum.setClientRegistrationHandler(&client);
109     clientDum.setClientAuthManager(clientAuth);     clientDum.setClientAuthManager(clientAuth);
110     clientDum.getProfile()->setDefaultRegistrationTime(70);     clientDum.getMasterProfile()->setDefaultRegistrationTime(70);
111    
112     NameAddr from("sip:101@proxy.internal.xten.net");     NameAddr from("sip:101@proxy.internal.xten.net");
113     clientDum.getProfile()->setDefaultFrom(from);     clientDum.getMasterProfile()->setDefaultFrom(from);
114    
115    
116  //   profile.addDigestCredential( "xten.gloo.net", "derek@xten.gloo.net", "123456" );  //   profile.addDigestCredential( "xten.gloo.net", "derek@xten.gloo.net", "123456" );

Legend:
Removed from v.3458  
changed lines
  Added in v.3608

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27