You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在Mac OS X 10.13 High Sierra安装Asterisk?高版本MacOS装Asterisk15+g729咨询

Hey there, let's break down your two Asterisk installation questions for macOS systems:

1. Installing Asterisk on Mac OS X 10.13 High Sierra

Getting Asterisk up and running on High Sierra is totally manageable with a few straightforward steps—here's what you need to do:

  • Install Xcode Command Line Tools: First, grab the essential build tools. Open Terminal and run:
    xcode-select --install
    Follow the on-screen prompts to agree to the license and finish the installation.
  • Set up Homebrew (if you haven't already): Homebrew simplifies dependency management a lot. Install it with:
    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Install required dependencies: Fetch all the libraries Asterisk needs to compile and run smoothly:
    brew install wget openssl ncurses libjpeg speex speexdsp sqlite3 libedit libxml2
  • Download and unpack Asterisk source: Pick a stable version (Asterisk 13 or 15 works well with High Sierra). For example:
    wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz
    tar zxvf asterisk-13-current.tar.gz
    cd asterisk-13-*
  • Configure the build: High Sierra's default OpenSSL is outdated, so point the script to Homebrew's version:
    ./configure --with-openssl=/usr/local/opt/openssl
  • Customize modules with menuselect: Run this tool to pick the features and codecs you want:
    make menuselect
    Use arrow keys to navigate, select the modules you need, then save and exit.
  • Compile and install:
    make (this might take 10-15 minutes depending on your machine)
    sudo make install
    sudo make config (sets up startup scripts if you want Asterisk to run on boot)
  • Verify the installation: Check if Asterisk installed correctly with:
    asterisk -V
    You'll see the version number printed if everything worked.
2. Installing Asterisk 15 with G.729 on Latest macOS

Awesome to hear you had success with Asterisk 13 + bcg729 on 10.10! For the latest macOS (like Sonoma or Ventura), you can still get G.729 support using the open-source bcg729 library (commercial G.729 licenses are tricky to set up on macOS). Here's how:

  • Update Homebrew: Start by making sure your package manager is up to date:
    brew update
  • Install dependencies (including bcg729): Grab standard Asterisk dependencies plus the bcg729 codec library:
    brew install wget openssl ncurses libjpeg speex speexdsp sqlite3 libedit libxml2 bcg729
  • Download Asterisk 15 source:
    wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-15-current.tar.gz
    tar zxvf asterisk-15-current.tar.gz
    cd asterisk-15-*
  • Configure with bcg729 support: Tell the build system where to find the bcg729 library:
    ./configure --with-openssl=/usr/local/opt/openssl --with-bcg729=$(brew --prefix bcg729)
    Using brew --prefix bcg729 ensures you're pointing to the correct path, even if Homebrew installs it in a non-standard location.
  • Enable the bcg729 codec in menuselect: Run:
    make menuselect
    Navigate to the Codec Translators section, check codec_bcg729 (this adds G.729 support), then save and exit.
  • Compile and install:
    make
    sudo make install
    sudo make config
  • Check G.729 support: Start Asterisk in verbose mode:
    sudo asterisk -vvvc
    Inside the Asterisk console, run:
    core show codecs
    Look for G.729-related entries—if they show up, you're all set!

A quick heads-up: On newer macOS versions, you might get security prompts about Terminal accessing system files. Just grant the necessary permissions when asked to avoid build errors.

内容的提问来源于stack exchange,提问作者simon

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.27 04:06:36