2 .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH SIP_GET_TRANS_METHOD 3SIP "Feb 10, 2007"
8 sip_get_trans_method, sip_get_trans_state, sip_get_trans_orig_msg,
9 sip_get_trans_conn_obj, sip_get_trans_resp_msg, sip_get_trans_branchid \- get
10 transaction attributes
14 \fBcc\fR [ \fIflag\fR ... ] \fIfile\fR ... \fB-lsip\fR [ \fIlibrary\fR ... ]
17 \fBsip_method_t\fR \fIsip_get_trans_method\fR(\fBsip_transaction_t\fR \fIsip_trans\fR,
18 \fBint *\fR\fIerror\fR);
23 \fBint\fR \fIsip_get_trans_state\fR(\fBsip_transaction_t\fR \fItrans\fR, \fBint *\fR\fIerror\fR);
28 \fBconst struct sip_message *\fR\fIsip_get_trans_orig_msg\fR
29 (\fBsip_transaction_t\fR \fIsip_trans\fR, \fBint *\fR\fIerror\fR);
34 \fBconst struct sip_message *\fR\fIsip_get_trans_resp_msg\fR
35 (\fBsip_transaction_t\fR \fIsip_trans\fR, \fBint *\fR\fIerror\fR);
40 \fBconst struct sip_conn_object *\fR\fIsip_get_trans_conn_obj\fR
41 (\fBsip_transaction_t\fR \fIsip_trans\fR, \fBint *\fR\fIerror\fR);
46 \fBchar *\fR\fIsip_get_trans_branchid\fR(\fBsip_transaction_t\fR \fItrans\fR, \fBint *\fR\fIerror\fR);
52 The \fBsip_get_trans_method()\fR function returns the method the SIP message
53 that created the transaction \fIsip_trans\fR.
56 The \fBsip_get_trans_state()\fR function returns the state of the transaction
60 A newly created transaction is in the state:
63 \fBSIP_NEW_TRANSACTION\fR
67 A client transaction could be in one of the following states:
70 \fBSIP_CLNT_CALLING\fR
74 \fBSIP_CLNT_INV_PROCEEDING\fR
78 \fBSIP_CLNT_INV_TERMINATED\fR
82 \fBSIP_CLNT_INV_COMPLETED\fR
90 \fBSIP_CLNT_NONINV_PROCEEDING\fR
94 \fBSIP_CLNT_NONINV_TERMINATED\fR
98 \fBSIP_CLNT_NONINV_COMPLETED\fR
102 A server transaction could be in one of the following states:
105 \fBSIP_SRV_INV_PROCEEDING\fR
109 \fBSIP_SRV_INV_COMPLETED\fR
113 \fBSIP_SRV_CONFIRMED\fR
117 \fBSIP_SRV_INV_TERMINATED\fR
125 \fBSIP_SRV_NONINV_PROCEEDING\fR
129 \fBSIP_SRV_NONINV_COMPLETED\fR
133 \fBSIP_SRV_NONINV_TERMINATED\fR
137 The \fBsip_get_trans_orig_msg()\fR function returns the message that created
138 the transaction \fIsip_trans\fR. This could be a request on the client or a
139 response on the server.
142 The \fBsip_get_trans_resp_msg()\fR function returns the last response that was
143 sent on the transaction \fIsip_trans\fR. Typically, this response is used by
144 the transaction layer for retransmissions for unreliable transports or for
145 responding to retransmitted requests. A response that terminates a transaction
149 The \fBsip_get_trans_conn_obj()\fR function returns the cached connection
150 object, if any, in the transaction\fIsip_trans\fR.
153 The \fBsip_get_trans_branchid()\fR function returns the branch ID for the
154 message that created the transaction\fIsip_trans\fR. The caller is responsible
155 for freeing the returned string.
159 The \fBsip_get_trans_orig_msg()\fR, \fBsip_get_trans_resp_msg()\fR,
160 \fBsip_get_trans_conn_obj()\fR, and \fBsip_get_trans_branchid()\fR functions
161 return the required value on success or \fINULL\fR on failure.
164 The \fBsip_get_trans_state()\fR and \fBsip_get_trans_method()\fR functions
165 return the required value on success and -1 on failure.
168 The value of \fBerrno\fR is not changed by these calls in the event of an
173 If the error is non-null, one of the following values is set:
180 The input transaction \fIsip_trans\fR is \fINULL\fR.
189 For \fBsip_get_trans_branchid()\fR there is an error allocating memory for the
195 On success, the value of the location pointed to by \fIerror\fR is set to
200 See \fBattributes\fR(5) for descriptions of the following attributes:
208 ATTRIBUTE TYPE ATTRIBUTE VALUE
210 Interface Stability Committed