|
reSIProcate/DialogUsageManager
9694
|
#include <DialogId.hxx>

Public Member Functions | |
| DialogId (const SipMessage &msg) | |
| DialogId (const Data &callId, const Data &localTag, const Data &remoteTag) | |
| DialogId (const DialogSetId &id, const Data &remoteTag) | |
| bool | operator== (const DialogId &rhs) const |
| bool | operator!= (const DialogId &rhs) const |
| bool | operator< (const DialogId &rhs) const |
| const DialogSetId & | getDialogSetId () const |
| const Data & | getCallId () const |
| const Data & | getLocalTag () const |
| const Data & | getRemoteTag () const |
| size_t | hash () const |
Private Attributes | |
| DialogSetId | mDialogSetId |
| Data | mRemoteTag |
Friends | |
| EncodeStream & | operator<< (EncodeStream &, const DialogId &id) |
Definition at line 10 of file DialogId.hxx.
| DialogId::DialogId | ( | const SipMessage & | msg | ) |
Definition at line 9 of file DialogId.cxx.
References DebugLog, resip::SipMessage::header(), resip::SipMessage::isExternal(), resip::SipMessage::isRequest(), resip::SipMessage::isResponse(), and mRemoteTag.
: mDialogSetId(msg), mRemoteTag(Data::Empty) { //find remote tag, which may not exist if (msg.isExternal()) { if(msg.isResponse()) { if (msg.header(h_To).exists(p_tag)) { mRemoteTag = msg.header(h_To).param(p_tag); } } else { if (msg.header(h_From).exists(p_tag)) { mRemoteTag = msg.header(h_From).param(p_tag); } } } else { if(msg.isRequest()) { //?dcm? -- is this just for 2543? At this point, we will have to have //established a dialog(or else we would just have a dialogset) if (msg.header(h_To).exists(p_tag)) { mRemoteTag = msg.header(h_To).param(p_tag); } } else { if (msg.header(h_From).exists(p_tag)) { mRemoteTag = msg.header(h_From).param(p_tag); } } } DebugLog ( << "DialogId::DialogId: " << *this); }

Definition at line 53 of file DialogId.cxx.
: mDialogSetId(callId, localTag), mRemoteTag(remoteTag) { }
| DialogId::DialogId | ( | const DialogSetId & | id, |
| const Data & | remoteTag | ||
| ) |
Definition at line 59 of file DialogId.cxx.
References DebugLog.
: mDialogSetId(id), mRemoteTag(remoteTag) { DebugLog ( << "DialogId::DialogId: " << *this); }
| const Data & DialogId::getCallId | ( | ) | const |
Definition at line 99 of file DialogId.cxx.
References resip::DialogSetId::getCallId(), and getDialogSetId().
Referenced by resip::DialogSet::findDialog(), resip::DialogUsage::getCallId(), resip::DialogEventInfo::getCallId(), resip::BasicClientCall::isStaleFork(), and resip::BasicClientCall::isUACConnected().
{
return getDialogSetId().getCallId();
}

| const DialogSetId & DialogId::getDialogSetId | ( | ) | const |
Definition at line 93 of file DialogId.cxx.
References mDialogSetId.
Referenced by resip::DialogEventStateManager::findOrCreateDialogInfo(), getCallId(), getLocalTag(), resip::DialogEventStateManager::onConfirmed(), resip::DialogEventStateManager::onTerminated(), and resip::DialogEventStateManager::DialogIdComparator::operator()().
{
return mDialogSetId;
}
| const Data & DialogId::getLocalTag | ( | ) | const |
Definition at line 105 of file DialogId.cxx.
References getDialogSetId(), and resip::DialogSetId::getLocalTag().
Referenced by resip::DialogSet::findDialog(), resip::DialogEventInfo::getLocalTag(), and resip::Dialog::makeResponse().
{
return getDialogSetId().getLocalTag();
}

| const Data & DialogId::getRemoteTag | ( | ) | const |
Definition at line 111 of file DialogId.cxx.
References mRemoteTag.
Referenced by resip::DialogEventInfo::getRemoteTag(), resip::DialogEventInfo::hasRemoteTag(), and resip::DialogEventStateManager::DialogIdComparator::operator()().
{
return mRemoteTag;
}
| size_t DialogId::hash | ( | ) | const |
Definition at line 124 of file DialogId.cxx.
References resip::Data::hash(), resip::DialogSetId::hash(), mDialogSetId, and mRemoteTag.
{
return mDialogSetId.hash() ^ mRemoteTag.hash();
}

| bool DialogId::operator!= | ( | const DialogId & | rhs | ) | const |
Definition at line 73 of file DialogId.cxx.
References mDialogSetId, and mRemoteTag.
{
return mDialogSetId != rhs.mDialogSetId || mRemoteTag != rhs.mRemoteTag;
}
| bool DialogId::operator< | ( | const DialogId & | rhs | ) | const |
Definition at line 79 of file DialogId.cxx.
References mDialogSetId, and mRemoteTag.
{
if (mDialogSetId < rhs.mDialogSetId)
{
return true;
}
if (mDialogSetId > rhs.mDialogSetId)
{
return false;
}
return mRemoteTag < rhs.mRemoteTag;
}
| bool DialogId::operator== | ( | const DialogId & | rhs | ) | const |
Definition at line 67 of file DialogId.cxx.
References mDialogSetId, and mRemoteTag.
{
return mDialogSetId == rhs.mDialogSetId && mRemoteTag == rhs.mRemoteTag;
}
| EncodeStream& operator<< | ( | EncodeStream & | , |
| const DialogId & | id | ||
| ) | [friend] |
DialogSetId resip::DialogId::mDialogSetId [private] |
Definition at line 31 of file DialogId.hxx.
Referenced by getDialogSetId(), hash(), operator!=(), operator<(), and operator==().
Data resip::DialogId::mRemoteTag [private] |
Definition at line 32 of file DialogId.hxx.
Referenced by DialogId(), getRemoteTag(), hash(), operator!=(), operator<(), and operator==().
1.7.5.1