1 |
unnilennium |
1.1 |
diff -Nur smeserver-freepbx-13.old/root/etc/e-smith/events/actions/freepbx-dump-astdb smeserver-freepbx-13/root/etc/e-smith/events/actions/freepbx-dump-astdb |
2 |
|
|
--- smeserver-freepbx-13.old/root/etc/e-smith/events/actions/freepbx-dump-astdb 2016-06-13 08:03:08.000000000 -0400 |
3 |
|
|
+++ smeserver-freepbx-13/root/etc/e-smith/events/actions/freepbx-dump-astdb 2016-10-24 00:42:34.680000000 -0400 |
4 |
|
|
@@ -14,8 +14,10 @@ |
5 |
|
|
|
6 |
|
|
$amp_conf = getconf("/etc/amportal.conf"); |
7 |
|
|
|
8 |
|
|
-require_once($amp_conf['AMPWEBROOT']."/admin/functions.inc.php"); |
9 |
|
|
-require_once($amp_conf['AMPWEBROOT']."/admin/libraries/php-asmanager.php"); |
10 |
|
|
+// Start quickly. |
11 |
|
|
+$bootstrap_settings['freepbx_auth'] = false; // Just in case. |
12 |
|
|
+$restrict_mods = true; // Takes startup from 0.2 seconds to 0.07 seconds. |
13 |
|
|
+include '/etc/freepbx.conf'; |
14 |
|
|
$astman = new AGI_AsteriskManager(); |
15 |
|
|
if (! $res = $astman->connect("127.0.0.1", $amp_conf["AMPMGRUSER"] , $amp_conf["AMPMGRPASS"])) { |
16 |
|
|
unset( $astman ); |