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

Diff of /main/sip/resiprocate/dum/Dialog.cxx

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

revision 2585 by jason, Sun Apr 11 18:07:52 2004 UTC revision 2588 by jason, Sun Apr 11 18:30:31 2004 UTC
# Line 12  Line 12 
12  Dialog::Dialog(DialogUsageManager& dum, const SipMessage& msg)  Dialog::Dialog(DialogUsageManager& dum, const SipMessage& msg)
13     : mId(msg),     : mId(msg),
14       mDum(dum),       mDum(dum),
15         mClientSubscriptions(),
16         mServerSubscription(0),
17         mInviteSession(0),
18         mClientRegistration(0),
19         mServerRegistration(0),
20         mClientPublication(0),
21         mServerPublication(0),
22         mClientOutOfDialogReq(0),
23         mServerOutOfDialogReq(0),
24         mType(Fake),
25         mLocalTag(),
26         mRemoteTag(),
27         mCallId(msg.header(h_CallID)),
28         mRouteSet(),
29         mMe(),
30       mLocalCSeq(0),       mLocalCSeq(0),
31       mRemoteCSeq(0),       mRemoteCSeq(0),
32       mCallId(msg.header(h_CallID))       mRemoteTarget()
33  {  {
34     assert(msg.isFromWire());     assert(msg.isFromWire());
35    
36       if (request.header(h_CSeq).method() == INVITE)
37       {
38          mType = Invitation;
39       }
40       else if (request.header(h_CSeq).method() == SUBSCRIBE)
41       {
42          mType = Subscription;
43       }
44    
45     if (msg.isRequest()) // UAS     if (msg.isRequest()) // UAS
46     {     {
47        const SipMessage& request = msg;        const SipMessage& request = msg;
# Line 119  Line 143 
143        //mDialogId = mCallId;        //mDialogId = mCallId;
144        //mDialogId.param(p_toTag) = mLocalTag;        //mDialogId.param(p_toTag) = mLocalTag;
145        //mDialogId.param(p_fromTag) = mRemoteTag;        //mDialogId.param(p_fromTag) = mRemoteTag;
   
       BaseUsage* usage = mCreator->makeUsage(response);  
       assert(usage);  
       mUsages.push_back(usage);  
146     }     }
147  }  }
148    
149    DialogId
150    Dialog::getId() const
151    {
152       return mId;
153    }
154    
155    
156  void  void
157  Dialog::dispatch(const SipMessage& msg)  Dialog::dispatch(const SipMessage& msg)
158  {  {

Legend:
Removed from v.2585  
changed lines
  Added in v.2588

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27