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 --> PJMEDIA Reference

g7221_sdp_match.h File Reference

Special SDP format match for AMR-NB and AMR-WB. More...

Functions

pj_status_t pjmedia_codec_g7221_match_sdp (pj_pool_t *pool, pjmedia_sdp_media *offer, unsigned o_fmt_idx, pjmedia_sdp_media *answer, unsigned a_fmt_idx, unsigned option)
 

Detailed Description

Special SDP format match for G722.1.

Function Documentation

◆ pjmedia_codec_g7221_match_sdp()

pj_status_t pjmedia_codec_g7221_match_sdp ( pj_pool_t pool,
pjmedia_sdp_media offer,
unsigned  o_fmt_idx,
pjmedia_sdp_media answer,
unsigned  a_fmt_idx,
unsigned  option 
)

Match G.722.1 format in the SDP media offer and answer. This function will match G.722.1 bitrate setting in the SDP format parameter of offer and answer.

Parameters
poolThe memory pool.
offerThe SDP media offer.
o_fmt_idxIndex of the G.722.1 format in the SDP media offer.
answerThe SDP media answer.
a_fmt_idxIndex of the G.722.1 format in the SDP media answer.
optionThe format matching option, see pjmedia_sdp_neg_fmt_match_flag.
Returns
PJ_SUCCESS when the formats in offer and answer match.

References PJ_END_DECL.

 


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