Skip to content

Using Baresip: Codec G722 G726

Roger Sandholm edited this page Jul 20, 2020 · 2 revisions

G722 / G726

G722 Audio Codec

Build Module:

Build and Install the required packages:

Debian

$ apt-get install libspandsp-dev

CentOS

$ yum install libspandsp-devel

Mac using HomeBrew

$ brew install spandsp

Build Baresip

Module G722 will be compiled by default when spandsplib is available

$ make
  CC [M]  build-arm6/modules/g722/g722.o
  LD [M]  g722.so
  CC [M]  build-arm6/modules/g726/g726.o
  LD [M]  g726.so
  CC [M]  build-arm6/modules/plc/plc.o
  LD [M]  plc.so

$ make install

Enable Module

The G722 module is enabled by default in ˜/.baresip/config

module    g722.so

Usage

Codec will be automatically used. Order the codecs according to your desired SDP priority preferences in ˜/.baresip/config

Clone this wiki locally