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

  • How high can a Xeon CPU get?
  • bash fix PATH environment variable "command not found" solution
  • Ubuntu Linux Mint Debian Redhat Youtube Cannot Play HD or 4K videos, dropped frames or high CPU usage with Nvidia or AMD Driver
  • hostapd example configuration for high speed AC on 5GHz using WPA2
  • hostapd how to enable and use WPS to connect wireless devices like printers
  • Dell Server Workstation iDRAC Dead after Firmware Update Solution R720, R320, R730
  • Cloned VM/Server/Computer in Linux won't boot and goes to initramfs busybox Solution
  • How To Add Windows 7 8 10 11 to GRUB Boot List Dual Booting
  • How to configure OpenDKIM on Linux with Postfix and setup bind zonefile
  • Debian Ubuntu 10/11/12 Linux how to get tftpd-hpa server setup tutorial
  • efibootmgr: option requires an argument -- 'd' efibootmgr version 15 grub-install.real: error: efibootmgr failed to register the boot entry: Operation not permitted.
  • Apache Error Won't start SSL Cert Issue Solution Unable to configure verify locations for client authentication SSL Library Error: 151441510 error:0906D066:PEM routines:PEM_read_bio:bad end line SSL Library Error: 185090057 error:0B084009:x509 certif
  • Linux Debian Mint Ubuntu Bridge br0 gets random IP
  • redis requirements
  • How to kill a docker swarm
  • docker swarm silly issues
  • isc-dhcp-server dhcpd how to get longer lease
  • nvidia cannot resume from sleep Comm: nvidia-sleep.sh Tainted: Linux Ubuntu Mint Debian
  • zfs and LUKS how to recover in Linux
  • [error] (28)No space left on device: Cannot create SSLMutex Apache Solution Linux CentOS Ubuntu Debian Mint