Unix and Linux Discussions Tagged with creating |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
32 |
284,782 |
Shell Programming and Scripting |
|
|
|
10 |
7,384 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
26,656 |
Solaris |
|
|
|
3 |
2,369 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
15,310 |
Web Development |
|
|
|
10 |
7,718 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
8,355 |
UNIX for Advanced & Expert Users |
|
|
|
8 |
12,712 |
Shell Programming and Scripting |
|
|
|
2 |
3,073 |
Solaris |
|
|
|
0 |
3,014 |
Solaris BigAdmin RSS |
|
|
|
2 |
18,965 |
AIX |
|
|
|
0 |
3,159 |
Solaris BigAdmin RSS |
|
|
|
0 |
3,315 |
UNIX and Linux RSS News |
|
|
|
1 |
8,841 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
13,165 |
Solaris |
|
|
|
0 |
2,788 |
OS X Support RSS |
|
|
|
0 |
3,108 |
OS X Support RSS |
|
|
|
0 |
1,795 |
UNIX and Linux RSS News |
|
|
|
1 |
5,306 |
HP-UX |
|
|
|
1 |
2,178 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
2,431 |
OS X Support RSS |
|
|
|
0 |
2,876 |
Linux |
|
|
|
0 |
3,018 |
Oracle Updates (RSS) |
|
|
|
7 |
6,335 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
2,794 |
Shell Programming and Scripting |
|
|
|
0 |
7,685 |
Solaris |
|
|
|
4 |
6,852 |
AIX |
|
|
|
1 |
2,325 |
Shell Programming and Scripting |
|
|
|
1 |
4,237 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
18,468 |
AIX |
|
|
|
0 |
3,182 |
Shell Programming and Scripting |
|
|
|
0 |
1,928 |
UNIX and Linux RSS News |
|
|
|
2 |
2,383 |
Shell Programming and Scripting |
|
|
|
2 |
4,472 |
Shell Programming and Scripting |
|
|
|
0 |
3,212 |
Oracle Updates (RSS) |
|
|
|
0 |
1,908 |
UNIX and Linux RSS News |
|
|
|
1 |
7,430 |
AIX |
|
|
|
0 |
2,180 |
UNIX and Linux RSS News |
|
|
|
0 |
4,590 |
Oracle Updates (RSS) |
|
|
|
0 |
1,782 |
UNIX and Linux RSS News |
sip_sendmsg(3SIP) Session Initiation Protocol Library Functions sip_sendmsg(3SIP)
NAME
sip_sendmsg - send an outbound SIP message to the SIP stack for processing
SYNOPSIS
cc [ flag ... ] file ... -lsip [ library ... ]
#include <sip.h>
int sip_sendmsg(sip_conn_object_t obj, sip_msg_t sip_msg,
sip_dialog_t dialog, uint32_t flags);
DESCRIPTION
The sip_sendmsg() function is used to send an outbound SIP message sip_msg to the SIP stack on its way to the peer. The connection object
for the SIP message is passed as obj. The caller also provides the dialog associated with the message, if one exists. The value of flags is
the result of ORing the following, as required:
SIP_SEND_STATEFUL Send the request or response statefully. This results in the stack creating and maintaining a transaction for this
request/response. If this flag is not set transactions are not created for the request/response.
SIP_DIALOG_ON_FORK When this flag is set, the stack may create multiple dialogs for a dialog completing response. This may result due to
forking of the dialog creating request. If this flag is not set, the first response to a dialog creating request cre-
ates a dialog, but subsequent ones do not. It is only meaningful if the stack is configured to maintain dialogs.
RETURN VALUES
The sip_sendmsg() function returns 0 on success and the appropriate error on failure.
The value of errno is not changed by these calls in the event of an error.
ERRORS
The sip_sendmsg() function can return one of the following errors on failure:
EINVAL If a message is being statefully sent and the branchid in the VIA header does not conform to RFC 3261 or when accessing CSEQ
header while creating a transaction.
ENOENT If a message is being statefully sent, error getting the CSEQ header while creating a transaction.
EPROTO If a message is being statefully sent, error getting the CSEQ value while creating a transaction.
ENOMEM If the message is being statefully sent, error allocating memory for creating or adding a transaction or during transaction
related processing.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
libsip(3LIB)
SunOS 5.11 25 Jan 2007 sip_sendmsg(3SIP)