Asterisk FreeBSD compile problems

Asterisk FreeBSD compile problems

I couldn't get it to compile without using the following options at compile time:
[b:b7d672ee28]
make install WITHOUT_ZAPTEL=YES WITHOUT_MYSQL=YES WITHOUT_FAX=YES WITHOUT_ODBC=YES WITHOUT_H323=YES[/b:b7d672ee28]


Some problems you might have with copying over your Linux config files to FreeBSD is different paths.

[b:f044931f41]For example the etc path for Asterisk on BSD will now be:[/b:f044931f41]
[quote:f044931f41]
/usr/local/etc/asterisk[/quote:f044931f41]

[b:f044931f41]The /var/lib path from Linux on BSD is now:[/b:f044931f41]
[quote:f044931f41]
/usr/local/share/asterisk/sounds
/usr/local/share/asterisk/mohmp3[/quote:f044931f41]

I copied over my old config files and I am getting errors. I am not sure why or if there is a file on the etc/asterisk path that specifies where to look for other config files but it is not looking for modules in the correct path.

[b:f044931f41]Speaking of that in FreeBSD the modules are located in:[/b:f044931f41]

[quote:f044931f41]/usr/local/lib/asterisk/modules/[/quote:f044931f41]


Anyway back to the problem.

Now when I start asterisk here is what happens:

Keep in mind all of the files it wants do exist but the difference is that Asterisk is looking in the Linux paths and not FreeBSD, which could be because of a Linux config file I copied.

[quote:3b1fda45d4]Asterisk Dynamic Loader Starting:
== Parsing '/etc/asterisk/modules.conf': Not found (No such file or directory)
Unable to open modules directory /usr/lib/asterisk/modules.
Unable to open modules directory /usr/lib/asterisk/modules.
Unable to open Asterisk database
== Parsing '/etc/asterisk/enum.conf': Not found (No such file or directory)
== Parsing '/etc/asterisk/extconfig.conf': Not found (No such file or directory)
== Parsing '/etc/asterisk/logger.conf': Not found (No such file or directory)
Asterisk Event Logger restarted
== Parsing '/etc/asterisk/manager.conf': Not found (No such file or directory)
Unable to open management configuration manager.conf. Call management disabled.
== Parsing '/etc/asterisk/enum.conf': Not found (No such file or directory)
== Parsing '/etc/asterisk/rtp.conf': Not found (No such file or directory)
== RTP Allocating from port range 5000 -> 31000
Asterisk Ready.[/quote:3b1fda45d4]


[b:3b1fda45d4]Solution:[/b:3b1fda45d4]
The path references are contained in /usr/local/etc/asterisk/asterisk.conf
Simply copy over the FreeBSD supplied asterisk.conf-dist and you should be good to go!



Tags:

asterisk, freebsd, compile, problemsasterisk, problemsi, couldn, ee, install, without_zaptel, without_mysql, without_fax, without_odbc, without_h, copying, linux, config, paths, etc, bsd, usr, var, lib, mohmp, copied, errors, specifies, modules, located, fda, dynamic, loader, parsing, conf, directory, unable, database, enum, extconfig, logger, restarted, configuration, disabled, rtp, allocating, references, contained, supplied, dist,

Latest Articles

  • FreePBX 17 How To Add a Trunk
  • Docker Container Onboot Policy - How to make sure a container is always running
  • FreePBX 17 How To Add Phones / Extensions and Register
  • Warning: The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes. solution
  • Cisco How To Use a Third Party SIP Phone (eg. Avaya, 3CX)
  • Cisco Unified Communication Manager (CUCM) - How To Add Phones
  • pptp / pptpd not working in DD-WRT iptables / router
  • systemd-journald high memory usage solution
  • How to Install FreePBX 17 in Linux Debian Ubuntu Mint Guide
  • How To Install Cisco's CUCM (Cisco Unified Communication Manager) 12 Guide
  • Linux Ubuntu Redhat How To Extract Images from PDF
  • Linux and Windows Dual Boot Issue NIC Won't work After Booting Windows
  • Cisco CME How To Enable ACD hunt groups
  • How to install gns3 on Linux Ubuntu Mint
  • How to convert audio for Asterisk .wav format
  • Using Cisco CME Router with Asterisk as a dial-peer
  • Cisco CME How To Configure SIP Trunk VOIP
  • Virtualbox host Only Network Error Failed to save host network interface parameter - Cannot change gateway IP of host only network
  • Cisco CME and C7200 Router Testing and Learning Environment on Ubuntu 20+ Setup Tutorial Guide
  • Abusive IP ranges blacklist