BLOG | DOCUMENTATION | TRAC

Home --> Documentations --> PJSIP Reference

#include <pjsua.h>

Data Fields

pj_str_t target_uri
 
pjsip_hdr hdr_list
 
pj_str_t content_type
 
pj_str_t msg_body
 
pjsip_media_type multipart_ctype
 
pjsip_multipart_part multipart_parts
 

Detailed Description

This structure describes additional information to be sent with outgoing SIP message. It can (optionally) be specified for example with pjsua_call_make_call(), pjsua_call_answer(), pjsua_call_hangup(), pjsua_call_set_hold(), pjsua_call_send_im(), and many more.

Application MUST call pjsua_msg_data_init() to initialize this structure before setting its values.

Forward declaration for pjsua_msg_data

Field Documentation

pj_str_t pjsua_msg_data::target_uri

Optional remote target URI (i.e. Target header). If NULL, the target will be set to the remote URI (To header). At the moment this field is only used by pjsua_call_make_call() and pjsua_im_send().

pjsip_hdr pjsua_msg_data::hdr_list

Additional message headers as linked list. Application can add headers to the list by creating the header, either from the heap/pool or from temporary local variable, and add the header using linked list operation. See pjsua_app.c for some sample codes.

pj_str_t pjsua_msg_data::content_type

MIME type of optional message body.

pj_str_t pjsua_msg_data::msg_body

Optional message body to be added to the message, only when the message doesn't have a body.

pjsip_media_type pjsua_msg_data::multipart_ctype

Content type of the multipart body. 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.

pjsip_multipart_part pjsua_msg_data::multipart_parts

List 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:
  • pjsua-lib/pjsua.h

 


PJSIP Open Source, high performance, small footprint, and very very portable SIP stack
Copyright (C) 2006-2008 Teluu Inc.