BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJSIP Reference

pjsua-lib/pjsua.h File Reference

PJSUA API. More...

#include <pjsip.h>
#include <pjmedia.h>
#include <pjmedia-codec.h>
#include <pjmedia_videodev.h>
#include <pjsip_ua.h>
#include <pjsip_simple.h>
#include <pjnath.h>
#include <pjlib-util.h>
#include <pjlib.h>

Data Structures

struct  pjsua_logging_config
 
struct  pjsua_mwi_info
 
struct  pjsua_reg_info
 
struct  pjsua_stream_info
 
struct  pjsua_stream_stat
 
struct  pjsua_on_stream_precreate_param
 
struct  pjsua_on_stream_created_param
 
struct  pjsua_med_tp_state_info
 
struct  pjsua_srtp_opt
 
union  pjsua_ip_change_op_info
 
struct  pjsua_dtmf_info
 
struct  pjsua_dtmf_event
 
struct  pjsua_call_setting
 
struct  pjsua_callback
 
struct  pjsua_config
 
struct  pjsua_msg_data
 
struct  pj_stun_resolve_result
 
struct  pjsua_ip_change_param
 
struct  pjsua_ip_change_acc_cfg
 
struct  pjsua_transport_config
 
struct  pjsua_transport_info
 
struct  pjsua_ice_config
 
struct  pjsua_turn_config
 
struct  pjsua_acc_config
 
struct  pjsua_acc_info
 
struct  pjsua_call_media_info
 
struct  pjsua_call_info
 
struct  pjsua_call_vid_strm_op_param
 
struct  pjsua_call_send_dtmf_param
 
struct  pjsua_buddy_config
 
struct  pjsua_buddy_info
 
struct  pjsua_media_config
 
struct  pjsua_codec_info
 
struct  pjsua_conf_port_info
 
struct  pjsua_media_transport
 
struct  pjsua_snd_dev_param
 
struct  pjsua_conf_connect_param
 
struct  pjsua_vid_preview_param
 
struct  pjsua_vid_win_info
 
struct  pjsua_vid_conf_port_info
 

Macros

#define DISABLED_FOR_TICKET_1185   0
 
#define PJSUA_POOL_LEN   1000
 
#define PJSUA_POOL_INC   1000
 
#define PJSUA_POOL_LEN_ACC   512
 
#define PJSUA_POOL_INC_ACC   256
 
#define PJSUA_ACC_MAX_PROXIES   8
 
#define PJSUA_DEFAULT_USE_SRTP   PJMEDIA_SRTP_DISABLED
 
#define PJSUA_DEFAULT_SRTP_SECURE_SIGNALING   1
 
#define PJSUA_ADD_ICE_TAGS   1
 
#define PJSUA_ACQUIRE_CALL_TIMEOUT   2000
 
#define PJSUA_HAS_VIDEO   PJMEDIA_HAS_VIDEO
 
#define PJSUA_VID_REQ_KEYFRAME_INTERVAL   3000
 
#define PJSUA_SEPARATE_WORKER_FOR_TIMER   0
 
#define PJSUA_DISABLE_AUTO_SEND_100   0
 
#define PJSUA_ICE_TRANSPORT_OPTION   0
 
#define PJSUA_TRICKLE_ICE_NEW_CAND_CHECK_INTERVAL   100
 
#define PJSUA_UNKNOWN_DTMF_DURATION   ((unsigned)-1)
 
#define pjsip_cred_dup   pjsip_cred_info_dup
 
#define PJSUA_MAX_ACC   8
 
#define PJSUA_REG_INTERVAL   300
 
#define PJSUA_UNREG_TIMEOUT   4000
 
#define PJSUA_PUBLISH_EXPIRATION   PJSIP_PUBC_EXPIRATION_NOT_SPECIFIED
 
#define PJSUA_DEFAULT_ACC_PRIORITY   0
 
#define PJSUA_UNPUBLISH_MAX_WAIT_TIME_MSEC   2000
 
#define PJSUA_REG_RETRY_INTERVAL   300
 
#define PJSUA_REG_AUTO_REG_REFRESH   1
 
#define PJSUA_CONTACT_REWRITE_METHOD
 
#define PJSUA_REG_USE_OUTBOUND_PROXY   1
 
#define PJSUA_REG_USE_ACC_PROXY   2
 
#define PJSUA_CALL_HOLD_TYPE_DEFAULT   PJSUA_CALL_HOLD_TYPE_RFC3264
 
#define PJSUA_MAX_CALLS   4
 
#define PJSUA_MAX_VID_WINS   16
 
#define PJSUA_LOCK_CODEC_DONT_USE_UPDATE   0
 
#define PJSUA_CALL_SEND_DTMF_DURATION_DEFAULT   160
 
#define PJSUA_XFER_NO_REQUIRE_REPLACES   1
 
#define PJSUA_MAX_BUDDIES   256
 
#define PJSUA_PRES_TIMER   300
 
#define PJSUA_MEDIA_HAS_PJMEDIA   1
 
#define PJSUA_THIRD_PARTY_STREAM_HAS_GET_INFO   0
 
#define PJSUA_THIRD_PARTY_STREAM_HAS_GET_STAT   0
 
#define PJSUA_MAX_CONF_PORTS   254
 
#define PJSUA_DEFAULT_CLOCK_RATE   16000
 
#define PJSUA_DEFAULT_AUDIO_FRAME_PTIME   20
 
#define PJSUA_DEFAULT_CODEC_QUALITY   8
 
#define PJSUA_DEFAULT_ILBC_MODE   30
 
#define PJSUA_DEFAULT_EC_TAIL_LEN   200
 
#define PJSUA_MAX_PLAYERS   32
 
#define PJSUA_MAX_RECORDERS   32
 
#define PJSUA_SDP_SESS_HAS_CONN   0
 
#define PJSUA_TRANSPORT_RESTART_DELAY_TIME   10
 
#define PJSUA_DONT_INIT_VID_DEV_SUBSYS   0
 

Typedefs

typedef int pjsua_call_id
 
typedef int pjsua_acc_id
 
typedef int pjsua_buddy_id
 
typedef int pjsua_player_id
 
typedef int pjsua_recorder_id
 
typedef int pjsua_conf_port_id
 
typedef pj_status_t(* pjsua_med_tp_state_cb) (pjsua_call_id call_id, const pjsua_med_tp_state_info *info)
 
typedef void(* pj_stun_resolve_cb) (const pj_stun_resolve_result *result)
 
typedef int pjsua_transport_id
 
typedef int pjsua_vid_win_id
 
typedef struct pjsua_ext_snd_dev pjsua_ext_snd_dev
 

Enumerations

enum  pjsua_invalid_id_const_ { PJSUA_INVALID_ID = -1 }
 
enum  pjsua_state {
  PJSUA_STATE_NULL , PJSUA_STATE_CREATED , PJSUA_STATE_INIT , PJSUA_STATE_STARTING ,
  PJSUA_STATE_RUNNING , PJSUA_STATE_CLOSING
}
 
enum  pjsua_med_tp_st {
  PJSUA_MED_TP_NULL , PJSUA_MED_TP_CREATING , PJSUA_MED_TP_IDLE , PJSUA_MED_TP_INIT ,
  PJSUA_MED_TP_RUNNING , PJSUA_MED_TP_DISABLED
}
 
enum  pjsua_create_media_transport_flag { PJSUA_MED_TP_CLOSE_MEMBER = 1 }
 
enum  pjsua_contact_rewrite_method { PJSUA_CONTACT_REWRITE_UNREGISTER = 1 , PJSUA_CONTACT_REWRITE_NO_UNREG = 2 , PJSUA_CONTACT_REWRITE_ALWAYS_UPDATE = 4 }
 
enum  pjsua_ip_change_op {
  PJSUA_IP_CHANGE_OP_NULL , PJSUA_IP_CHANGE_OP_RESTART_LIS , PJSUA_IP_CHANGE_OP_ACC_SHUTDOWN_TP , PJSUA_IP_CHANGE_OP_ACC_UPDATE_CONTACT ,
  PJSUA_IP_CHANGE_OP_ACC_HANGUP_CALLS , PJSUA_IP_CHANGE_OP_ACC_REINVITE_CALLS , PJSUA_IP_CHANGE_OP_COMPLETED
}
 
enum  pjsua_dtmf_method { PJSUA_DTMF_METHOD_RFC2833 , PJSUA_DTMF_METHOD_SIP_INFO }
 
enum  pjsua_sip_timer_use { PJSUA_SIP_TIMER_INACTIVE , PJSUA_SIP_TIMER_OPTIONAL , PJSUA_SIP_TIMER_REQUIRED , PJSUA_SIP_TIMER_ALWAYS }
 
enum  pjsua_100rel_use { PJSUA_100REL_NOT_USED , PJSUA_100REL_MANDATORY , PJSUA_100REL_OPTIONAL }
 
enum  pjsua_destroy_flag { PJSUA_DESTROY_NO_RX_MSG = 1 , PJSUA_DESTROY_NO_TX_MSG = 2 , PJSUA_DESTROY_NO_NETWORK }
 
enum  pjsua_call_hold_type { PJSUA_CALL_HOLD_TYPE_RFC3264 , PJSUA_CALL_HOLD_TYPE_RFC2543 }
 
enum  pjsua_stun_use { PJSUA_STUN_USE_DEFAULT , PJSUA_STUN_USE_DISABLED , PJSUA_STUN_RETRY_ON_FAILURE }
 
enum  pjsua_upnp_use { PJSUA_UPNP_USE_DEFAULT , PJSUA_UPNP_USE_DISABLED }
 
enum  pjsua_ice_config_use { PJSUA_ICE_CONFIG_USE_DEFAULT , PJSUA_ICE_CONFIG_USE_CUSTOM }
 
enum  pjsua_turn_config_use { PJSUA_TURN_CONFIG_USE_DEFAULT , PJSUA_TURN_CONFIG_USE_CUSTOM }
 
enum  pjsua_ipv6_use { PJSUA_IPV6_DISABLED , PJSUA_IPV6_ENABLED }
 
enum  pjsua_nat64_opt { PJSUA_NAT64_DISABLED , PJSUA_NAT64_ENABLED }
 
enum  pjsua_call_media_status {
  PJSUA_CALL_MEDIA_NONE , PJSUA_CALL_MEDIA_ACTIVE , PJSUA_CALL_MEDIA_LOCAL_HOLD , PJSUA_CALL_MEDIA_REMOTE_HOLD ,
  PJSUA_CALL_MEDIA_ERROR
}
 
enum  pjsua_vid_req_keyframe_method { PJSUA_VID_REQ_KEYFRAME_SIP_INFO = 1 , PJSUA_VID_REQ_KEYFRAME_RTCP_PLI = 2 }
 
enum  pjsua_call_flag {
  PJSUA_CALL_UNHOLD = 1 , PJSUA_CALL_UPDATE_CONTACT = 2 , PJSUA_CALL_INCLUDE_DISABLED_MEDIA = 4 , PJSUA_CALL_NO_SDP_OFFER = 8 ,
  PJSUA_CALL_REINIT_MEDIA = 16 , PJSUA_CALL_UPDATE_VIA = 32 , PJSUA_CALL_UPDATE_TARGET = 64 , PJSUA_CALL_SET_MEDIA_DIR = 128
}
 
enum  pjsua_call_vid_strm_op {
  PJSUA_CALL_VID_STRM_NO_OP , PJSUA_CALL_VID_STRM_ADD , PJSUA_CALL_VID_STRM_REMOVE , PJSUA_CALL_VID_STRM_CHANGE_DIR ,
  PJSUA_CALL_VID_STRM_CHANGE_CAP_DEV , PJSUA_CALL_VID_STRM_START_TRANSMIT , PJSUA_CALL_VID_STRM_STOP_TRANSMIT , PJSUA_CALL_VID_STRM_SEND_KEYFRAME
}
 
enum  pjsua_buddy_status { PJSUA_BUDDY_STATUS_UNKNOWN , PJSUA_BUDDY_STATUS_ONLINE , PJSUA_BUDDY_STATUS_OFFLINE }
 
enum  pjsua_snd_dev_id { PJSUA_SND_DEFAULT_CAPTURE_DEV = PJMEDIA_AUD_DEFAULT_CAPTURE_DEV , PJSUA_SND_DEFAULT_PLAYBACK_DEV = PJMEDIA_AUD_DEFAULT_PLAYBACK_DEV , PJSUA_SND_NO_DEV = PJMEDIA_AUD_INVALID_DEV , PJSUA_SND_NULL_DEV = -99 }
 
enum  pjsua_snd_dev_mode { PJSUA_SND_DEV_SPEAKER_ONLY = 1 , PJSUA_SND_DEV_NO_IMMEDIATE_OPEN = 2 }
 

Functions

void pjsua_logging_config_default (pjsua_logging_config *cfg)
 
void pjsua_logging_config_dup (pj_pool_t *pool, pjsua_logging_config *dst, const pjsua_logging_config *src)
 
void pjsua_config_default (pjsua_config *cfg)
 
void pjsua_config_dup (pj_pool_t *pool, pjsua_config *dst, const pjsua_config *src)
 
void pjsua_msg_data_init (pjsua_msg_data *msg_data)
 
pjsua_msg_datapjsua_msg_data_clone (pj_pool_t *pool, const pjsua_msg_data *rhs)
 
pj_status_t pjsua_create (void)
 
pj_status_t pjsua_init (const pjsua_config *ua_cfg, const pjsua_logging_config *log_cfg, const pjsua_media_config *media_cfg)
 
pj_status_t pjsua_start (void)
 
pj_status_t pjsua_destroy (void)
 
pjsua_state pjsua_get_state (void)
 
pj_status_t pjsua_destroy2 (unsigned flags)
 
int pjsua_handle_events (unsigned msec_timeout)
 
void pjsua_stop_worker_threads (void)
 
pj_pool_tpjsua_pool_create (const char *name, pj_size_t init_size, pj_size_t increment)
 
pj_status_t pjsua_reconfigure_logging (const pjsua_logging_config *c)
 
pjsip_endpointpjsua_get_pjsip_endpt (void)
 
pjmedia_endptpjsua_get_pjmedia_endpt (void)
 
pj_pool_factorypjsua_get_pool_factory (void)
 
void pjsua_ip_change_param_default (pjsua_ip_change_param *param)
 
pj_status_t pjsua_detect_nat_type (void)
 
pj_status_t pjsua_get_nat_type (pj_stun_nat_type *type)
 
pj_status_t pjsua_update_stun_servers (unsigned count, pj_str_t srv[], pj_bool_t wait)
 
pj_status_t pjsua_resolve_stun_servers (unsigned count, pj_str_t srv[], pj_bool_t wait, void *token, pj_stun_resolve_cb cb)
 
pj_status_t pjsua_cancel_stun_resolution (void *token, pj_bool_t notify_cb)
 
pj_status_t pjsua_verify_sip_url (const char *url)
 
pj_status_t pjsua_verify_url (const char *url)
 
pj_status_t pjsua_schedule_timer (pj_timer_entry *entry, const pj_time_val *delay)
 
pj_status_t pjsua_schedule_timer2 (void(*cb)(void *user_data), void *user_data, unsigned msec_delay)
 
void pjsua_cancel_timer (pj_timer_entry *entry)
 
void pjsua_perror (const char *sender, const char *title, pj_status_t status)
 
void pjsua_dump (pj_bool_t detail)
 
pj_status_t pjsua_handle_ip_change (const pjsua_ip_change_param *param)
 
void pjsua_transport_config_default (pjsua_transport_config *cfg)
 
void pjsua_transport_config_dup (pj_pool_t *pool, pjsua_transport_config *dst, const pjsua_transport_config *src)
 
pj_status_t pjsua_transport_create (pjsip_transport_type_e type, const pjsua_transport_config *cfg, pjsua_transport_id *p_id)
 
pj_status_t pjsua_transport_register (pjsip_transport *tp, pjsua_transport_id *p_id)
 
pj_status_t pjsua_tpfactory_register (pjsip_tpfactory *tf, pjsua_transport_id *p_id)
 
pj_status_t pjsua_enum_transports (pjsua_transport_id id[], unsigned *count)
 
pj_status_t pjsua_transport_get_info (pjsua_transport_id id, pjsua_transport_info *info)
 
pj_status_t pjsua_transport_set_enable (pjsua_transport_id id, pj_bool_t enabled)
 
pj_status_t pjsua_transport_close (pjsua_transport_id id, pj_bool_t force)
 
pj_status_t pjsua_transport_lis_start (pjsua_transport_id id, const pjsua_transport_config *cfg)
 
void pjsua_ice_config_from_media_config (pj_pool_t *pool, pjsua_ice_config *dst, const pjsua_media_config *src)
 
void pjsua_ice_config_dup (pj_pool_t *pool, pjsua_ice_config *dst, const pjsua_ice_config *src)
 
void pjsua_turn_config_from_media_config (pj_pool_t *pool, pjsua_turn_config *dst, const pjsua_media_config *src)
 
void pjsua_turn_config_dup (pj_pool_t *pool, pjsua_turn_config *dst, const pjsua_turn_config *src)
 
void pjsua_srtp_opt_default (pjsua_srtp_opt *cfg)
 
void pjsua_srtp_opt_dup (pj_pool_t *pool, pjsua_srtp_opt *dst, const pjsua_srtp_opt *src, pj_bool_t check_str)
 
void pjsua_acc_config_default (pjsua_acc_config *cfg)
 
void pjsua_acc_config_dup (pj_pool_t *pool, pjsua_acc_config *dst, const pjsua_acc_config *src)
 
unsigned pjsua_acc_get_count (void)
 
pj_bool_t pjsua_acc_is_valid (pjsua_acc_id acc_id)
 
pj_status_t pjsua_acc_set_default (pjsua_acc_id acc_id)
 
pjsua_acc_id pjsua_acc_get_default (void)
 
pj_status_t pjsua_acc_add (const pjsua_acc_config *acc_cfg, pj_bool_t is_default, pjsua_acc_id *p_acc_id)
 
pj_status_t pjsua_acc_add_local (pjsua_transport_id tid, pj_bool_t is_default, pjsua_acc_id *p_acc_id)
 
pj_status_t pjsua_acc_set_user_data (pjsua_acc_id acc_id, void *user_data)
 
void * pjsua_acc_get_user_data (pjsua_acc_id acc_id)
 
pj_status_t pjsua_acc_del (pjsua_acc_id acc_id)
 
pj_status_t pjsua_acc_get_config (pjsua_acc_id acc_id, pj_pool_t *pool, pjsua_acc_config *acc_cfg)
 
pj_status_t pjsua_acc_modify (pjsua_acc_id acc_id, const pjsua_acc_config *acc_cfg)
 
pj_status_t pjsua_acc_set_online_status (pjsua_acc_id acc_id, pj_bool_t is_online)
 
pj_status_t pjsua_acc_set_online_status2 (pjsua_acc_id acc_id, pj_bool_t is_online, const pjrpid_element *pr)
 
pj_status_t pjsua_acc_set_registration (pjsua_acc_id acc_id, pj_bool_t renew)
 
pj_status_t pjsua_acc_get_info (pjsua_acc_id acc_id, pjsua_acc_info *info)
 
pj_status_t pjsua_enum_accs (pjsua_acc_id ids[], unsigned *count)
 
pj_status_t pjsua_acc_enum_info (pjsua_acc_info info[], unsigned *count)
 
pjsua_acc_id pjsua_acc_find_for_outgoing (const pj_str_t *url)
 
pjsua_acc_id pjsua_acc_find_for_incoming (pjsip_rx_data *rdata)
 
pj_status_t pjsua_acc_create_request (pjsua_acc_id acc_id, const pjsip_method *method, const pj_str_t *target, pjsip_tx_data **p_tdata)
 
pj_status_t pjsua_acc_create_uac_contact (pj_pool_t *pool, pj_str_t *contact, pjsua_acc_id acc_id, const pj_str_t *uri)
 
pj_status_t pjsua_acc_create_uas_contact (pj_pool_t *pool, pj_str_t *contact, pjsua_acc_id acc_id, pjsip_rx_data *rdata)
 
pj_status_t pjsua_acc_set_transport (pjsua_acc_id acc_id, pjsua_transport_id tp_id)
 
void pjsua_call_setting_default (pjsua_call_setting *opt)
 
void pjsua_call_vid_strm_op_param_default (pjsua_call_vid_strm_op_param *param)
 
void pjsua_call_send_dtmf_param_default (pjsua_call_send_dtmf_param *param)
 
unsigned pjsua_call_get_max_count (void)
 
unsigned pjsua_call_get_count (void)
 
pj_status_t pjsua_enum_calls (pjsua_call_id ids[], unsigned *count)
 
pj_status_t pjsua_call_make_call (pjsua_acc_id acc_id, const pj_str_t *dst_uri, const pjsua_call_setting *opt, void *user_data, const pjsua_msg_data *msg_data, pjsua_call_id *p_call_id)
 
pj_bool_t pjsua_call_is_active (pjsua_call_id call_id)
 
pj_bool_t pjsua_call_has_media (pjsua_call_id call_id)
 
pjsua_conf_port_id pjsua_call_get_conf_port (pjsua_call_id call_id)
 
pjsua_vid_win_id pjsua_call_get_vid_win (pjsua_call_id call_id)
 
pjsua_conf_port_id pjsua_call_get_vid_conf_port (pjsua_call_id call_id, pjmedia_dir dir)
 
pj_status_t pjsua_call_get_info (pjsua_call_id call_id, pjsua_call_info *info)
 
pjsip_dialog_cap_status pjsua_call_remote_has_cap (pjsua_call_id call_id, int htype, const pj_str_t *hname, const pj_str_t *token)
 
pj_status_t pjsua_call_set_user_data (pjsua_call_id call_id, void *user_data)
 
void * pjsua_call_get_user_data (pjsua_call_id call_id)
 
pj_status_t pjsua_call_get_rem_nat_type (pjsua_call_id call_id, pj_stun_nat_type *p_type)
 
pj_status_t pjsua_call_answer (pjsua_call_id call_id, unsigned code, const pj_str_t *reason, const pjsua_msg_data *msg_data)
 
pj_status_t pjsua_call_answer2 (pjsua_call_id call_id, const pjsua_call_setting *opt, unsigned code, const pj_str_t *reason, const pjsua_msg_data *msg_data)
 
pj_status_t pjsua_call_answer_with_sdp (pjsua_call_id call_id, const pjmedia_sdp_session *sdp, const pjsua_call_setting *opt, unsigned code, const pj_str_t *reason, const pjsua_msg_data *msg_data)
 
pj_status_t pjsua_call_hangup (pjsua_call_id call_id, unsigned code, const pj_str_t *reason, const pjsua_msg_data *msg_data)
 
pj_status_t pjsua_call_process_redirect (pjsua_call_id call_id, pjsip_redirect_op cmd)
 
pj_status_t pjsua_call_set_hold (pjsua_call_id call_id, const pjsua_msg_data *msg_data)
 
pj_status_t pjsua_call_set_hold2 (pjsua_call_id call_id, unsigned options, const pjsua_msg_data *msg_data)
 
pj_status_t pjsua_call_reinvite (pjsua_call_id call_id, unsigned options, const pjsua_msg_data *msg_data)
 
pj_status_t pjsua_call_reinvite2 (pjsua_call_id call_id, const pjsua_call_setting *opt, const pjsua_msg_data *msg_data)
 
pj_status_t pjsua_call_update (pjsua_call_id call_id, unsigned options, const pjsua_msg_data *msg_data)
 
pj_status_t pjsua_call_update2 (pjsua_call_id call_id, const pjsua_call_setting *opt, const pjsua_msg_data *msg_data)
 
pj_status_t pjsua_call_xfer (pjsua_call_id call_id, const pj_str_t *dest, const pjsua_msg_data *msg_data)
 
pj_status_t pjsua_call_xfer_replaces (pjsua_call_id call_id, pjsua_call_id dest_call_id, unsigned options, const pjsua_msg_data *msg_data)
 
pj_status_t pjsua_call_dial_dtmf (pjsua_call_id call_id, const pj_str_t *digits)
 
pj_status_t pjsua_call_send_dtmf (pjsua_call_id call_id, const pjsua_call_send_dtmf_param *param)
 
pj_status_t pjsua_call_send_im (pjsua_call_id call_id, const pj_str_t *mime_type, const pj_str_t *content, const pjsua_msg_data *msg_data, void *user_data)
 
pj_status_t pjsua_call_send_typing_ind (pjsua_call_id call_id, pj_bool_t is_typing, const pjsua_msg_data *msg_data)
 
pj_status_t pjsua_call_send_request (pjsua_call_id call_id, const pj_str_t *method, const pjsua_msg_data *msg_data)
 
void pjsua_call_hangup_all (void)
 
pj_status_t pjsua_call_dump (pjsua_call_id call_id, pj_bool_t with_media, char *buffer, unsigned maxlen, const char *indent)
 
int pjsua_call_get_vid_stream_idx (pjsua_call_id call_id)
 
pj_bool_t pjsua_call_vid_stream_is_running (pjsua_call_id call_id, int med_idx, pjmedia_dir dir)
 
pj_status_t pjsua_call_set_vid_strm (pjsua_call_id call_id, pjsua_call_vid_strm_op op, const pjsua_call_vid_strm_op_param *param)
 
pj_status_t pjsua_call_aud_stream_modify_codec_param (pjsua_call_id call_id, int med_idx, const pjmedia_codec_param *param)
 
pj_status_t pjsua_call_get_stream_info (pjsua_call_id call_id, unsigned med_idx, pjsua_stream_info *psi)
 
pj_status_t pjsua_call_get_stream_stat (pjsua_call_id call_id, unsigned med_idx, pjsua_stream_stat *stat)
 
pj_status_t pjsua_call_get_med_transport_info (pjsua_call_id call_id, unsigned med_idx, pjmedia_transport_info *t)
 
void pjsua_buddy_config_default (pjsua_buddy_config *cfg)
 
unsigned pjsua_get_buddy_count (void)
 
pj_bool_t pjsua_buddy_is_valid (pjsua_buddy_id buddy_id)
 
pj_status_t pjsua_enum_buddies (pjsua_buddy_id ids[], unsigned *count)
 
pjsua_buddy_id pjsua_buddy_find (const pj_str_t *uri)
 
pj_status_t pjsua_buddy_get_info (pjsua_buddy_id buddy_id, pjsua_buddy_info *info)
 
pj_status_t pjsua_buddy_set_user_data (pjsua_buddy_id buddy_id, void *user_data)
 
void * pjsua_buddy_get_user_data (pjsua_buddy_id buddy_id)
 
pj_status_t pjsua_buddy_add (const pjsua_buddy_config *buddy_cfg, pjsua_buddy_id *p_buddy_id)
 
pj_status_t pjsua_buddy_del (pjsua_buddy_id buddy_id)
 
pj_status_t pjsua_buddy_subscribe_pres (pjsua_buddy_id buddy_id, pj_bool_t subscribe)
 
pj_status_t pjsua_buddy_update_pres (pjsua_buddy_id buddy_id)
 
pj_status_t pjsua_pres_notify (pjsua_acc_id acc_id, pjsua_srv_pres *srv_pres, pjsip_evsub_state state, const pj_str_t *state_str, const pj_str_t *reason, pj_bool_t with_body, const pjsua_msg_data *msg_data)
 
void pjsua_pres_dump (pj_bool_t verbose)
 
pj_status_t pjsua_im_send (pjsua_acc_id acc_id, const pj_str_t *to, const pj_str_t *mime_type, const pj_str_t *content, const pjsua_msg_data *msg_data, void *user_data)
 
pj_status_t pjsua_im_typing (pjsua_acc_id acc_id, const pj_str_t *to, pj_bool_t is_typing, const pjsua_msg_data *msg_data)
 
void pjsua_media_config_default (pjsua_media_config *cfg)
 
void pjsua_snd_dev_param_default (pjsua_snd_dev_param *prm)
 
void pjsua_conf_connect_param_default (pjsua_conf_connect_param *prm)
 
unsigned pjsua_conf_get_max_ports (void)
 
unsigned pjsua_conf_get_active_ports (void)
 
pj_status_t pjsua_enum_conf_ports (pjsua_conf_port_id id[], unsigned *count)
 
pj_status_t pjsua_conf_get_port_info (pjsua_conf_port_id port_id, pjsua_conf_port_info *info)
 
pj_status_t pjsua_conf_add_port (pj_pool_t *pool, pjmedia_port *port, pjsua_conf_port_id *p_id)
 
pj_status_t pjsua_conf_remove_port (pjsua_conf_port_id port_id)
 
pj_status_t pjsua_conf_connect (pjsua_conf_port_id source, pjsua_conf_port_id sink)
 
pj_status_t pjsua_conf_connect2 (pjsua_conf_port_id source, pjsua_conf_port_id sink, const pjsua_conf_connect_param *prm)
 
pj_status_t pjsua_conf_disconnect (pjsua_conf_port_id source, pjsua_conf_port_id sink)
 
pj_status_t pjsua_conf_adjust_tx_level (pjsua_conf_port_id slot, float level)
 
pj_status_t pjsua_conf_adjust_rx_level (pjsua_conf_port_id slot, float level)
 
pj_status_t pjsua_conf_get_signal_level (pjsua_conf_port_id slot, unsigned *tx_level, unsigned *rx_level)
 
pj_status_t pjsua_player_create (const pj_str_t *filename, unsigned options, pjsua_player_id *p_id)
 
pj_status_t pjsua_playlist_create (const pj_str_t file_names[], unsigned file_count, const pj_str_t *label, unsigned options, pjsua_player_id *p_id)
 
pjsua_conf_port_id pjsua_player_get_conf_port (pjsua_player_id id)
 
pj_status_t pjsua_player_get_port (pjsua_player_id id, pjmedia_port **p_port)
 
pj_status_t pjsua_player_get_info (pjsua_player_id id, pjmedia_wav_player_info *info)
 
pj_ssize_t pjsua_player_get_pos (pjsua_player_id id)
 
pj_status_t pjsua_player_set_pos (pjsua_player_id id, pj_uint32_t samples)
 
pj_status_t pjsua_player_destroy (pjsua_player_id id)
 
pj_status_t pjsua_recorder_create (const pj_str_t *filename, unsigned enc_type, void *enc_param, pj_ssize_t max_size, unsigned options, pjsua_recorder_id *p_id)
 
pjsua_conf_port_id pjsua_recorder_get_conf_port (pjsua_recorder_id id)
 
pj_status_t pjsua_recorder_get_port (pjsua_recorder_id id, pjmedia_port **p_port)
 
pj_status_t pjsua_recorder_destroy (pjsua_recorder_id id)
 
pj_status_t pjsua_enum_aud_devs (pjmedia_aud_dev_info info[], unsigned *count)
 
pj_status_t pjsua_enum_snd_devs (pjmedia_snd_dev_info info[], unsigned *count)
 
pj_status_t pjsua_get_snd_dev (int *capture_dev, int *playback_dev)
 
pj_status_t pjsua_set_snd_dev (int capture_dev, int playback_dev)
 
pj_status_t pjsua_get_snd_dev2 (pjsua_snd_dev_param *snd_param)
 
pj_status_t pjsua_set_snd_dev2 (const pjsua_snd_dev_param *snd_param)
 
pj_status_t pjsua_set_null_snd_dev (void)
 
pjmedia_portpjsua_set_no_snd_dev (void)
 
pj_status_t pjsua_set_ec (unsigned tail_ms, unsigned options)
 
pj_status_t pjsua_get_ec_tail (unsigned *p_tail_ms)
 
pj_status_t pjsua_get_ec_stat (pjmedia_echo_stat *p_stat)
 
pj_bool_t pjsua_snd_is_active (void)
 
pj_status_t pjsua_snd_set_setting (pjmedia_aud_dev_cap cap, const void *pval, pj_bool_t keep)
 
pj_status_t pjsua_snd_get_setting (pjmedia_aud_dev_cap cap, void *pval)
 
pj_status_t pjsua_ext_snd_dev_create (pjmedia_snd_port_param *param, pjsua_ext_snd_dev **p_snd)
 
pj_status_t pjsua_ext_snd_dev_destroy (pjsua_ext_snd_dev *snd)
 
pjmedia_snd_portpjsua_ext_snd_dev_get_snd_port (pjsua_ext_snd_dev *snd)
 
pjsua_conf_port_id pjsua_ext_snd_dev_get_conf_port (pjsua_ext_snd_dev *snd)
 
pj_status_t pjsua_enum_codecs (pjsua_codec_info id[], unsigned *count)
 
pj_status_t pjsua_codec_set_priority (const pj_str_t *codec_id, pj_uint8_t priority)
 
pj_status_t pjsua_codec_get_param (const pj_str_t *codec_id, pjmedia_codec_param *param)
 
pj_status_t pjsua_codec_set_param (const pj_str_t *codec_id, const pjmedia_codec_param *param)
 
unsigned pjsua_vid_dev_count (void)
 
pj_status_t pjsua_vid_dev_get_info (pjmedia_vid_dev_index id, pjmedia_vid_dev_info *vdi)
 
pj_bool_t pjsua_vid_dev_is_active (pjmedia_vid_dev_index id)
 
pj_status_t pjsua_vid_dev_set_setting (pjmedia_vid_dev_index id, pjmedia_vid_dev_cap cap, const void *pval, pj_bool_t keep)
 
pj_status_t pjsua_vid_dev_get_setting (pjmedia_vid_dev_index id, pjmedia_vid_dev_cap cap, void *pval)
 
pj_status_t pjsua_vid_enum_devs (pjmedia_vid_dev_info info[], unsigned *count)
 
void pjsua_vid_preview_param_default (pjsua_vid_preview_param *p)
 
pj_bool_t pjsua_vid_preview_has_native (pjmedia_vid_dev_index id)
 
pj_status_t pjsua_vid_preview_start (pjmedia_vid_dev_index id, const pjsua_vid_preview_param *p)
 
pjsua_vid_win_id pjsua_vid_preview_get_win (pjmedia_vid_dev_index id)
 
pjsua_conf_port_id pjsua_vid_preview_get_vid_conf_port (pjmedia_vid_dev_index id)
 
pj_status_t pjsua_vid_preview_stop (pjmedia_vid_dev_index id)
 
pj_status_t pjsua_vid_enum_wins (pjsua_vid_win_id wids[], unsigned *count)
 
pj_status_t pjsua_vid_win_get_info (pjsua_vid_win_id wid, pjsua_vid_win_info *wi)
 
pj_status_t pjsua_vid_win_set_show (pjsua_vid_win_id wid, pj_bool_t show)
 
pj_status_t pjsua_vid_win_set_pos (pjsua_vid_win_id wid, const pjmedia_coord *pos)
 
pj_status_t pjsua_vid_win_set_size (pjsua_vid_win_id wid, const pjmedia_rect_size *size)
 
pj_status_t pjsua_vid_win_set_win (pjsua_vid_win_id wid, const pjmedia_vid_dev_hwnd *win)
 
pj_status_t pjsua_vid_win_rotate (pjsua_vid_win_id wid, int angle)
 
pj_status_t pjsua_vid_win_set_fullscreen (pjsua_vid_win_id wid, pjmedia_vid_dev_fullscreen_flag mode)
 
pj_status_t pjsua_vid_enum_codecs (pjsua_codec_info id[], unsigned *count)
 
pj_status_t pjsua_vid_codec_set_priority (const pj_str_t *codec_id, pj_uint8_t priority)
 
pj_status_t pjsua_vid_codec_get_param (const pj_str_t *codec_id, pjmedia_vid_codec_param *param)
 
pj_status_t pjsua_vid_codec_set_param (const pj_str_t *codec_id, const pjmedia_vid_codec_param *param)
 
unsigned pjsua_vid_conf_get_active_ports (void)
 
pj_status_t pjsua_vid_conf_enum_ports (pjsua_conf_port_id id[], unsigned *count)
 
pj_status_t pjsua_vid_conf_get_port_info (pjsua_conf_port_id port_id, pjsua_vid_conf_port_info *info)
 
pj_status_t pjsua_vid_conf_add_port (pj_pool_t *pool, pjmedia_port *port, const void *param, pjsua_conf_port_id *p_id)
 
pj_status_t pjsua_vid_conf_remove_port (pjsua_conf_port_id port_id)
 
pj_status_t pjsua_vid_conf_connect (pjsua_conf_port_id source, pjsua_conf_port_id sink, const void *param)
 
pj_status_t pjsua_vid_conf_disconnect (pjsua_conf_port_id source, pjsua_conf_port_id sink)
 
pj_status_t pjsua_vid_conf_update_port (pjsua_conf_port_id port_id)
 

Variables

const pjsip_method pjsip_message_method
 
const pjsip_method pjsip_info_method
 

 


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