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

Diff of /main/sip/resiprocate/dum/test/BasicCall.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 75  Line 75 
75     {       {  
76        return new testAppDialog(mDum, mSampleAppData);          return new testAppDialog(mDum, mSampleAppData);  
77     }     }
78     virtual UserProfile* selectUASUserProfile(const SipMessage& msg)     virtual SharedPtr<UserProfile>& selectUASUserProfile(const SipMessage& msg)
79     {     {
80        cout << mSampleAppData << ": testAppDialogSet: UAS UserProfile requested for msg: " << msg.brief() << endl;          cout << mSampleAppData << ": testAppDialogSet: UAS UserProfile requested for msg: " << msg.brief() << endl;  
81        return mDum.getMasterProfile();        return mDum.getMasterUserProfile();
82     }     }
83     Data mSampleAppData;     Data mSampleAppData;
84  };  };
# Line 415  Line 415 
415  int  int
416  main (int argc, char** argv)  main (int argc, char** argv)
417  {  {
418     Log::initialize(Log::Cout, resip::Log::Warning, argv[0]);     //Log::initialize(Log::Cout, resip::Log::Warning, argv[0]);
419     //Log::initialize(Log::Cout, resip::Log::Debug, argv[0]);     //Log::initialize(Log::Cout, resip::Log::Debug, argv[0]);
420     //Log::initialize(Log::Cout, resip::Log::Info, argv[0]);     Log::initialize(Log::Cout, resip::Log::Info, argv[0]);
421    
422     //set up UAC     //set up UAC
423     SipStack stackUac;     SipStack stackUac;
424     DialogUsageManager* dumUac = new DialogUsageManager(stackUac);     DialogUsageManager* dumUac = new DialogUsageManager(stackUac);
425     dumUac->addTransport(UDP, 12005);     dumUac->addTransport(UDP, 12005);
426    
427     MasterProfile uacMasterProfile;           SharedPtr<MasterProfile> uacMasterProfile(new MasterProfile);
428     auto_ptr<ClientAuthManager> uacAuth(new ClientAuthManager);     auto_ptr<ClientAuthManager> uacAuth(new ClientAuthManager);
429     dumUac->setMasterProfile(&uacMasterProfile);     dumUac->setMasterProfile(uacMasterProfile);
430     dumUac->setClientAuthManager(uacAuth);     dumUac->setClientAuthManager(uacAuth);
431    
432     TestUac uac;     TestUac uac;
# Line 454  Line 454 
454     DialogUsageManager* dumUas = new DialogUsageManager(stackUas);     DialogUsageManager* dumUas = new DialogUsageManager(stackUas);
455     dumUas->addTransport(UDP, 12010);     dumUas->addTransport(UDP, 12010);
456        
457     MasterProfile uasMasterProfile;       SharedPtr<MasterProfile> uasMasterProfile(new MasterProfile);
458     std::auto_ptr<ClientAuthManager> uasAuth(new ClientAuthManager);     std::auto_ptr<ClientAuthManager> uasAuth(new ClientAuthManager);
459     dumUas->setMasterProfile(&uasMasterProfile);     dumUas->setMasterProfile(uasMasterProfile);
460     dumUas->setClientAuthManager(uasAuth);     dumUas->setClientAuthManager(uasAuth);
461    
462  #if !defined(NO_REGISTRATION)  #if !defined(NO_REGISTRATION)

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

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27