/[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 2857 by alan, Sun May 30 03:46:09 2004 UTC revision 2861 by alan, Sun May 30 04:27:35 2004 UTC
# Line 3  Line 3 
3  #include "resiprocate/dum/RegistrationHandler.hxx"  #include "resiprocate/dum/RegistrationHandler.hxx"
4  #include "resiprocate/SipStack.hxx"  #include "resiprocate/SipStack.hxx"
5  #include "resiprocate/dum/Profile.hxx"  #include "resiprocate/dum/Profile.hxx"
6    #include "resiprocate/os/Log.hxx"
7    
8  using namespace resip;  using namespace resip;
9    
# Line 55  Line 56 
56  main (int argc, char** argv)  main (int argc, char** argv)
57  {  {
58    
59        Log::initialize(Log::COUT, Log::DEBUG, argv[0]);
60    
61     SipStack clientStack;     SipStack clientStack;
62     clientStack.addTransport(UDP, 5060);     clientStack.addTransport(UDP, 5060);
63    
# Line 66  Line 69 
69     clientDum.setClientRegistrationHandler(&client);     clientDum.setClientRegistrationHandler(&client);
70        
71     clientDum.getProfile()->setDefaultRegistrationTime(70);     clientDum.getProfile()->setDefaultRegistrationTime(70);
72     SipMessage & regMessage = clientDum.makeRegistration(NameAddr("502@jasomi.com"));     SipMessage & regMessage = clientDum.makeRegistration(NameAddr("sip:502@jasomi.com"));
73     cerr << regMessage << "Generated register: " << endl << regMessage << endl;     cerr << regMessage << "Generated register: " << endl << regMessage << endl;
74    
75  #if 0  #if 0

Legend:
Removed from v.2857  
changed lines
  Added in v.2861

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27