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

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

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

revision 4600 by derek, Wed May 11 23:10:19 2005 UTC revision 4601 by derek, Thu May 12 01:10:49 2005 UTC
# Line 100  Line 100 
100  int  int
101  main (int argc, char** argv)  main (int argc, char** argv)
102  {  {
103     int level=(int)Log::Info;     int level=(int)Log::Debug;
104     if (argc >1 ) level = atoi(argv[1]);     if (argc >1 ) level = atoi(argv[1]);
105    
106     Log::initialize(Log::Cout, (resip::Log::Level)level, argv[0]);     Log::initialize(Log::Cout, (resip::Log::Level)level, argv[0]);
# Line 111  Line 111 
111    
112     SipStack stack;     SipStack stack;
113     DialogUsageManager clientDum(stack);     DialogUsageManager clientDum(stack);
114     clientDum.addTransport(UDP, 15060);     clientDum.addTransport(UDP, 15066);
115     clientDum.setMasterProfile(&profile);     clientDum.setMasterProfile(&profile);
116    
117     clientDum.setClientRegistrationHandler(&client);     clientDum.setClientRegistrationHandler(&client);
118     clientDum.setClientAuthManager(clientAuth);     clientDum.setClientAuthManager(clientAuth);
119     clientDum.getMasterProfile()->setDefaultRegistrationTime(70);     clientDum.getMasterProfile()->setDefaultRegistrationTime(70);
120    
121     NameAddr from("sip:101@proxy.internal.xten.net");     NameAddr from("sip:derek@foo.net");
122     clientDum.getMasterProfile()->setDefaultFrom(from);     clientDum.getMasterProfile()->setDefaultFrom(from);
123    
124    
125  //   profile.addDigestCredential( "xten.gloo.net", "derek@xten.gloo.net", "123456" );     profile.setDigestCredential( "foo.net", "derek", "derek");
126  //   profile.addDigestCredential( "sphone.vopr.vonage.net", "13015604286", "" );    
127    
128     SipMessage & regMessage = clientDum.makeRegistration(from, new RegisterAppDialogSet(clientDum));     SipMessage & regMessage = clientDum.makeRegistration(from, new RegisterAppDialogSet(clientDum));
129     NameAddr contact;     NameAddr contact;

Legend:
Removed from v.4600  
changed lines
  Added in v.4601

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27