asterisk doesn't support .ogg file format (digged through apps/app_playback.c, main/file.c)

dev*CLI> core show file formats
Format     Name       Extensions
------     ----       ----------
slin       mp3        mp3
slin48     ogg_opus   opus


so with

/var/lib/asterisk/sounds/output-ogg.opus it find the file


dev*CLI> core  show  channel PJSIP/endpoint33-0000000e

  NativeFormats: (alaw)
    WriteFormat: slin48
     ReadFormat: alaw
 WriteTranscode: Yes (slin@48000)->(slin@8000)->(alaw@8000)


Dne 22/12/2021 v 15:14 Doug Lytle napsal(a):
exten => _[*+#0-9].,n,Playback(/var/lib/asterisk/sounds/output-ogg)
If the actual filename is output.ogg then the code should be

exten => _[*+#0-9].,n,Playback(/var/lib/asterisk/sounds/output)

You'll also need to confirm that you compiled Asterisk with Vorbis support.

Doug


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
     https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to