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_CREATE_OKACK 3SIP "Jan 25, 2007"
8 sip_create_OKack \- create an ACK request for a final response
12 \fBcc\fR [ \fIflag\fR ... ] \fIfile\fR ... \fB-lsip\fR [ \fIlibrary\fR ... ]
15 \fBint\fR \fIsip_create_OKack\fR(\fBsip_msg_t\fR \fIresponse\fR,
16 \fBsip_msg_t\fR \fIack_msg\fR, \fBchar *\fR\fItransport\fR,
17 \fBchar *\fR\fIsent_by\fR, \fBint\fR \fIsent_by_port\fR,
18 \fBchar *\fR\fIvia_params\fR);
24 The \fBsip_create_OKack()\fR function constructs an \fBACK\fR request in
25 \fIack_msg\fR for the final \fB2\fR\fIXX\fR \fBSIP\fR response. The request
26 line is created using the \fBURI\fR in the \fBCONTACT\fR header from the
27 \fIresponse\fR. The SIP-Version in the request line is "2.0". The \fBVIA\fR
28 header for the \fBACK\fR request is created using \fItransport\fR,
29 \fIsent_by\fR, \fIsent_by_port\fR (if non-zero), and \fIvia_params\fR (if
30 non-null). The following headers are copied to \fIack_msg\fR from
50 The \fBCSEQ\fR header is created using the method as \fBACK\fR and the sequence
51 number from the \fBCSEQ\fR header in \fIresponse\fR.
55 The \fBsip_create_OKack()\fR function returns \fB0\fR on success and the
56 appropriate error value in case of failure.
59 The value of \fBerrno\fR is not changed by these calls in the event of an
64 On failure, the \fBsip_create_OKack()\fR function could return one of the
72 If mandatory input is not provided or if the input is invalid.
74 The \fBsip_create_OKack()\fR function can return this error if it does not find
75 a \fBCONTACT\fR header or if it is unable to obtain the \fBURI\fR from the
76 \fBCONTACT\fR header for the request line.
85 If the input \fBSIP\fR message cannot be modified.
94 If memory allocation fails when creating the request/response line or when
95 creating headers in the \fBACK\fR request.
101 See \fBattributes\fR(5) for descriptions of the following attributes:
109 ATTRIBUTE TYPE ATTRIBUTE VALUE
111 Interface Stability Committed