21 #include <os/OsDefs.h> 22 #include <utl/UtlHashMap.h> 30 #define DIALOG_HANDLE_SEPARATOR ',' 89 UtlBoolean isFromLocal = TRUE);
100 SipDialog(
const char* callId,
const char* localField,
const char* remoteField);
131 void getHandle(UtlString& dialogHandle)
const;
140 UtlString& remoteTag);
144 UtlString& reversedHandle);
215 void toString(UtlString& dialogDumpString);
219 UtlString& stateString);
235 const UtlString& localTag,
236 const UtlString& remoteTag)
const;
256 const UtlString& localTag,
257 const UtlString& remoteTag)
const;
272 const UtlString& localTag,
273 const UtlString& remoteTag)
const;
280 const UtlString& fromTag,
281 const UtlString& toTag)
const;
288 const UtlString& fromTag,
289 const UtlString& toTag)
const;
318 UtlString mRemoteTag;
322 UtlString mInitialMethod;
323 UtlString msLocalRequestUri;
324 UtlString msRemoteRequestUri;
325 UtlBoolean mLocalInitatedDialog;
326 int mInitialLocalCseq;
327 int mInitialRemoteCseq;
336 #endif // _SipDialog_h_ void setRemoteField(const Url &remoteUrl)
Set the SIP To/From header value for the remote side of this dialog.
Definition: SipDialog.cpp:509
void getRemoteField(Url &remoteUrl) const
Get the SIP To/From header value for the remote side of this dialog.
Definition: SipDialog.cpp:499
virtual ~SipDialog()
Destructor.
Definition: SipDialog.cpp:151
static void reverseTags(const char *dialogHandle, UtlString &reversedHandle)
Reverse the order of the tags in the handle.
Definition: SipDialog.cpp:460
void getLocalField(Url &localUrl) const
Get the SIP To/From header value for the local side of this dialog.
Definition: SipDialog.cpp:484
UtlBoolean isSameDialog(const SipMessage &message) const
Compare the message to see if it matches this dialog.
Definition: SipDialog.cpp:600
UtlBoolean isEarlyDialog() const
Determine if this is an early dialog.
Definition: SipDialog.cpp:793
UtlBoolean isSameRemoteCseq(const SipMessage &message) const
Check if message and SIP remote Cseq match.
Definition: SipDialog.cpp:841
UtlBoolean isTransactionRemotelyInitiated(const UtlString &callId, const UtlString &fromTag, const UtlString &toTag) const
Query if the transaction request was sent from the remote side.
Definition: SipDialog.cpp:771
void getEarlyHandle(UtlString &earlyDialogHandle) const
Get the early dialog handle for this dialog.
Definition: SipDialog.cpp:409
UtlBoolean isEarlyDialogFor(const SipMessage &message) const
Checks if this is an early dialog for the given SIP message.
Definition: SipDialog.cpp:674
int getNextLocalCseq()
Get the next (incremented) SIP Cseq number for the local side.
Definition: SipDialog.cpp:586
DialogState
Definition: SipDialog.h:66
void setLastRemoteCseq(int seqNum)
Set the last used SIP Cseq number for the remote side.
Definition: SipDialog.cpp:581
void updateDialogData(const SipMessage &message)
update the dialog information based upon the given message
Definition: SipDialog.cpp:189
Specialization of HttpMessage to contain and manipulate SIP messages.
Definition: SipMessage.h:343
SipDialog(const SipMessage *initialMessage=NULL, UtlBoolean isFromLocal=TRUE)
Default Dialog constructor.
Definition: SipDialog.cpp:34
void getRemoteRequestUri(UtlString &requestUri) const
Get the request URI for the remote side.
Definition: SipDialog.cpp:545
void setRemoteRequestUri(const UtlString &requestUri)
Set the request URI for the remote side.
Definition: SipDialog.cpp:550
UtlBoolean wasEarlyDialogFor(const SipMessage &message) const
Checks if this was an early dialog for the given SIP message.
Definition: SipDialog.cpp:719
void setLocalRequestUri(const UtlString &requestUri)
Set the request URI for the local side.
Definition: SipDialog.cpp:540
void getRemoteContact(Url &remoteContact) const
Get the SIP Contact header value for the remote side of this dialog.
Definition: SipDialog.cpp:514
void getHandle(UtlString &dialogHandle) const
Gets a string handle that can be used to uniquely identify this dialog.
Definition: SipDialog.cpp:400
Definition: SipDialog.h:70
void getLocalContact(Url &localContact) const
Get the SIP Contact header value for the local side of this dialog.
Definition: SipDialog.cpp:525
static void parseHandle(const char *dialogHandle, UtlString &callId, UtlString &localTag, UtlString &remoteTag)
Gets the call-id, and tags from the dialogHandle.
Definition: SipDialog.cpp:425
void getRemoteTag(UtlString &remoteTag) const
Get the tag from the SIP To/From header value for the remote side of this dialog. ...
Definition: SipDialog.cpp:504
void setRequestData(SipMessage &request, const char *method)
Set fields in next SIP request for this dialog.
Definition: SipDialog.cpp:335
void setInitialMethod(const char *method)
Set the SIP method of the request that initiated this dialog.
Definition: SipDialog.cpp:561
Definition: SipDialog.h:69
static void getStateString(DialogState state, UtlString &stateString)
Get a string representation for the state value.
Definition: SipDialog.cpp:919
void setLocalContact(const Url &localContact)
Get the SIP Contact header value for the remote side of this dialog.
Definition: SipDialog.cpp:530
Definition: SipDialog.h:68
UtlBoolean isNextRemoteCseq(const SipMessage &message) const
Check if mesage cseq is after the last remote transaction.
Definition: SipDialog.cpp:857
UtlBoolean isTransactionLocallyInitiated(const UtlString &callId, const UtlString &fromTag, const UtlString &toTag) const
Query if the transaction request was sent from the local side.
Definition: SipDialog.cpp:753
UtlBoolean isNextLocalCseq(const SipMessage &message) const
Check if mesage cseq is after the last local transaction.
Definition: SipDialog.cpp:849
void getCallId(UtlString &callId) const
Get the SIP call-id header value for this dialog.
Definition: SipDialog.cpp:473
void setCallId(const char *callId)
Set the SIP call-id header value for this dialog.
Definition: SipDialog.cpp:478
void getInitialMethod(UtlString &method) const
Get the SIP method of the request that initiated this dialog.
Definition: SipDialog.cpp:556
void getLocalRequestUri(UtlString &requestUri) const
Get the request URI for the local side.
Definition: SipDialog.cpp:535
int getLastRemoteCseq() const
Get the last used SIP Cseq number for the remote side.
Definition: SipDialog.cpp:576
Class for containing SIP dialog state information.
Definition: SipDialog.h:61
Definition: SipDialog.h:72
URL parser and constructor.
Definition: Url.h:90
UtlBoolean isSameLocalCseq(const SipMessage &message) const
Check if message and SIP local Cseq match.
Definition: SipDialog.cpp:833
void setLastLocalCseq(int seqNum)
Set the last used SIP Cseq number for the local side.
Definition: SipDialog.cpp:571
void setLocalField(const Url &localUrl)
Set the SIP To/From header value for the local side of this dialog.
Definition: SipDialog.cpp:494
int getLastLocalCseq() const
Get the last used SIP Cseq number for the local side.
Definition: SipDialog.cpp:566
void getLocalTag(UtlString &localTag) const
Get the tag from the SIP To/From header value for the local side of this dialog.
Definition: SipDialog.cpp:489
void toString(UtlString &dialogDumpString)
Debug method to dump the contents of this SipDialog into a string.
Definition: SipDialog.cpp:865
void setRemoteContact(const Url &remoteContact)
Set the SIP Contact header value for the remote side of this dialog.
Definition: SipDialog.cpp:519
Definition: SipDialog.h:71