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 3SIP "Jan 25, 2007"
8 sip_get_trans \- lookup a transaction
12 \fBcc\fR [ \fIflag\fR ... ] \fIfile\fR ... \fB-lsip\fR [ \fIlibrary\fR ... ]
15 \fBconst struct sip_xaction *\fR\fIsip_get_trans\fR(\fBsip_msg_t\fR \fIsip_msg\fR, \fBint\fR \fIwhich\fR,
16 \fBint *\fR\fIerror\fR);
22 The \fBsip_get_trans()\fR transaction for the SIP message \fIsip_msg\fR. A
23 transaction is not freed if there are any references on it.
26 The transaction type should be specified as one of the following:
29 \fBSIP_CLIENT_TRANSACTON\fR - lookup a client transaction
33 \fBSIP_SERVER_TRANSACTON\fR - lookup a server transaction
37 The \fBsip_get_trans()\fR function matches a transaction to a message as
38 specified in RFC 3261, sections 17.1.3 and 17.2.3. The \fBsip_get_trans()\fR
39 function holds a reference to the returned transaction. The caller must release
40 this reference after use.
44 The \fBsip_get_trans()\fR function returns the required value on success or
45 \fINULL\fR on failure.
48 The value of \fBerrno\fR is not changed by these calls in the event of an
53 On success, the value of the location pointed to by \fIerror\fR is set to
58 See \fBattributes\fR(5) for descriptions of the following attributes:
66 ATTRIBUTE TYPE ATTRIBUTE VALUE
68 Interface Stability Committed