Ticket #4566 (closed Feature Requests: fixed)

Opened 3 years ago

Last modified 2 years ago

create and use a bootstrap as a single point of entry for all things FreePBX

Reported by: mbrevda Assigned to:
Priority: minor Milestone: 2.9
Component: FreePBX Framework Version: 2.8-branch
Keywords: Cc:
Confirmation: Unreviewed Distro:
Backend Engine: All Distro Ver:
Backend Ver: SVN Revision (if applicable):

Description (Last modified by mbrevda)

title says it all, general discussion here (please keep general discussions on the wiki page!)

Change History

10/03/10 17:28:39 changed by mbrevda

  • description changed.

10/04/10 00:51:31 changed by mickecarlsson

  • type changed from Bugs to Feature Requests.

10/05/10 15:12:10 changed by mbrevda

(In [10361]) re #4566, branching for bootsratp testing

10/05/10 18:31:39 changed by mbrevda

(In [10367]) re #4566 - add bootsrap; rework web to use it; design isnt final, this is the idea though; Setting are still being pulled from amportal.conf

10/06/10 03:47:59 changed by mbrevda

(In [10370]) re #4566 - new framework functions

11/07/10 07:51:41 changed by mbrevda

(In [10533]) re #4566 - update some module scripts to use bootstrapper

11/08/10 15:59:39 changed by mickecarlsson

(In [10536]) Re #4566 fixed path error for include file in bootstrap branch

11/10/10 00:45:31 changed by mbrevda

(In [10543]) Merged revisions 10370,10375-10384,10400-10401,10412-10413,10416,10442,10449,10528,10530,10537-10539,10542 via svnmerge from http://www.freepbx.org/v2/svn/freepbx/trunk

................

r10370 | mbrevda | 2010-10-06 09:47:59 +0200 (Wed, 06 Oct 2010) | 1 line

re #4566 - new framework functions

................

r10375 | p_lindheimer | 2010-10-08 02:08:25 +0200 (Fri, 08 Oct 2010) | 1 line

adds default value for DIVERSIONHEADER re #4580

................

r10376 | mickecarlsson | 2010-10-08 20:02:11 +0200 (Fri, 08 Oct 2010) | 1 line

Fixed spelling errors in comments

................

r10377 | mickecarlsson | 2010-10-08 20:07:12 +0200 (Fri, 08 Oct 2010) | 1 line

Fixed spelling errors in config.php

................

r10378 | mickecarlsson | 2010-10-08 20:11:40 +0200 (Fri, 08 Oct 2010) | 1 line

Fixed spelling errors in page.modules.php

................

r10379 | mickecarlsson | 2010-10-08 20:18:42 +0200 (Fri, 08 Oct 2010) | 1 line

Fixed spelling errors in freepbx.php

................

r10380 | p_lindheimer | 2010-10-08 20:30:23 +0200 (Fri, 08 Oct 2010) | 1 line

turn off events with astman, not being used, and use cache mode for generate_hints

................

r10381 | p_lindheimer | 2010-10-08 22:29:22 +0200 (Fri, 08 Oct 2010) | 1 line

oops just set events off when first connecting

................

r10382 | p_lindheimer | 2010-10-08 23:53:46 +0200 (Fri, 08 Oct 2010) | 1 line

check if array to avoid warnings

................

r10383 | p_lindheimer | 2010-10-09 00:03:29 +0200 (Sat, 09 Oct 2010) | 1 line

closes #4582 adds reconnect attempts as well as some additional logging with logging levels - needs more testing, particularly on known failing systems, should also be applied against the agi version of php-asmanager.php

................

r10384 | p_lindheimer | 2010-10-09 22:05:31 +0200 (Sat, 09 Oct 2010) | 1 line

fixes #4583 undefined var

................

r10400 | p_lindheimer | 2010-10-15 19:04:25 +0200 (Fri, 15 Oct 2010) | 1 line

more explicit log messages on failures

................

r10401 | p_lindheimer | 2010-10-15 20:00:50 +0200 (Fri, 15 Oct 2010) | 1 line

r10383, r10384, 10400 from ~/common/php-asmanager.php

................

r10412 | mickecarlsson | 2010-10-22 20:20:46 +0200 (Fri, 22 Oct 2010) | 1 line

Close #4536, remove / from MOHDIR variable

................

r10413 | mickecarlsson | 2010-10-22 20:23:47 +0200 (Fri, 22 Oct 2010) | 1 line

More help text for MOHDIR in amportal.conf

................

r10416 | p_lindheimer | 2010-10-22 22:21:41 +0200 (Fri, 22 Oct 2010) | 24 lines

Merged revisions 10285-10415 via svnmerge from http://www.freepbx.org/v2/svn/freepbx/branches/2.8

................

r10387 | GameGamer?43 | 2010-10-11 16:07:25 -0700 (Mon, 11 Oct 2010) | 1 line

closes #4585 - fixes logic issue with getInstallableModules

................

r10388 | p_lindheimer | 2010-10-12 09:12:05 -0700 (Tue, 12 Oct 2010) | 1 line

fixes #4587 redeclaration of parse_DialRulesFile(), 2.8 tarball needs to be roled for this to take affect

................

r10389 | p_lindheimer | 2010-10-12 09:14:08 -0700 (Tue, 12 Oct 2010) | 1 line

re #4587 syntax error in checked in fix

................

r10415 | p_lindheimer | 2010-10-22 13:09:58 -0700 (Fri, 22 Oct 2010) | 7 lines ................

r10414 | p_lindheimer | 2010-10-22 13:01:04 -0700 (Fri, 22 Oct 2010) | 1 line

fixes #4602 don't die() just report the error

................

................

................

r10442 | mickecarlsson | 2010-10-24 12:02:47 +0200 (Sun, 24 Oct 2010) | 1 line

Re #4527 - fixed correct path for .js file page.module.php

................

r10449 | mickecarlsson | 2010-10-28 19:21:42 +0200 (Thu, 28 Oct 2010) | 1 line

Removed svn:executable from .dif files in recordings

................

r10528 | mbrevda | 2010-11-03 12:23:47 +0200 (Wed, 03 Nov 2010) | 1 line

downstream alignments

................

r10530 | p_lindheimer | 2010-11-04 18:25:56 +0200 (Thu, 04 Nov 2010) | 1 line

missing optional events paramter re #4582

................

r10537 | mickecarlsson | 2010-11-09 18:02:25 +0200 (Tue, 09 Nov 2010) | 1 line

Make sure that we set a cookie on the first page load. Weird things happen with textdomain if this is not set

................

r10538 | mickecarlsson | 2010-11-09 18:05:37 +0200 (Tue, 09 Nov 2010) | 1 line

Fix typo in previous ci

................

r10539 | mickecarlsson | 2010-11-09 18:29:35 +0200 (Tue, 09 Nov 2010) | 1 line

More typos in previous ci

................

r10542 | mbrevda | 2010-11-10 07:07:33 +0200 (Wed, 10 Nov 2010) | 1 line

no need for the entire indication, set +x on setup_svn

................

11/11/10 00:56:25 changed by mbrevda

(In [10546]) re #4566 - fix defualt bootstrap path

11/11/10 01:35:03 changed by GameGamer43

(In [10547]) re #4566 - actually fix the default bootstrap path

11/13/10 16:57:57 changed by mbrevda

(In [10556]) re #4566 - restore some changes lost on branching

11/13/10 18:47:36 changed by mbrevda

(In [10558]) re #4566; move amportal.conf settings to a module - Thanks mickecarlsson! closes #4469, #3561, #3571, #3572, #3573, #3547, #3576. untill we get a proper migration in place, please add your db values to /etc/environment, see common/db_connect.php for the varibles that need to be set

11/14/10 04:49:21 changed by mickecarlsson

(In [10559]) Re #4566 don't set credentials in install file

11/14/10 04:52:29 changed by mickecarlsson

(In [10560]) Re #4566 use 'standard' credentials for FreePBX

11/14/10 04:58:01 changed by mickecarlsson

(In [10561]) Re #4566 dont ever remove copyrights, they are there for a reason. Update with 'Portions Copyright ...' instead

11/14/10 15:49:19 changed by mickecarlsson

(In [10562]) Re #4566 functions.inc.php needs to be loaded before db_connect

11/25/10 07:54:07 changed by mbrevda

(In [10617]) re #4566

  • Merged revisions 10563-10564,10578-10580,10597-10598,10605,10607 via svnmerge from http://www.freepbx.org/v2/svn/freepbx/trunk
  • rewrote how bootstrapping is handeled. Thoe following is what should be used to include the bootstrapper: require_once(getenv('FREEPBX_CONF') ? getenv('FREEPBX_CONF') : '/etc/freepbx.php');
  • this is a sample of /etc/freepbx.php :
     <?php
    $db_user = 'freepbx';
    $db_pass = 'fpbx';
    $db_host = 'localhost';
    $db_name = 'asterisk';
    $db_engine = 'mysql';
    $datasource = ''; //for sqlite3
    
    $bootstrap = '/var/www/html/admin/bootstrap.php';
    
    require_once($bootstrap);
    ?>
    

11/25/10 10:27:31 changed by mbrevda

(In [10618]) re #4566 - add bootstrap/amportal setting to shell scripts. Do we need full paths for php?

11/29/10 10:44:43 changed by mbrevda

(In [10627]) re #4566 merge forward from downstream ;-p

11/29/10 17:34:33 changed by mbrevda

(In [10636]) re #4566 - add migration path to amportal/bs; dont allow user to save values in db if amportal.conf isnt writeable - in which case read ONLY from it (ignore db); migrtion should be pretty done!

12/01/10 06:52:52 changed by mbrevda

(In [10643]) re #4566 - add cleanup migration script

12/01/10 07:07:36 changed by mbrevda

(In [10645]) re #4566 Merged revisions 10630 via svnmerge from http://www.freepbx.org/v2/svn/modules/branches/2.9

................

r10630 | p_lindheimer | 2010-11-29 23:44:46 +0200 (Mon, 29 Nov 2010) | 32 lines

Merged revisions 10510-10516,10518-10547,10549-10611,10613-10629 via svnmerge from http://svn.freepbx.org/modules/branches/2.8

................

r10514 | p_lindheimer | 2010-11-02 10:56:16 -0700 (Tue, 02 Nov 2010) | 1 line

fixes # 4617 validate the featurecode input when not default even if disabled to keep bad values from entering the db

................

r10529 | p_lindheimer | 2010-11-03 10:46:15 -0700 (Wed, 03 Nov 2010) | 1 line

change syntax from HINT: to hint: to be consistent with what appears to be case sensitive 1.8, the commonly used 1.4 patch is case insensitive so this will continue to work there

................

r10531 | p_lindheimer | 2010-11-05 08:35:13 -0700 (Fri, 05 Nov 2010) | 1 line

remove Undefined offset warning

................

r10620 | p_lindheimer | 2010-11-27 10:14:08 -0800 (Sat, 27 Nov 2010) | 1 line

rename TARGET_FLP4nn to TARGET_FLP_nnn

................

r10629 | p_lindheimer | 2010-11-29 10:10:43 -0800 (Mon, 29 Nov 2010) | 9 lines

Merged revisions 10628 via svnmerge from http://svn.freepbx.org/modules/branches/2.7

........

r10628 | p_lindheimer | 2010-11-29 10:07:38 -0800 (Mon, 29 Nov 2010) | 1 line

fixes # 4660 add admin code to meetme_additional.conf to get around Asterisk bug introduced in https://issues.asterisk.org/view.php?id=17908 though we probably should already have been putting it in anyhow

........

................

................

12/01/10 08:46:08 changed by mbrevda

(In [10646]) re #4566 - ensure proper ownership on config files

12/05/10 13:44:39 changed by mbrevda

(In [10649]) re #4566 - merge revisions to BS branch

12/05/10 14:09:59 changed by mbrevda

(In [10650]) re #4566 - remove json class dependencie in favor of native (or native emulated) funciton

12/05/10 15:26:03 changed by mbrevda

(In [10651]) re #4566 - remove all calls to error_reporting, add custom error handler (which still needs some work to make it more user friendly, currently is designed to mimic the behaviour of dbug())

12/09/10 13:48:55 changed by mbrevda

(In [10671]) re #4566, added some security features mainly for cdr for now (which might be broken atm), some other fixes and improvements

12/09/10 17:02:07 changed by mbrevda

(In [10678]) re #4566 - more migration and new bootstrap format

12/09/10 17:05:00 changed by mbrevda

(In [10679]) re #4566 - merge forward

12/09/10 17:13:11 changed by mbrevda

(In [10680]) re #4566 - should have been checked in here

12/09/10 17:18:07 changed by mbrevda

(In [10681]) re #4566 - deperecte in branch modules in favor of proper branch

12/09/10 17:20:05 changed by mbrevda

(In [10682]) re #4566 - deperecte in branch modules in favor of proper branch

12/09/10 17:38:47 changed by mbrevda

(In [10684]) re #4566 - merge forward

12/11/10 18:08:27 changed by mbrevda

(In [10700]) re #4566 - merge forward

12/11/10 18:09:00 changed by mbrevda

(In [10701]) re #4566 - merge forward

12/13/10 13:57:24 changed by mbrevda

(In [10704]) re #4566 - outstanding changes

12/18/10 18:44:24 changed by mbrevda

(In [10716]) re #4566 - revert r10678

12/18/10 18:58:28 changed by mbrevda

(In [10717]) re #4566 - more changes

12/24/10 06:05:27 changed by mbrevda

(In [10726]) re #4566 - fix cdr limitations with bootstrap

12/26/10 13:01:55 changed by mbrevda

(In [10737]) re #4566 - more changes, reverting some stuff that wasnt working properlly and isnt worth the effort

12/29/10 17:03:53 changed by p_lindheimer

(In [10755]) Merged revisions 10680,10753 via svnmerge from http://www.freepbx.org/v2/svn/modules/branches/bootstrap-2.9

........

r10680 | mbrevda | 2010-12-09 14:13:11 -0800 (Thu, 09 Dec 2010) | 1 line

re #4566 - should have been checked in here

........

r10753 | p_lindheimer | 2010-12-29 13:15:57 -0800 (Wed, 29 Dec 2010) | 1 line

put back CLI debug() function as verbose, change several dbug back to verbose, have verbose write to dbug log, put back php4 comp functions until bootstrap is enabled, fix some errors with db debug method

........

12/29/10 17:28:19 changed by mbrevda

(In [10757]) re #4566 - fix typo

12/29/10 18:33:28 changed by p_lindheimer

(In [10763]) Merged revisions 10561,10640,10648,10655,10728 via svnmerge from http://www.freepbx.org/v2/svn/freepbx/branches/bootstrap

........

r10561 | mickecarlsson | 2010-11-14 01:58:01 -0800 (Sun, 14 Nov 2010) | 1 line

Re #4566 dont ever remove copyrights, they are there for a reason. Update with 'Portions Copyright ...' instead

........

r10640 | mbrevda | 2010-11-30 13:58:27 -0800 (Tue, 30 Nov 2010) | 1 line

re #4655, forgot the framework function

........

r10648 | mbrevda | 2010-12-04 13:34:27 -0800 (Sat, 04 Dec 2010) | 1 line

closes #4616; closing fo rnow as this fis is reather harmless, im more concerened about the algorithm to detarmain the proper base, but nothing iwll break as a result of this. Reopen if there is a better way

........

r10728 | p_lindheimer | 2010-12-24 08:25:01 -0800 (Fri, 24 Dec 2010) | 1 line

expires changed to 24 hrs, we don't want it to be too far out or it can result in more 'bugs' being reported when upgrading. (as it stands we really do need to start versioning mainstyle.css for that same reason...)

........

12/30/10 10:18:16 changed by mbrevda

(In [10776]) re #4566 - make are play nicly. also, some amportal freepbx_engein code tweeks

01/09/11 12:01:45 changed by p_lindheimer

(In [10865]) merge bootstrap branch back to trunk (fingers crossed) re #4566

01/09/11 12:08:04 changed by p_lindheimer

(In [10867]) Merged revisions 10626,10636,10795-10796,10846,10850,10852-10853 via svnmerge from http://www.freepbx.org/v2/svn/modules/branches/bootstrap-2.9

........

r10626 | mbrevda | 2010-11-29 07:19:02 -0800 (Mon, 29 Nov 2010) | 1 line

re #4566 - merge bootstrap settings in to proper modules branch

........

r10636 | mbrevda | 2010-11-29 14:34:33 -0800 (Mon, 29 Nov 2010) | 1 line

re #4566 - add migration path to amportal/bs; dont allow user to save values in db if amportal.conf isnt writeable - in which case read ONLY from it (ignore db); migrtion should be pretty done!

........

r10795 | mbrevda | 2011-01-04 13:17:36 -0800 (Tue, 04 Jan 2011) | 1 line

closes #4723 - migrate to the new directory on install. Open a new ticket for bugs/feature requests pertaining to this

........

r10796 | mbrevda | 2011-01-05 06:47:29 -0800 (Wed, 05 Jan 2011) | 1 line

re #4723

........

r10846 | p_lindheimer | 2011-01-08 12:49:56 -0800 (Sat, 08 Jan 2011) | 1 line

list requirments to finish amportal update re #4733

........

r10850 | p_lindheimer | 2011-01-08 19:45:06 -0800 (Sat, 08 Jan 2011) | 1 line

remove IVR migrations code and keep admin table for one-off tracking, WARNING: needs testing once merged back from bootstrap branch

........

r10852 | p_lindheimer | 2011-01-08 20:08:48 -0800 (Sat, 08 Jan 2011) | 1 line

proper inclusion of bootstrap

........

r10853 | p_lindheimer | 2011-01-08 20:27:03 -0800 (Sat, 08 Jan 2011) | 1 line

put proper field for admin table, variable not key

........

01/20/11 14:25:28 changed by mbrevda

  • status changed from new to closed.
  • resolution set to fixed.

Should be "fixed" in 2.9, open new tickets for any issues