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 To Upgrade Debian 8,9,10 to Debian 12 Bookworm
  • Linux dhcp dhclient Mint Redhat Ubuntu Debian How To Use Local Domain DNS Server Instead of ISPs
  • Docker dockerd swarm high CPU usage cause solution
  • Docker Minimum Requirements/How Efficient is Docker? How Much Memory Does Dockerd Use?
  • qemu-nbd: Failed to set NBD socket solution qemu-nbd: Disconnect client, due to: Failed to read request: Unexpected end-of-file before all bytes were read
  • apache2 httpd apache server will not start [pid 22449:tid 139972160445760] AH00052: child pid 23248 exit signal Aborted (6) solution Mint Debian Ubuntu Redhat
  • How to use the FTDI USB serial cable to RJ45 adapter to connect to the console on Cisco/Juniper Switch Router Firewall in Linux Ubuntu Debian Redhat
  • How To Setup Python3 in Ubuntu Docker Image for AI Deep Learning
  • How to Configure NVIDIA GPUs with Docker on Ubuntu: A Comprehensive Guide for AI Deep Learning CUDA Solution
  • Linux Ubuntu Mint how to check nameservers when /etc/resolv.conf disabled solution
  • Docker cannot work on other overlayfs filesystems such as ecryptfs won't start overlayfs: filesystem on '/home/docker/overlay2/check-overlayfs-support130645871/upper' not supported as upperdir
  • Linux How To Access Original Contents of Directory Mounted Debian Mint CentOS Redhat Solution
  • ecryptfs how to manually encrypt your existing home directory or other directory
  • How to Reset CIPC Cisco IP Communicator for CME CUCM CallManager
  • Internet Explorer Cannot Download File "Your security settings do not allow for this file to be downloaded." Security Settings Solution
  • Linux How To Upgrade To The Latest Kernel Debian Mint Ubuntu
  • Firefox how to restore and backup saved passwords and history which files/location
  • Linux How To echo as root solution to use tee permission denied solution Ubuntu Debian Mint Redhat CentOS
  • Linux how to keep command line bash process running if you are disconnected or need to logout of SSH remotely
  • Linux swapping too much? How to check the swappiness and stop swapping