Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Asterisk codec g729 installation

    pfSense Packages
    1
    2
    3.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dplat
      last edited by

      Hi,

      I've decided to buy a $10 g729 license & try to install it (Asterisk 1.8.26.1, pfSense 2.1.5 (amd64), Intel x64 processor):
      http://www.digium.com/en/products/software/g729-codec

      My Asterisk "sip.conf" file has "allow=g729"

      I was unable to run "benchg729" as there's no version for FreeBSD but only for Linux… see:
      http://kb.digium.com/articles/Configuration/How-do-I-register-a-G729-license

      I've successfully run the "register" utility for FreeBSD (Linux version doesn't work)…
      Here's the best executable I found:
      http://downloads.digium.com/pub/register/unsupported/FreeBSD-6.1/x86-64/register

      … and my .lic (license) file name "G729-X??.lic" was created successfully in "/var/lib/asterisk/licenses"
      (I've hidden the license end number with "??").

      I tried the best possible codec for me: (Nocona is Intel old Xeon)
      http://downloads.digium.com/pub/telephony/codec_g729/unsupported/asterisk-1.4/FreeBSD-7.0/x86-64/codec_g729a_v33_nocona.tar.gz

      You can navigate to try to find a better codec here:
      http://downloads.digium.com/pub/telephony/codec_g729/

      Even if Asterisk 1.4 & FreeBSD 7.0 are old, it seems to work since if I try to load the codec:

      asterisk -rx "module load codec_g729a.so"

      I get:

      "Unable to load module codec_g729a.so
      Command 'module load codec_g729a.so' failed."
      "loader.c: Module 'codec_g729a.so' does not provide a license key."…

      My log file says :

      [Aug 28 08:53:49] WARNING[85703] loader.c: Module 'codec_g729a.so' does not provide a license key.
      [Aug 28 08:53:49] WARNING[85703] loader.c: Module 'codec_g729a.so' could not be loaded.

      If it wouldn't work, it wouldn't ask for the license key, right?

      The only problem I have is I can't find the right place/directory where to put my license file (.lic) in…

      I found this:
      http://kb.digium.com/articles/Configuration/Copy-protection-activation-failing-for-licenses

      My "asterisk.conf" file said my "astvarlibdir" was set to "/usr/pbi/asterisk-amd64/share/asterisk",
      so I copied my .lic file to "/usr/pbi/asterisk-amd64/share/asterisk/licenses/".

      I even "chmod 644" and "chown asterisk:asterisk"  my .lic file… but my log file still says:
      "loader.c: Module 'codec_g729a.so' does not provide a license key."…

      Any idea where should I put my .lic file to??

      I unsucessfully tried:
      /usr/local/lib/asterisk/modules/G729-??.lic
      /usr/local/lib/asterisk/licenses/G729-??.lic
      /usr/local/lib/asterisk/G729-??.lic
      /usr/pbi/asterisk-amd64/lib/asterisk/licenses/G729-??.lic
      /usr/pbi/asterisk-amd64/share/asterisk/licenses/G729-??.lic
      /usr/pbi/asterisk-amd64/share/asterisk/G729-??.lic
      /var/lib/asterisk/licenses/G729-??.lic
      /var/lib/asterisk/G729-??.lic
      /var/lib/digium/licenses/G729-??.lic
      /var/lib/digium/G729-??.lic

      Digium tech support says: "Unfortunately since it's not a supported system, I'm not sure where the .lic file would go.
      I would assume it would be the same place as on a supported system but I have no way of testing this theory."

      Thanks!

      1 Reply Last reply Reply Quote 0
      • D
        dplat
        last edited by

        Has anyone succeeded in making G729 run on pfSense??

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.