SIP_SENDMSG(3SIP) | Session Initiation Protocol Library Functions | SIP_SENDMSG(3SIP) |
sip_sendmsg - send an outbound SIP message to the SIP stack for processing
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);
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
SIP_DIALOG_ON_FORK
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.
The sip_sendmsg() function can return one of the following errors on failure:
EINVAL
ENOENT
EPROTO
ENOMEM
See attributes(7) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Interface Stability | Committed |
MT-Level | MT-Safe |
January 25, 2007 | OmniOS |