BLOG | DOCUMENTATION | TRAC

Home --> Documentations --> PJMEDIA Reference

sdp_neg.h File Reference

SDP negotiator header file. More...

Typedefs

typedef enum pjmedia_sdp_neg_state pjmedia_sdp_neg_state
 
typedef struct pjmedia_sdp_neg pjmedia_sdp_neg
 
typedef pj_status_t(* pjmedia_sdp_neg_fmt_match_cb) (pj_pool_t *pool, pjmedia_sdp_media *offer, unsigned o_fmt_idx, pjmedia_sdp_media *answer, unsigned a_fmt_idx, unsigned option)
 

Enumerations

enum  pjmedia_sdp_neg_state {
  PJMEDIA_SDP_NEG_STATE_NULL,
  PJMEDIA_SDP_NEG_STATE_LOCAL_OFFER,
  PJMEDIA_SDP_NEG_STATE_REMOTE_OFFER,
  PJMEDIA_SDP_NEG_STATE_WAIT_NEGO,
  PJMEDIA_SDP_NEG_STATE_DONE
}
 
enum  pjmedia_mod_offer_flag { PJMEDIA_SDP_NEG_ALLOW_MEDIA_CHANGE = 1 }
 
enum  pjmedia_sdp_neg_fmt_match_flag { PJMEDIA_SDP_NEG_FMT_MATCH_ALLOW_MODIFY_ANSWER = 1 }
 

Functions

const char * pjmedia_sdp_neg_state_str (pjmedia_sdp_neg_state state)
 
pj_status_t pjmedia_sdp_neg_create_w_local_offer (pj_pool_t *pool, const pjmedia_sdp_session *local, pjmedia_sdp_neg **p_neg)
 
pj_status_t pjmedia_sdp_neg_create_w_remote_offer (pj_pool_t *pool, const pjmedia_sdp_session *initial, const pjmedia_sdp_session *remote, pjmedia_sdp_neg **p_neg)
 
pj_status_t pjmedia_sdp_neg_set_prefer_remote_codec_order (pjmedia_sdp_neg *neg, pj_bool_t prefer_remote)
 
pj_status_t pjmedia_sdp_neg_set_answer_multiple_codecs (pjmedia_sdp_neg *neg, pj_bool_t answer_multiple)
 
pjmedia_sdp_neg_state pjmedia_sdp_neg_get_state (pjmedia_sdp_neg *neg)
 
pj_status_t pjmedia_sdp_neg_get_active_local (pjmedia_sdp_neg *neg, const pjmedia_sdp_session **local)
 
pj_status_t pjmedia_sdp_neg_get_active_remote (pjmedia_sdp_neg *neg, const pjmedia_sdp_session **remote)
 
pj_bool_t pjmedia_sdp_neg_was_answer_remote (pjmedia_sdp_neg *neg)
 
pj_status_t pjmedia_sdp_neg_get_neg_remote (pjmedia_sdp_neg *neg, const pjmedia_sdp_session **remote)
 
pj_status_t pjmedia_sdp_neg_get_neg_local (pjmedia_sdp_neg *neg, const pjmedia_sdp_session **local)
 
pj_status_t pjmedia_sdp_neg_modify_local_offer (pj_pool_t *pool, pjmedia_sdp_neg *neg, const pjmedia_sdp_session *local)
 
pj_status_t pjmedia_sdp_neg_modify_local_offer2 (pj_pool_t *pool, pjmedia_sdp_neg *neg, unsigned flags, const pjmedia_sdp_session *local)
 
pj_status_t pjmedia_sdp_neg_send_local_offer (pj_pool_t *pool, pjmedia_sdp_neg *neg, const pjmedia_sdp_session **offer)
 
pj_status_t pjmedia_sdp_neg_set_remote_answer (pj_pool_t *pool, pjmedia_sdp_neg *neg, const pjmedia_sdp_session *remote)
 
pj_status_t pjmedia_sdp_neg_set_remote_offer (pj_pool_t *pool, pjmedia_sdp_neg *neg, const pjmedia_sdp_session *remote)
 
pj_status_t pjmedia_sdp_neg_set_local_answer (pj_pool_t *pool, pjmedia_sdp_neg *neg, const pjmedia_sdp_session *local)
 
pj_bool_t pjmedia_sdp_neg_has_local_answer (pjmedia_sdp_neg *neg)
 
pj_status_t pjmedia_sdp_neg_cancel_offer (pjmedia_sdp_neg *neg)
 
pj_status_t pjmedia_sdp_neg_negotiate (pj_pool_t *pool, pjmedia_sdp_neg *neg, pj_bool_t allow_asym)
 
pj_status_t pjmedia_sdp_neg_register_fmt_match_cb (const pj_str_t *fmt_name, pjmedia_sdp_neg_fmt_match_cb cb)
 
pj_status_t pjmedia_sdp_neg_fmt_match (pj_pool_t *pool, pjmedia_sdp_media *offer, unsigned o_fmt_idx, pjmedia_sdp_media *answer, unsigned a_fmt_idx, unsigned option)
 

 


PJMEDIA small footprint Open Source media stack
Copyright (C) 2006-2008 Teluu Inc.