/[resiprocate]/main/resip/dum/Dialog.cxx
ViewVC logotype

Diff of /main/resip/dum/Dialog.cxx

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

revision 2885 by jason, Sun May 30 21:12:28 2004 UTC revision 2887 by jason, Sun May 30 21:29:39 2004 UTC
# Line 13  Line 13 
13  using namespace resip;  using namespace resip;
14  using namespace std;  using namespace std;
15    
 class ServerInviteSession;  
   
16  Dialog::Dialog(DialogUsageManager& dum, const SipMessage& msg, DialogSet& ds)  Dialog::Dialog(DialogUsageManager& dum, const SipMessage& msg, DialogSet& ds)
17     : mId(msg),     : mId(msg),
18       mDum(dum),       mDum(dum),
# Line 249  Line 247 
247                    }                    }
248                    else                    else
249                    {                    {
250                       std::auto_ptr<SipMessage> failure(Helper::makeResponse(request, 481));                       SipMessage failure;
251                       mDum.send(*failure);                       makeResponse(failure, request, 481);
252                         mDum.sendResponse(failure);
253                       return;                       return;
254                    }                    }
255                 }                 }
# Line 339  Line 338 
338           }           }
339                                
340           case PUBLISH:           case PUBLISH:
341                // !jf! could assert that no other usages exist
342              if (mClientPublication == 0)              if (mClientPublication == 0)
343              {              {
344                 mClientPublication = makeClientPublication(response);                 mClientPublication = makeClientPublication(response);
# Line 347  Line 347 
347              break;              break;
348                                
349           case REGISTER:           case REGISTER:
350                // !jf! could assert that no other usages exist
351              if (mClientRegistration == 0)              if (mClientRegistration == 0)
352              {              {
353                 mClientRegistration = makeClientRegistration(response);                 mClientRegistration = makeClientRegistration(response);
# Line 577  Line 578 
578    
579    
580  void  void
581  Dialog::makeResponse(const SipMessage& request, SipMessage& response, int code)  Dialog::makeResponse(SipMessage& response, const SipMessage& request, int code)
582  {  {
583     assert( code >= 100 );     assert( code >= 100 );
584     response.header(h_To).param(p_tag) = mLocalTag;     response.header(h_To).param(p_tag) = mLocalTag;
# Line 659  Line 660 
660     return usage;     return usage;
661  }  }
662    
 #if 0  
663  ServerInviteSession*  ServerInviteSession*
664  Dialog::makeServerInviteSession(const SipMessage& request)  Dialog::makeServerInviteSession(const SipMessage& request)
665  {  {
# Line 667  Line 667 
667     mDum.addUsage(usage);     mDum.addUsage(usage);
668     return usage;     return usage;
669  }  }
 #endif  
670    
671  ServerSubscription*  ServerSubscription*
672  Dialog::makeServerSubscription(const SipMessage& request)  Dialog::makeServerSubscription(const SipMessage& request)

Legend:
Removed from v.2885  
changed lines
  Added in v.2887

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27