Transcode from ulaw to opus

Hi, I moved my asterisk server from debian to ubuntu. and now i cant dail to my home assistant voice agent using sip.

home assistant voip requires opus. but i have ulaw as default for my grandstream phones.

I could fix this with asterisk-opus install with debian.
but with ubuntu im not so lucky.

opus is missing. here

asterisk*CLI> core show translation 
         Translation times between formats (in microseconds) for one second of data
          Source Format (Rows) Destination Format (Columns)

            amr amrwb codec2  ulaw  alaw   gsm  g726 g726aal2 adpcm slin8 slin12 slin16 slin24 slin32 slin44 slin48 slin96 slin192 lpc10 speex8 speex16 speex32  g722 testlaw
      amr     - 23000  15000 15000 15000 15000 15000    15000 15000  9000  17000  17000  17000  17000  17000  17000  17000   17000 15000  15000   23000   23000 17250   15000
    amrwb 23500     -  23500 23500 23500 23500 23500    23500 23500 17500  17500   9000  17000  17000  17000  17000  17000   17000 23500  23500   15000   23000 15000   23500
   codec2 15000 23000      - 15000 15000 15000 15000    15000 15000  9000  17000  17000  17000  17000  17000  17000  17000   17000 15000  15000   23000   23000 17250   15000
     ulaw 15000 23000  15000     -  9150 15000 15000    15000 15000  9000  17000  17000  17000  17000  17000  17000  17000   17000 15000  15000   23000   23000 17250   15000
     alaw 15000 23000  15000  9150     - 15000 15000    15000 15000  9000  17000  17000  17000  17000  17000  17000  17000   17000 15000  15000   23000   23000 17250   15000
      gsm 15000 23000  15000 15000 15000     - 15000    15000 15000  9000  17000  17000  17000  17000  17000  17000  17000   17000 15000  15000   23000   23000 17250   15000
     g726 15000 23000  15000 15000 15000 15000     -    15000 15000  9000  17000  17000  17000  17000  17000  17000  17000   17000 15000  15000   23000   23000 17250   15000
 g726aal2 15000 23000  15000 15000 15000 15000 15000        - 15000  9000  17000  17000  17000  17000  17000  17000  17000   17000 15000  15000   23000   23000 17250   15000
    adpcm 15000 23000  15000 15000 15000 15000 15000    15000     -  9000  17000  17000  17000  17000  17000  17000  17000   17000 15000  15000   23000   23000 17250   15000
    slin8  6000 14000   6000  6000  6000  6000  6000     6000  6000     -   8000   8000   8000   8000   8000   8000   8000    8000  6000   6000   14000   14000  8250    6000
   slin12 14500 14000  14500 14500 14500 14500 14500    14500 14500  8500      -   8000   8000   8000   8000   8000   8000    8000 14500  14500   14000   14000 14000   14500
   slin16 14500  6000  14500 14500 14500 14500 14500    14500 14500  8500   8500      -   8000   8000   8000   8000   8000    8000 14500  14500    6000   14000  6000   14500
   slin24 14500 14500  14500 14500 14500 14500 14500    14500 14500  8500   8500   8500      -   8000   8000   8000   8000    8000 14500  14500   14500   14000 14500   14500
   slin32 14500 14500  14500 14500 14500 14500 14500    14500 14500  8500   8500   8500   8500      -   8000   8000   8000    8000 14500  14500   14500    6000 14500   14500
   slin44 14500 14500  14500 14500 14500 14500 14500    14500 14500  8500   8500   8500   8500   8500      -   8000   8000    8000 14500  14500   14500   14500 14500   14500
   slin48 14500 14500  14500 14500 14500 14500 14500    14500 14500  8500   8500   8500   8500   8500   8500      -   8000    8000 14500  14500   14500   14500 14500   14500
   slin96 14500 14500  14500 14500 14500 14500 14500    14500 14500  8500   8500   8500   8500   8500   8500   8500      -    8000 14500  14500   14500   14500 14500   14500
  slin192 14500 14500  14500 14500 14500 14500 14500    14500 14500  8500   8500   8500   8500   8500   8500   8500   8500       - 14500  14500   14500   14500 14500   14500
    lpc10 15000 23000  15000 15000 15000 15000 15000    15000 15000  9000  17000  17000  17000  17000  17000  17000  17000   17000     -  15000   23000   23000 17250   15000
   speex8 15000 23000  15000 15000 15000 15000 15000    15000 15000  9000  17000  17000  17000  17000  17000  17000  17000   17000 15000      -   23000   23000 17250   15000
  speex16 23500 15000  23500 23500 23500 23500 23500    23500 23500 17500  17500   9000  17000  17000  17000  17000  17000   17000 23500  23500       -   23000 15000   23500
  speex32 23500 23500  23500 23500 23500 23500 23500    23500 23500 17500  17500  17500  17500   9000  17000  17000  17000   17000 23500  23500   23500       - 23500   23500
     g722 15600 15000  15600 15600 15600 15600 15600    15600 15600  9600  17500   9000  17000  17000  17000  17000  17000   17000 15600  15600   15000   23000     -   15600
  testlaw 15000 23000  15000 15000 15000 15000 15000    15000 15000  9000  17000  17000  17000  17000  17000  17000  17000   17000 15000  15000   23000   23000 17250       -

I suspect you need to install Ubuntu – Details of package asterisk-opus in focal

Antony.

asterisk-modules replaces asterisk-opus

root@asterisk:/# apt show asterisk-modules
Package: asterisk-modules
Version: 1:18.10.0~dfsg+~cs6.10.40431411-2
Priority: optional
Section: universe/libs
Source: asterisk
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian VoIP Team <pkg-voip-maintainers@lists.alioth.debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 14.0 MB
Depends: libasound2 (>= 1.0.16), libc-client2007e, libc6 (>= 2.34), libcodec2-1.0 (>= 1.0.1), libcurl4 (>= 7.16.2), libglib2.0-0 (>= 2.12.0), libgmime-3.0-0 (>= 3.0.0), libgsm1 (>= 1.0.18), libical3 (>= 3.0.0), libiksemel3 (>= 1.2), libjack-jackd2-0 (>= 1.9.10+20150825) | libjack-0.125, libldap-2.5-0 (>= 2.5.4), liblua5.2-0 (>= 5.2.4), libneon27, libodbc2 (>= 2.3.1), libogg0 (>= 1.1.0), libopencore-amrnb0 (>= 0.1.5), libopencore-amrwb0 (>= 0.1.5), libopusfile0 (>= 0.5), libportaudio2 (>= 19+svn20101113), libpq5, libradcli4 (>= 1.2.11), libresample1 (>= 0.1.3), libsnmp40 (>= 5.9.1+dfsg), libspandsp2 (>= 0.0.6~pre18), libspeex1 (>= 1.2~beta3-1), libspeexdsp1 (>= 1.2~beta3.2-1), libsqlite3-0 (>= 3.5.9), libsrtp2-1 (>= 2.0.0), libssl3 (>= 3.0.0~~alpha1), libsybdb5 (>= 0.63), libunbound8 (>= 1.8.0), libvo-amrwbenc0 (>= 0.1.3), libvorbis0a (>= 1.1.2), libvorbisenc2 (>= 1.1.2), libvorbisfile3 (>= 1.1.2), libxml2 (>= 2.7.4), zlib1g (>= 1:1.1.4)
Breaks: asterisk-opus (<< 13.7+20171009-2+), asterisk-voicemail (<< 1:18), asterisk-voicemail-imapstorage (<< 1:18), asterisk-voicemail-odbcstorage (<< 1:18)
Replaces: asterisk-opus (<< 13.7+20171009-2+), asterisk-voicemail (<< 1:18), asterisk-voicemail-imapstorage (<< 1:18), asterisk-voicemail-odbcstorage (<< 1:18)
Homepage: https://www.asterisk.org/
Download-Size: 3232 kB
APT-Manual-Installed: yes
APT-Sources: http://nl.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
Description: loadable modules for the Asterisk PBX
 Asterisk is an Open Source PBX and telephony toolkit.
 .
 This package includes most of the loadable modules of the Asterisk package.
 There is normally no need to explicitly install it.

codec is missing.

i added using

Sounds like that is worth reporting to the Ubuntu package maintainer.

Antony.

daft@asterisk:~$ apt-file search codec_opus.so

does not show anything.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.