I have added 2 users in extentions - abel to connect from 1 PC and one android device.
then I have reboot my server , jsut to be sure all is working.
and now I get this error in the FreePBX page
“Cannot connect to Asterisk”
I guess something in the permissions
I saw that the serice is down after boot
so I have enable it
asterisk -r
asterisk: /usr/lib64/libjansson.so.4: no version information available (required by asterisk)
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
there is no such file only asterisk.pid
what is wrong? - not working correct ?
please tell me what command to run , and I will show you the replay from them
I would install libjansson the error suggests your missing that and maybe more dependencies.
you might have selinux running which can do things you don’t expect.
Try starting at command prompt as asterisk -vvvvvc See what you get for errors.
But ultimately you are in a advanced install and so you have to do a lot of the work as its far outside the normal condition.
sudo asterisk -vvvvvc
asterisk: /usr/lib64/libjansson.so.4: no version information available (required by asterisk)
Unable to access the running directory (Permission denied). Changing to '/' for compatibility.
Asterisk 18.13.0, Copyright (C) 1999 - 2021, Sangoma Technologies Corporation and others.
Created by Mark Spencer <[email protected]>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Running as user 'asterisk'
Running under group 'asterisk'
XSLT support not found. XML documentation may be incomplete.
Manager registered action DBGet
Manager registered action DBPut
Manager registered action DBDel
Manager registered action DBDelTree
PBX UUID: 12159faf-e96f-4288-8b60-b03da3660aeb
There was a problem finding jansson 2.11 runtime libraries.
Please rebuild Asterisk using ./configure --with-jansson-bundled.
libjansson initialization failed. ASTERISK EXITING!
Manager unregistered action DBGet
Manager unregistered action DBPut
Manager unregistered action DBDel
Manager unregistered action DBDelTree
is there anything else I can do?
maybe another installtion file? image I can run ?
make
make install
make samples
make config
systemctl restart asterisk
systemctl status asterisk
asterisk.service - LSB: Asterisk PBX
Loaded: loaded (/etc/rc.d/init.d/asterisk; bad; vendor preset: disabled)
Active: active (running) since Wed 2022-07-27 11:14:31 IDT; 5s ago
Docs: man:systemd-sysv-generator(8)
now I’m able to enter cmd
asterisk -r
Asterisk 18.13.0, Copyright (C) 1999 - 2021, Sangoma Technologies Corporation and others.
Created by Mark Spencer <[email protected]>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 18.13.0 currently running on asterisk-pbx-18--centos-7 (pid = 13046)
asterisk-pbx-18--centos-7*CLI> exit
Asterisk cleanly ending (0).
Executing last minute cleanups
but on the FreePBX web page I still get ‘Cannot connect to asterisk’ ,
I have try to restart the FreePBX using
fwconsole stop
fwconsole start
now the asterisk won’t stat
systemctl status asterisk
● asterisk.service - LSB: Asterisk PBX
Loaded: loaded (/etc/rc.d/init.d/asterisk; bad; vendor preset: disabled)
Active: inactive (dead)
Docs: man:systemd-sysv-generator(8)
Jul 27 11:14:31 asterisk-pbx-18--centos-7 systemd[1]: Starting LSB: Asterisk PBX...
Jul 27 11:14:31 asterisk-pbx-18--centos-7 asterisk[13017]: Starting asterisk:
Jul 27 11:14:31 asterisk-pbx-18--centos-7 systemd[1]: Can't open PID file /var/run/asterisk/asterisk.pid ...ory
Jul 27 11:14:31 asterisk-pbx-18--centos-7 systemd[1]: asterisk.service: Supervising process 13046 which i...ts.
Jul 27 11:14:31 asterisk-pbx-18--centos-7 systemd[1]: Started LSB: Asterisk PBX.
Jul 27 11:23:30 asterisk-pbx-18--centos-7 asterisk[15150]: Stopping safe_asterisk: [FAILED]
Jul 27 11:23:30 asterisk-pbx-18--centos-7 asterisk[15150]: Shutting down asterisk: [FAILED]
Hint: Some lines were ellipsized, use -l to show in full.
[root@asterisk-pbx-18--centos-7 asterisk-18.13.0]# fwconsole start
Running FreePBX startup...
Taking too long? Customize the chown command, See http://wiki.freepbx.org/display/FOP/FreePBX+Chown+Conf
Setting Permissions...
Setting base permissions...Done in 0 seconds
Setting specific permissions...
18029 [============================]
Finished setting permissions
Starting Asterisk...
[--------------->------------] 30 secs
In Start.class.php line 193:
Unable to connect to Asterisk. Did it start?
start [--pre] [--post] [--skipchown] [--] [<args>]...