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!
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,