#include <siptypes.hpp>
Additional options when sending outgoing SIP message. This corresponds to pjsua_msg_data structure in PJSIP library.
◆ isEmpty()
bool pj::SipTxOption::isEmpty |
( |
| ) |
const |
Check if the options are empty. If the options are set with empty values, there will be no additional information sent with outgoing SIP message.
- Returns
- True if the options are empty.
◆ fromPj()
◆ toPj()
◆ targetUri
string pj::SipTxOption::targetUri |
Optional remote target URI (i.e. Target header). If empty (""), the target will be set to the remote URI (To header). At the moment this field is only used when sending initial INVITE and MESSAGE requests.
◆ headers
Additional message headers to be included in the outgoing message.
◆ contentType
string pj::SipTxOption::contentType |
MIME type of the message body, if application specifies the messageBody in this structure.
◆ msgBody
string pj::SipTxOption::msgBody |
Optional message body to be added to the message, only when the message doesn't have a body.
◆ multipartContentType
Content type of the multipart body. If application wants to send multipart message bodies, it puts the parts in multipartParts and set the content type in multipartContentType. If the message already contains a body, the body will be added to the multipart bodies.
◆ multipartParts
Array of multipart parts. If application wants to send multipart message bodies, it puts the parts in parts and set the content type in multipart_ctype. If the message already contains a body, the body will be added to the multipart bodies.
The documentation for this struct was generated from the following file: