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

  • 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 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
  • How to Install Any OS on a Physical Drive from Windows Using VMware Workstation (Linux, Windows, BSD)
  • CDN Cloudflare how to set and preserve the real IP of the client without modifying application code on Apache
  • CentOS 7 fix Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=container error was 14: curl#6 -
  • Ubuntu Debian How To Install Recommended Packages Automatically
  • How to set Linux Ubuntu Redhat Debian Command Line http https socks proxy for yum apt