Asterisk 1.8 package
-
Marcelloc, you are a one man package factory! ;D
Great job. My thanks anyone else who contributed to making this happen.
Steve
-
Marcelloc, you are a one man package factory! ;D
Thanks stephenw :)
The status gui credits goes to robi
-
robi ;D
Just tried the package install on a vanilla nanobsd box, unfortunately the GUI didn't appear in the dropdown menu. Also tried to access the filenames directly (by /status_asterisk.php for example) - got 404 - Not Found.
It appears though well in Services status. -
I'll try on a clean install to check.
Can you reinstall the package just in case?
I've also renamed the files using asterisk as prefix.
asterisk_cmd.php
asterisk_log.php
asterisk.xml
asterisk.inc
.
.
. -
I reinstalled again on a fresh system. Still not appearing in the menu. :-\
By calling /asterisk_cmd.php directly, it works.
I would suggest to automatically add my tweaks for Asterisk 1.8 if on a nanobsd system - otherwise the log will be full of errors due to the ro system.
[Mar 16 21:37:03] ERROR[60090] cdr_sqlite.c: cdr_sqlite: unable to open database: /var/log/asterisk/cdr.db [Mar 16 21:37:03] ERROR[60090] cdr_sqlite3_custom.c: Could not open database /var/log/asterisk/master.db. [Mar 16 21:37:03] WARNING[60090] cel_pgsql.c: CEL pgsql config file missing global section. [Mar 16 21:37:03] NOTICE[60090] cel_radius.c: Cannot load radiusclient-ng configuration file /etc/radiusclient-ng/radiusclient.conf. [Mar 16 21:37:03] NOTICE[60090] cel_tds.c: cel_tds has no global category, nothing to configure. [Mar 16 21:37:03] WARNING[60090] cel_tds.c: cel_tds module had config problems; declining load [Mar 16 21:37:03] WARNING[60090] db.c: Unable to open Asterisk database '/var/db/asterisk/astdb': No such file or directory [Mar 16 21:37:03] WARNING[60090] db.c: Unable to open Asterisk database '/var/db/asterisk/astdb': No such file or directory [Mar 16 21:37:03] WARNING[60090] db.c: Unable to open Asterisk database '/var/db/asterisk/astdb': No such file or directory [Mar 16 21:37:03] WARNING[60090] db.c: Unable to open Asterisk database '/var/db/asterisk/astdb': No such file or directory [Mar 16 21:37:03] WARNING[60090] db.c: Database unavailable [Mar 16 21:37:03] WARNING[60090] db.c: Unable to open Asterisk database '/var/db/asterisk/astdb': No such file or directory [Mar 16 21:37:03] WARNING[60090] db.c: Database unavailable [Mar 16 21:37:03] WARNING[60090] chan_unistim.c: Your OS does not support IP_PKTINFO, you must set public_ip. [Mar 16 21:37:03] ERROR[60090] res_clialiases.c: res_clialiases configuration file 'cli_aliases.conf' not found [Mar 16 21:37:03] NOTICE[60090] pbx_ael.c: Starting AEL load process. [Mar 16 21:37:03] NOTICE[60090] pbx_ael.c: AEL load process: parsed config file name '/usr/local/etc/asterisk/extensions.ael'. [Mar 16 21:37:03] NOTICE[60090] pbx_ael.c: AEL load process: checked config file name '/usr/local/etc/asterisk/extensions.ael'. [Mar 16 21:37:03] NOTICE[60090] pbx_ael.c: AEL load process: compiled config file name '/usr/local/etc/asterisk/extensions.ael'. [Mar 16 21:37:03] NOTICE[60090] pbx_ael.c: AEL load process: merged config file name '/usr/local/etc/asterisk/extensions.ael'. [Mar 16 21:37:03] NOTICE[60090] pbx_ael.c: AEL load process: verified config file name '/usr/local/etc/asterisk/extensions.ael'. [Mar 16 21:37:03] WARNING[60090] pbx_spool.c: Unable to create queue directory /var/spool/asterisk/outgoing -- outgoing spool disabled [Mar 16 21:37:03] WARNING[60090] db.c: Unable to open Asterisk database '/var/db/asterisk/astdb': No such file or directory [Mar 16 21:37:03] WARNING[60090] db.c: Database unavailable [Mar 16 21:37:03] NOTICE[60090] loader.c: Executing deferred reload request. [Mar 16 21:37:03] ERROR[60090] logger.c: Unable to create queue log: No such file or directory [Mar 16 21:37:03] ERROR[60090] logger.c: Unable to create queue log: No such file or directory [Mar 16 21:37:03] ERROR[60090] res_clialiases.c: res_clialiases configuration file 'cli_aliases.conf' not found [Mar 16 21:37:03] NOTICE[60090] res_config_ldap.c: No directory user found, anonymous binding as default. [Mar 16 21:37:03] ERROR[60090] res_config_ldap.c: No directory URL or host found. [Mar 16 21:37:03] NOTICE[60090] res_config_ldap.c: Cannot reload LDAP RealTime driver. [Mar 16 21:37:03] NOTICE[60090] app_queue.c: queuerules.conf has not changed since it was last loaded. Not taking any action. [Mar 16 21:37:03] NOTICE[60090] chan_skinny.c: Configuring skinny from skinny.conf [Mar 16 21:37:03] NOTICE[60090] pbx_ael.c: Starting AEL load process. [Mar 16 21:37:03] NOTICE[60090] pbx_ael.c: AEL load process: parsed config file name '/usr/local/etc/asterisk/extensions.ael'. [Mar 16 21:37:03] NOTICE[60090] pbx_ael.c: AEL load process: checked config file name '/usr/local/etc/asterisk/extensions.ael'. [Mar 16 21:37:03] NOTICE[60090] pbx_ael.c: AEL load process: compiled config file name '/usr/local/etc/asterisk/extensions.ael'. [Mar 16 21:37:03] NOTICE[60090] pbx_ael.c: AEL load process: merged config file name '/usr/local/etc/asterisk/extensions.ael'. [Mar 16 21:37:03] NOTICE[60090] pbx_ael.c: AEL load process: verified config file name '/usr/local/etc/asterisk/extensions.ael'. [Mar 16 21:37:03] WARNING[60090] db.c: Unable to open Asterisk database '/var/db/asterisk/astdb': No such file or directory [Mar 16 21:37:03] WARNING[60090] db.c: Unable to open Asterisk database '/var/db/asterisk/astdb': No such file or directory [Mar 16 21:37:03] WARNING[60090] db.c: Unable to open Asterisk database '/var/db/asterisk/astdb': No such file or directory [Mar 16 21:38:03] WARNING[60090] db.c: Unable to open Asterisk database '/var/db/asterisk/astdb': No such file or directory [Mar 16 21:38:03] WARNING[60090] db.c: Database unavailable [Mar 16 21:39:03] WARNING[60090] db.c: Unable to open Asterisk database '/var/db/asterisk/astdb': No such file or directory [Mar 16 21:39:03] WARNING[60090] db.c: Database unavailable [Mar 16 21:40:03] WARNING[60090] db.c: Unable to open Asterisk database '/var/db/asterisk/astdb': No such file or directory [Mar 16 21:40:03] WARNING[60090] db.c: Database unavailable [Mar 16 21:41:03] WARNING[60090] db.c: Unable to open Asterisk database '/var/db/asterisk/astdb': No such file or directory [Mar 16 21:41:03] WARNING[60090] db.c: Database unavailable
I explicitly mean the [directories] section in asterisk.conf and modules in modules.conf. And ofcourse the symlink needed for Master.csv - the call log.
Adding these will create an absolutely error-free installation on nanobsd. -
oops, in directories section of asterisk.conf I see this:
astdbdir => /tmptmptmptmpvar/db/asterisk
and the directories required are not created in the filesystem (/var/log/asterisk/), nor the symlink, just checked.
-
Hi robi,
I've pushed menu fix and fixed preg_match for conf files
whait 15 minutes and reinstall package
https://github.com/bsdperimeter/pfsense-packages/commit/5e1c10abcc307efd9188959f867f509eb27b1107
Create an account at github so you can push patches to it too.
att,
Marcello Coutinho -
marcelloc congratulations, by the contribution
thanks for this great work
marcelloc I'm glad that we have people like you
a hug and greeting friend
Mauricio
-
Create an account at github so you can push patches to it too.
I'd love to. Is there a tutorial somewhere about this, as I'm not familiar about it at all.
-
I'd love to. Is there a tutorial somewhere about this, as I'm not familiar about it at all.
try this micro how to for pfsense's github repo
http://forum.pfsense.org/index.php/topic,44686.msg232239.html#msg232239
-
Hi Marcello,
just for curiosity, how does this package work in a CARP environment? Ok I can point the LAN shared IP from the VOIP phones in the company (so only the Master box receives connections from the phone), but do both boxes try to registrate to the VOIP provider (the box currently working as Master and the one working as Slave)?Thanks,
Michele -
That's a good point.
In an outbound scenario it may work with carp as clients will reauth with asterisk.
For inbound calls, you can test configuring asterisk to listening on carp ips and see if backup asterisk will not crash.
-
That's a good point.
In an outbound scenario it may work with carp as clients will reauth with asterisk.
For inbound calls, you can test configuring asterisk to listening on carp ips and see if backup asterisk will not crash.well, I am also worry about Asterisk try to register to the VOIP provider, then the VOIP provider will try to contact both boxes for an incoming call… I don't know if I can test that in the real environment, I will coordinate with my colleague that follows the telephony services in my company and try to imagine how we can manage a try. Now we use Freeswitch on a server in our DMZ network...
-
In theory backup box will not be able to register as it will not have the configured ip on it.
-
I'd love to. Is there a tutorial somewhere about this, as I'm not familiar about it at all.
try this micro how to for pfsense's github repo
http://forum.pfsense.org/index.php/topic,44686.msg232239.html#msg232239
I made changes, comitted, named "Updated asterisk package to remove errors in the log, cosmetic GUI fixes". The question is, when will they appear when reinstalling the package?
-
Did you did a pull request for this?
there is no alerts on https://github.com/bsdperimeter/pfsense-packages notifications
-
Sorry please try now.
-
I made two more fixes, comitted etc. and when trying to send a new pull request it says "Oops! There's already a pull request for nagyrobi:master" ??? ??? ???
-
You need to wait the commit or cancel your current pull request and push another
-
In this case please pull the first one in, I'll do some tests, and afterwards I'll push next ones if needed following.