Asterisk 1.8 package
-
libpri might be the last thing needed on an embedded system. The feature will probably be rarely used if at all.
-
Marcelloc, Thanks for the hard work at creating the Asterisk package for us. Having a go at adding the Asterisk package via the 'Package' option through the GUI on a fresh x86 PF2.01 install. It seemed to install fine with no errors but under 'services' it shows Asterisk to be stopped and despite many attempts it won't start via the PF Web interface. Hardware and software SIP clients unable to connnect seem to support the fact it's not running. Is this symptom common? Is there a way to try starting Asterisk from a shell connection or a process to reveal a bit more detail on why it's not starting? I haven't rebooted the box since installing the Asterisk…do I need to or should I restart the web configurator? This is my first foray into Asterisk since my failed attempt at trying to rig up Freeswitch/FusionPBX with PF2.01 and the service won't start symptom may just be my own ignorance on how Asterisk operates.
Thanks -
try to start asterisk on console, maybe you need to unselect some modules.
-
What would be the command to start the Asterisk daemon from a shell…wasn't quite certain and "/etc/init.d/asterisk start" returned a command not found.
-
/usr/local/etc/rc.d/asterisk
-
Commenting out some of the modules did it, the daemon started and looks like it's running via the GUI now. Wonder if it was because the default extensions.conf and sip.conf contained references to demo interfaces that I didn't have? There's no telephony cards on the board…yet. SIP phones still aren't showing up but I can have a go at those now that I know the daemon is running. Thanks again Marcelloc.
-
I downgraded to 2.0.1 just to install this! :)
Is there any tutorial on how to initially set it up? (I am coming from Windows and Axon PBX)
..or asterisk-gui? Trying that out first.
EDIT:
I fetched http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/i386/packages-8.1-release/All/asterisk-gui-2.0.4_4.tbz
Tried to add it but I get:
pkg_add: could not find package openldap-client-2.4.23 !
pkg_add: could not find package perl-5.10.1_1 !
pkg_add: could not find package libltdl-2.2.6b !
pkg_add: could not find package wget-1.12_1 !
pkg_add: could not find package libgcrypt-1.4.5_1 !
pkg_add: could not find package postgresql-client-8.2.17_1 !EDIT 2:
fetched the missing packages then pkg_add asterisk-gui-2.0.4_4.tbz it said it installed in /usr/local and gave me a url to go to but not working.
-
Asterisk gui need some file changes to work and I did not had time to finish it.
This current version can be configured only on console/files.
-
I changed manager.conf and http.conf:
manager.conf:
enabled=yes
webenabled=yes
[admin]
secret = password
read = all
write = allhttp.conf:
enabled=yes
enablestatic=yesAnd got it to load and login, but I get an alert:
The GUI does not have necessary privileges.
Please check the manager permissions for the user !Thanks for your time!!!
-
these are few steps I did to get asterisk-gui working.
I'm not sure if it is all remain steps.mkdir /var/lib mkdir /etc/dahdi/ ln -s /usr/local/etc/asterisk /etc/asterisk ln -s /usr/local/share/asterisk /var/lib/asterisk /var/lib/asterisk/gui_backups /var/lib/asterisk/sounds/imageupdate chown -R asterisk /var/lib/asterisk chown -R asterisk /usr/local/etc/asterisk chown -R asterisk /etc/dahdi /var/lib/asterisk/static_html/config /var/lib/asterisk/scripts /usr/local/etc/rc.d/asterisk/restart asterisk -rx "core set debug 10" asterisk -rx "core set verbose 10"
-
Cool, will try that. That's how you got it to load up, but you weren't able to get it to write/update the .conf files, correct?
EDIT:
Ok, got it to show up, had to edit index.js to include asterisk/1.8 but it won't save any settings :-/
-
Hello,
what a great package!
But…
I'm on nanobsd platform and something seems incorrect :
the file /usr/local/etc/asterisk/asterisk.conf contain the line "astdbdir => /tmp" ==> this is ok
But on the gui when i go to status=>asterisk, i see this :* Directories ------------- Configuration file: Configuration directory: /usr/local/etc/asterisk Module directory: /usr/local/lib/asterisk/modules Spool directory: /var/spool/asterisk Log directory: /var/log/asterisk Run/Sockets directory: /var/run/asterisk PID file: /var/run/asterisk/asterisk.pid VarLib directory: /usr/local/share/asterisk Data directory: /usr/local/share/asterisk ASTDB: /var/db/asterisk/astdb IAX2 Keys directory: /usr/local/share/asterisk/keys AGI Scripts directory: /usr/local/share/asterisk/agi-bin
astdb is /var/db/asterisk/astdb ==> it's bad!
It seems that the file /usr/local/etc/asterisk/asterisk.conf is not the one used when asterisk is started.
And when i look at /usr/local/etc/rc.d/asterisk , i don't see anything that say to use this .conf file (like a -C switch ==> -C /usr/local/etc/asterisk/asterisk.conf in a command_args variable for example)
Do i have missed something?
Because i have a lot of "Unable to open Asterisk database '/var/db/asterisk/astdb': No such file or directory" in my log…It would also be nice to have the "module show" command or even better the possibility to type commands (like with the fivn asterisk management "command" menu)
Thank you -
try to start asterisk on foreground to check what is not loading or missing.
-
thanks,
stop an restart the service solve the problem (without change to config files)…
I will try to see why it was wrong and if the problem reappears... -
When I restarted my pfSense the gui was no longer available and I am also getting the db warning…
I guess I had created the /var/db/asterisk folders when fiddling with it.. I tried restarting asterisk from pfSense and I still get them. I even modified the asterisk.conf file (which was pointing to /tmp also) but nothing... :O
[Jul 7 10:16:14] WARNING[24915] db.c: Unable to open Asterisk database '/var/db/asterisk/astdb': No such file or directory
-
well now i'm getting this message after every call i make (the call work but the history of calls is not updated/empty) :
[Jul 7 18:18:57] ERROR[36008] cdr_csv.c: Unable to re-open master file /var/log/asterisk//cdr-csv//Master.csv : No such file or directoryStrange (double // in the path of the file) … something seems corrupted (EDIT: after a search double // seems correct...).
Where can i get the list of file created by this package (on startup and/or package installation?)EDIT :could it be that the "Log directory: /var/log/asterisk" is incorrect for a nanobsd installation ?
After creating by hand "/var/log/asterisk/cdr-csv" directory, the message has gone, do these directories get created on asterisk startup or only once on package installation ?i think it's time to re-read all the topics related to asterisk in pfsense in the forum...
-
When I restarted my pfSense the gui was no longer available and I am also getting the db warning…
Unable to re-open master file /var/log/asterisk//cdr-csv//Master.csv : No such file or directorycheck on asterisk.inc if it's checking/creating the /var/db folder
EDIT :could it be that the "Log directory: /var/log/asterisk" is incorrect for a nanobsd installation ?
IIRC, /var is flushed every reboot, so it need to be recreated during package sync/startup
-
IIRC, /var is flushed every reboot, so it need to me recreated during package sync/startup
So, if i understand good, i just need to edit asterisk.inc and add some code to create the directories (like "mkdir -p /var/log/asterisk/cdr-csv" in the sync_package_asterisk() function) ?
thank you -
IIRC, /var is flushed every reboot, so it need to me recreated during package sync/startup
Is that supposed to be a good thing?
-
there is a type on that post,
So it needs to be recreated during package sync/startup/boot as it's a memory file system on nanobsd.