WARNING: The online documentation has moved to https://docs.pjsip.org.

Visit the new documentation at https://docs.pjsip.org:

BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJSIP Reference

pjsua_call_media Struct Reference

#include <pjsua_internal.h>

Data Fields

pjsua_callcall
 
pjmedia_type type
 
unsigned idx
 
pj_str_t rem_mid
 
pjsua_call_media_status state
 
pjsua_call_media_status prev_state
 
pjmedia_dir def_dir
 
pjmedia_dir dir
 
struct {
   struct {
      pjmedia_stream *   stream
 
      pjmedia_port *   media_port
 
      pj_bool_t   destroy_port
 
      int   conf_slot
 
   }   a
 
   struct {
      pjmedia_vid_stream *   stream
 
      pjsua_conf_port_id   strm_enc_slot
 
      pjsua_conf_port_id   strm_dec_slot
 
      pjsua_vid_win_id   cap_win_id
 
      pjsua_vid_win_id   rdr_win_id
 
      pjmedia_vid_dev_index   cap_dev
 
      pjmedia_vid_dev_index   rdr_dev
 
   }   v
 
strm
 
pj_uint32_t ssrc
 
pj_uint32_t rtp_tx_ts
 
pj_uint16_t rtp_tx_seq
 
pj_uint8_t rtp_tx_seq_ts_set
 
pjmedia_type prev_type
 
pjmedia_stream_info prev_aud_si
 
pjmedia_vid_stream_info prev_vid_si
 
pj_bool_t prev_srtp_use
 
pjmedia_srtp_info prev_srtp_info
 
pj_bool_t prev_ice_use
 
pjmedia_ice_transport_info prev_ice_info
 
pjmedia_transporttp
 
pj_status_t tp_ready
 
pj_status_t tp_result
 
pjmedia_transporttp_orig
 
pj_bool_t tp_auto_del
 
pjsua_med_tp_st tp_st
 
pj_bool_t use_custom_med_tp
 
pj_bool_t enable_rtcp_mux
 
pj_sockaddr rtp_addr
 
pjmedia_srtp_use rem_srtp_use
 
pj_timestamp last_req_keyframe
 
pj_bool_t use_upnp
 
pj_sockaddr mapped_addr [2]
 
pjsua_med_tp_state_cb med_init_cb
 
pj_status_t(* med_create_cb )(pjsua_call_media *call_med, pj_status_t status, int security_level, int *sip_err_code)
 

Detailed Description

Call's media stream.

Forward decl of pjsua call media

Field Documentation

◆ call

pjsua_call* pjsua_call_media::call

Parent call.

◆ type

pjmedia_type pjsua_call_media::type

Media type.

◆ idx

unsigned pjsua_call_media::idx

This media index in parent call.

◆ rem_mid

pj_str_t pjsua_call_media::rem_mid

Remote SDP "a=mid" attribute.

◆ state

pjsua_call_media_status pjsua_call_media::state

Media state.

◆ prev_state

pjsua_call_media_status pjsua_call_media::prev_state

Previous media state.

◆ def_dir

pjmedia_dir pjsua_call_media::def_dir

Default media direction.

◆ dir

pjmedia_dir pjsua_call_media::dir

Current media direction.

◆ stream [1/2]

pjmedia_stream* pjsua_call_media::stream

The audio stream.

◆ media_port

pjmedia_port* pjsua_call_media::media_port

The media port.

◆ destroy_port

pj_bool_t pjsua_call_media::destroy_port

Destroy the media port?

◆ conf_slot

int pjsua_call_media::conf_slot

Slot # in conference bridge.

◆ 

struct { ... } pjsua_call_media::a

Audio stream

◆ stream [2/2]

pjmedia_vid_stream* pjsua_call_media::stream

The video stream.

◆ strm_enc_slot

pjsua_conf_port_id pjsua_call_media::strm_enc_slot

Stream encode slot

◆ strm_dec_slot

pjsua_conf_port_id pjsua_call_media::strm_dec_slot

Stream decode slot

◆ cap_win_id

pjsua_vid_win_id pjsua_call_media::cap_win_id

The video capture window

◆ rdr_win_id

pjsua_vid_win_id pjsua_call_media::rdr_win_id

The video render window

◆ cap_dev

pjmedia_vid_dev_index pjsua_call_media::cap_dev

The video capture device

◆ rdr_dev

pjmedia_vid_dev_index pjsua_call_media::rdr_dev

The video-in render device

◆ 

struct { ... } pjsua_call_media::v

Video stream

◆ 

struct { ... } pjsua_call_media::strm

The stream

◆ ssrc

pj_uint32_t pjsua_call_media::ssrc

RTP SSRC

◆ rtp_tx_ts

pj_uint32_t pjsua_call_media::rtp_tx_ts

Initial RTP timestamp for sender.

◆ rtp_tx_seq

pj_uint16_t pjsua_call_media::rtp_tx_seq

Initial RTP sequence for sender.

◆ rtp_tx_seq_ts_set

pj_uint8_t pjsua_call_media::rtp_tx_seq_ts_set

Bitmask flags if initial RTP sequence and/or timestamp for sender are set. bit 0/LSB : sequence flag bit 1 : timestamp flag

◆ prev_type

pjmedia_type pjsua_call_media::prev_type

Previous media type

◆ prev_aud_si

pjmedia_stream_info pjsua_call_media::prev_aud_si

Prev audio stream info

◆ prev_vid_si

pjmedia_vid_stream_info pjsua_call_media::prev_vid_si

Prev video stream info

◆ prev_srtp_use

pj_bool_t pjsua_call_media::prev_srtp_use

Prev SRTP use

◆ prev_srtp_info

pjmedia_srtp_info pjsua_call_media::prev_srtp_info

Prev SRTP transport info

◆ prev_ice_use

pj_bool_t pjsua_call_media::prev_ice_use

Prev ICE use

◆ prev_ice_info

pjmedia_ice_transport_info pjsua_call_media::prev_ice_info

Prev ICE transport info

◆ tp

pjmedia_transport* pjsua_call_media::tp

Current media transport (can be 0)

◆ tp_ready

pj_status_t pjsua_call_media::tp_ready

Media transport status.

◆ tp_result

pj_status_t pjsua_call_media::tp_result

Media transport creation result.

◆ tp_orig

pjmedia_transport* pjsua_call_media::tp_orig

Original media transport

◆ tp_auto_del

pj_bool_t pjsua_call_media::tp_auto_del

May delete media transport

◆ tp_st

pjsua_med_tp_st pjsua_call_media::tp_st

Media transport state

◆ use_custom_med_tp

pj_bool_t pjsua_call_media::use_custom_med_tp

Use custom media transport?

◆ enable_rtcp_mux

pj_bool_t pjsua_call_media::enable_rtcp_mux

Enable RTP& RTCP multiplexing?

◆ rtp_addr

pj_sockaddr pjsua_call_media::rtp_addr

Current RTP source address (used to update ICE default address)

◆ rem_srtp_use

pjmedia_srtp_use pjsua_call_media::rem_srtp_use

Remote's SRTP usage policy.

◆ last_req_keyframe

pj_timestamp pjsua_call_media::last_req_keyframe

Last TX keyframe request.

◆ use_upnp

pj_bool_t pjsua_call_media::use_upnp

Use UPnP?

◆ med_init_cb

pjsua_med_tp_state_cb pjsua_call_media::med_init_cb

Media transport initialization callback.

◆ med_create_cb

pj_status_t(* pjsua_call_media::med_create_cb) (pjsua_call_media *call_med, pj_status_t status, int security_level, int *sip_err_code)

Media transport creation callback.


The documentation for this struct was generated from the following file:
  • pjsua_internal.h

 


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