Voip ou sip no HA com asterisk e freepabx

Alguem conseguiu inegrar o asterisk, freepabx no HA pelo debian? estou sofrendo com uns errinhos que aparecem durante a instalação…

Poste os erros aqui pra que possamos tentar te ajudar.

segue os erros que são retornados:

STARTING ASTERISK
Asterisk is already running
root@server:/usr/src/freepbx# ./install -n --dbuser root --dbpass “SQLPa$$w0rd”
Assuming you are Database Root
Checking if SELinux is enabled…Its not (good)!
Reading /etc/asterisk/asterisk.conf…Done
Checking if Asterisk is running and we can talk to it as the ‘asterisk’ user…Yes. Determined Asterisk version to be: 18.22.0
Checking if NodeJS is installed and we can get a version from it…Yes. Determined NodeJS version to be: 18.19.0
Preliminary checks done. Starting FreePBX Installation
Checking if this is a new install…Partial
Database Root installation checking credentials and permissions…Connected!
Initializing FreePBX Settings
Finished initalizing settings
Copying files (this may take a bit)…
20024/20024 [============================] 100%
Done
bin is: /var/lib/asterisk/bin
sbin is: /usr/sbin
Finishing up directory processes…Done!
Running variable replacement…Done
Creating missing #include files…Done
Setting up Asterisk Manager Connection…Done
Running through upgrades…
Checking for upgrades…
No further upgrades necessary
Finished upgrades
Setting FreePBX version to 17.0.15.2…Done
Writing out /etc/amportal.conf…Done
Writing out /etc/freepbx.conf…Done
Chowning directories…
PHP Fatal error: Declaration of Symfony\Component\Translation\TranslatorInterface::getLocale() must be compatible with Symfony\Contracts\Translation\LocaleAwareInterface::getLocale(): string in /var/www/html/admin/libraries/Composer/vendor/symfony/translation/TranslatorInterface.php on line 69
Whoops\Exception\ErrorException: Declaration of Symfony\Component\Translation\TranslatorInterface::getLocale() must be compatible with Symfony\Contracts\Translation\LocaleAwareInterface::getLocale(): string in file /var/www/html/admin/libraries/Composer/vendor/symfony/translation/TranslatorInterface.php on line 69
Stack trace:

  1. Whoops\Exception\ErrorException->() /var/www/html/admin/libraries/Composer/vendor/symfony/translation/TranslatorInterface.php:69
  2. Whoops\Run->handleError() /var/www/html/admin/libraries/Composer/vendor/filp/whoops/src/Whoops/Run.php:510
  3. Whoops\Run->handleShutdown() [internal]:0
    Done
    Installing framework…
    PHP Fatal error: Declaration of Symfony\Component\Translation\TranslatorInterface::getLocale() must be compatible with Symfony\Contracts\Translation\LocaleAwareInterface::getLocale(): string in /var/www/html/admin/libraries/Composer/vendor/symfony/translation/TranslatorInterface.php on line 69
    Whoops\Exception\ErrorException: Declaration of Symfony\Component\Translation\TranslatorInterface::getLocale() must be compatible with Symfony\Contracts\Translation\LocaleAwareInterface::getLocale(): string in file /var/www/html/admin/libraries/Composer/vendor/symfony/translation/TranslatorInterface.php on line 69
    Stack trace:
  4. Whoops\Exception\ErrorException->() /var/www/html/admin/libraries/Composer/vendor/symfony/translation/TranslatorInterface.php:69
  5. Whoops\Run->handleError() /var/www/html/admin/libraries/Composer/vendor/filp/whoops/src/Whoops/Run.php:510
  6. Whoops\Run->handleShutdown() [internal]:0

In Process.php line 272:

The command “‘/usr/sbin/fwconsole’ ‘ma’ ‘install’ ‘framework’” failed.

Exit Code: 255(Unknown error)

Working directory: /usr/src/freepbx

Output:

Error Output:

install [–dbengine DBENGINE] [–dbname DBNAME] [–dbhost DBHOST] [–dbport DBPORT] [–cdrdbname CDRDBNAME] [–dbuser DBUSER] [–dbpass DBPASS] [–user USER] [–group GROUP] [–dev-links] [–skip-install] [–webroot WEBROOT] [–astetcdir ASTETCDIR] [–astmoddir ASTMODDIR] [–astvarlibdir ASTVARLIBDIR] [–astagidir ASTAGIDIR] [–astspooldir ASTSPOOLDIR] [–astrundir ASTRUNDIR] [–astlogdir ASTLOGDIR] [–ampbin AMPBIN] [–ampsbin AMPSBIN] [–ampcgibin AMPCGIBIN] [–ampplayback AMPPLAYBACK] [-r|–rootdb] [-f|–force]

root@server:/usr/src/freepbx# ./install -n --dbuser root --dbpass “Tec9748@”
PHP Fatal error: Uncaught Error: Call to undefined function FreePBX\Install\simplexml_load_file() in /usr/src/freepbx/install:19
Stack trace:
#0 {main}
thrown in /usr/src/freepbx/install on line 19

Vc está instalando em um máquina que será usada só pra isso ou está compartilhando uma máquina que rodam outros serviços?

Se for uma máquina dedicada ou uma VM use um sistema pronto como Issabel ou Elastix, por exemplo…

Não, é uma máquina que já roda outros serviços, como home assistent, VIAWEBReceiver, nodered, frigate…

Estou usando tudo no Debian 12

Dá uma olhada aqui.

1 Like

ja olhei o linkl, foi dai que surgiu a ideia…

mas eu achei um forun do freepabx e me passaram um script, mas me retornou o erro:

root@server:~# bash /tmp/sng_freepbx_debian_install.sh
2024-03-28 20:49:53 - Starting installation.
2024-03-28 20:49:53 - Starting FreePBX 17 installation process for server Linu x server 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_ 64 GNU/Linux
2024-03-28 20:49:53 - Please refer to the /var/log/pbx/freepbx17-install-2024. 03.28-20.49.53.log to know the process…
2024-03-28 20:49:53 - Making sure installation is sane
2024-03-28 20:50:09 - Setting up default configuration
2024-03-28 20:50:10 - Setting up repositories
2024-03-28 20:50:30 - Setting up Sangoma repository
2024-03-28 20:50:30 - Updating repository
2024-03-28 20:50:35 - Installing required packages
2024-03-28 20:50:35 - Installing redis-server …
2024-03-28 20:50:41 - redis-server installed successfully…
2024-03-28 20:50:41 - Installing libtonezone-dev …
2024-03-28 20:50:43 - libtonezone-dev installed successfully…
2024-03-28 20:50:43 - Installing libpri-dev …
2024-03-28 20:50:45 - libpri-dev installed successfully…
2024-03-28 20:50:46 - Installing ghostscript …
2024-03-28 20:50:54 - ghostscript installed successfully…
2024-03-28 20:50:55 - Installing libtiff-tools …
2024-03-28 20:50:57 - libtiff-tools installed successfully…
2024-03-28 20:50:58 - Installing iptables-persistent …
2024-03-28 20:51:04 - iptables-persistent installed successfully…
2024-03-28 20:51:04 - Installing rsyslog …
2024-03-28 20:51:08 - rsyslog installed successfully…
2024-03-28 20:51:08 - Installing nmap …
2024-03-28 20:51:16 - nmap installed successfully…
2024-03-28 20:51:16 - Installing apache2 …
2024-03-28 20:51:27 - apache2 installed successfully…
2024-03-28 20:51:27 - Installing zip …
2024-03-28 20:51:31 - zip installed successfully…
2024-03-28 20:51:31 - Installing incron …
2024-03-28 20:51:36 - incron installed successfully…
2024-03-28 20:51:36 - Installing chrony …
2024-03-28 20:51:44 - chrony installed successfully…
2024-03-28 20:51:44 - Installing mariadb-server …
2024-03-28 20:52:00 - mariadb-server installed successfully…
2024-03-28 20:52:00 - Installing flite …
2024-03-28 20:52:03 - flite installed successfully…
2024-03-28 20:52:03 - Installing php8.2 …
2024-03-28 20:52:30 - Exiting script