forked from rainliu/sip
/
InReplyToHeader.go
36 lines (33 loc) · 1.26 KB
/
InReplyToHeader.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package header
/**
* The In-Reply-To header field enumerates the Call-IDs that this call
* references or returns. These Call-IDs may have been cached by the client
* then included in this header field in a return call.
* <p>
* This allows automatic call distribution systems to route return calls to the
* originator of the first call. This also allows callees to filter calls, so
* that only return calls for calls they originated will be accepted. This
* field is not a substitute for request authentication.
* <p>
* For Example:<br>
* <code>In-Reply-To: 70710@saturn.jcp.org, 17320@saturn.jcp.org</code>
*/
type InReplyToHeader interface {
Header
/**
* Sets the Call-Id of the InReplyToHeader. The CallId parameter uniquely
* identifies a serious of messages within a dialogue.
*
* @param callId - the string value of the Call-Id of this InReplyToHeader.
* @throws ParseException which signals that an error has been reached
* unexpectedly while parsing the callId value.
*/
SetCallId(callId string) (ParseException error)
/**
* Returns the Call-Id of InReplyToHeader. The CallId parameter uniquely
* identifies a series of messages within a dialogue.
*
* @return the String value of the Call-Id of this InReplyToHeader
*/
GetCallId() string
}