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

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

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

branches/b-directory-reorg/resip/dum/MergedRequestKey.cxx revision 5276 by jason, Fri Aug 19 00:23:17 2005 UTC main/resip/dum/MergedRequestKey.cxx revision 5948 by dworley, Fri Feb 17 15:30:16 2006 UTC
# Line 1  Line 1 
1  #include "resip/dum/MergedRequestKey.hxx"  #include "resip/dum/MergedRequestKey.hxx"
2  #include "resip/sip/SipMessage.hxx"  #include "resip/stack/SipMessage.hxx"
3  #include "resip/sip/CSeqCategory.hxx"  #include "resip/stack/CSeqCategory.hxx"
4    
5  using namespace resip;  using namespace resip;
6    
# Line 11  Line 11 
11  }  }
12    
13  MergedRequestKey::MergedRequestKey(const SipMessage& req) :  MergedRequestKey::MergedRequestKey(const SipMessage& req) :
14     mRequestUri(Data::from(req.header(h_RequestLine).uri())),  //   mRequestUri(Data::from(req.header(h_RequestLine).uri())),
15     mCSeq(Data::from(req.header(h_CSeq))),     mCSeq(Data::from(req.header(h_CSeq))),
16     mTag(req.header(h_From).exists(p_tag) ? req.header(h_From).param(p_tag) : Data::Empty),     mTag(req.header(h_From).exists(p_tag) ? req.header(h_From).param(p_tag) : Data::Empty),
17     mCallId(req.header(h_CallID).value())     mCallId(req.header(h_CallID).value())
# Line 23  Line 23 
23  {  {
24     return (mCallId == other.mCallId  &&     return (mCallId == other.mCallId  &&
25             mTag == other.mTag &&             mTag == other.mTag &&
26             mCSeq == other.mCSeq &&             mCSeq == other.mCSeq
27             mRequestUri == other.mRequestUri);  //           && mRequestUri == other.mRequestUri
28          );
29  }  }
30    
31  bool  bool
# Line 54  Line 55 
55        return false;        return false;
56     }     }
57        
58       return (mCSeq < other.mCSeq);
59    #if 0
60     if (mCSeq < other.mCSeq)     if (mCSeq < other.mCSeq)
61     {     {
62        return true;        return true;
# Line 64  Line 67 
67     }     }
68        
69     return (mRequestUri < other.mRequestUri);     return (mRequestUri < other.mRequestUri);
70    #endif
71  }  }
72    
73  Data& MergedRequestKey::cseq()  Data& MergedRequestKey::cseq()

Legend:
Removed from v.5276  
changed lines
  Added in v.5948

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27