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

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

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

revision 9738 by dpocock, Sat Apr 7 10:56:50 2012 UTC revision 9739 by sgodin, Thu May 31 15:58:53 2012 UTC
# Line 118  Line 118 
118  #else  #else
119     mSecurity(0),     mSecurity(0),
120  #endif  #endif
121     mStack(mSecurity, DnsStub::EmptyNameserverList, &mSelectInterruptor),     mSelectInterruptor(new SelectInterruptor),
122     mDum(new DialogUsageManager(mStack)),     mStack(new SipStack(mSecurity, DnsStub::EmptyNameserverList, mSelectInterruptor)),
123     mStackThread(mStack, mSelectInterruptor),     mStackThread(new InterruptableStackThread(*mStack, *mSelectInterruptor)),
124       mDum(new DialogUsageManager(*mStack)),
125     mDumShutdownRequested(false),     mDumShutdownRequested(false),
126     mDumShutdown(false),     mDumShutdown(false),
127     mRegistrationRetryDelayTime(0),     mRegistrationRetryDelayTime(0),
# Line 143  Line 144 
144  #endif  #endif
145    
146     // Disable Statistics Manager     // Disable Statistics Manager
147     mStack.statisticsManagerEnabled() = false;     mStack->statisticsManagerEnabled() = false;
148    
149     // Supported Methods     // Supported Methods
150     mProfile->clearSupportedMethods();     mProfile->clearSupportedMethods();
# Line 307  Line 308 
308    
309  BasicClientUserAgent::~BasicClientUserAgent()  BasicClientUserAgent::~BasicClientUserAgent()
310  {  {
311     mStackThread.shutdown();     mStackThread->shutdown();
312     mStackThread.join();     mStackThread->join();
313    
314     delete mDum;     delete mDum;
315       delete mStack;
316       delete mStackThread;
317       delete mSelectInterruptor;
318       // Note:  mStack descructor will delete mSecurity
319  }  }
320    
321  void  void
322  BasicClientUserAgent::startup()  BasicClientUserAgent::startup()
323  {  {
324     mStackThread.run();     mStackThread->run();
325    
326     if (mRegisterDuration)     if (mRegisterDuration)
327     {     {
# Line 402  Line 407 
407        {        {
408           if (!mNoV4)           if (!mNoV4)
409           {           {
410              mStack.addTransport(type, port+i, V4, StunEnabled, Data::Empty, mTlsDomain);              mStack->addTransport(type, port+i, V4, StunEnabled, Data::Empty, mTlsDomain);
411              return;              return;
412           }           }
413    
414           if (mEnableV6)           if (mEnableV6)
415           {           {
416              mStack.addTransport(type, port+i, V6, StunEnabled, Data::Empty, mTlsDomain);              mStack->addTransport(type, port+i, V6, StunEnabled, Data::Empty, mTlsDomain);
417              return;              return;
418           }           }
419        }        }
# Line 453  Line 458 
458    
459        // start timer for next one        // start timer for next one
460        auto_ptr<ApplicationMessage> timer(new NotifyTimer(*this, ++mCurrentNotifyTimerId));        auto_ptr<ApplicationMessage> timer(new NotifyTimer(*this, ++mCurrentNotifyTimerId));
461        mStack.post(timer, NotifySendTime, mDum);        mStack->post(timer, NotifySendTime, mDum);
462     }     }
463  }  }
464    
# Line 890  Line 895 
895     mServerSubscriptionHandle = h;     mServerSubscriptionHandle = h;
896     mServerSubscriptionHandle->setSubscriptionState(Active);     mServerSubscriptionHandle->setSubscriptionState(Active);
897     mServerSubscriptionHandle->send(mServerSubscriptionHandle->accept());     mServerSubscriptionHandle->send(mServerSubscriptionHandle->accept());
   
898     sendNotify();     sendNotify();
899  }  }
900    

Legend:
Removed from v.9738  
changed lines
  Added in v.9739

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27