Skip to content
Myng edited this page Aug 25, 2021 · 5 revisions

The Media class define the behaviors of interconnection for media stream and related signalling, include:

  • Media Codecs
  • Codec Negotiation Method
  • Media Mode
  • DTMF (Dual-tone multi-frequency signaling)
  • and others like: comfort noise or voice active detect, etc.

Setting

Parameter Category Description
name string required The name class
desc string description for class
codecs enum list required The ordered list of codecs for media offer.
PCMA PCMU OPUS G729 AMR AMR-WB
codec_negotiation enum codec negotiation mode
generous: refer remote,
greedy: refer local,
scrooge: enforce local
media_mode enum media processing mode.
transcode: media will be process and transcoding if need.
proxy: media go through but not touch.
bypass: direct between endpoint, libresbc not involve to.
dtmf_mode enum Dual-tone multi-frequency mode.
rfc2833 info none
cng bool comfort noise generate
vad bool voice active detection, no transmit data when no party speaking