Asterisk initial setup, I get an error

Asterisk setup
I get the following errors after /contrib/init.d# asterisk -cvvvv code

Could you help!

== Manager registered action PresenceStateList

== res_manager_presencestate.so => (Manager Presence State Topic Forwarder)

[Apr 8 12:25:08] WARNING[2173]: loader.c:2381 load_modules: Some non-required modules failed to load.

[Apr 8 12:25:08] ERROR[2173]: loader.c:2396 load_modules: Error loading module ‘res_prometheus.so’: /usr/lib/asterisk/modules/res_prometheus.so: undefined symbol: ast_bridge_get_snapshot

[Apr 8 12:25:08] ERROR[2173]: loader.c:2396 load_modules: res_pjsip_transport_websocket declined to load.

[Apr 8 12:25:08] ERROR[2173]: loader.c:2396 load_modules: cdr_sqlite3_custom declined to load.

[Apr 8 12:25:08] ERROR[2173]: loader.c:2396 load_modules: cel_sqlite3_custom declined to load.

Asterisk Ready.

*CLI>

Those are non-required modules. Is there a specific problem or issue occurring as a result?

I get the following error when I want to start asterisk;

root@mehmet:/home/gundur/Downloads/asterisk-17.3.0/contrib/init.d# /etc/init.d/asterisk start

[…] Starting asterisk (via systemctl): asterisk.serviceJob for asterisk.service failed because the control process exited with error code.

See “systemctl status asterisk.service” and “journalctl -xe” for details.

failed!

Although that Asterisk module is not a required one, this error should not happen.

  1. On which platform are you (Ubuntu, RedHat, …); which version?
  2. How did you build Asterisk exactly. Please, provide your commands.
  3. Are you using the current master branch/source or the Asterisk 17 download package?

I recommend the latter. With those three information, your issues could be reproduced.

Until then, you might get even better results for the start if you go for a long-term support release, like the current Asterisk 16 LTS or a higher abstraction layer like FreePBX.

1.Debian 10 platform
2.I literally applied this video.(https://www.youtube.com/watch?v=2TDijCm3HRE )

3.I got the same results in 17.3 and 16.9.

I may be doing something wrong, documents to help, etc. it can be very good.

Following videos for command-line tutorials is the wrong way to go, in general. For supporting others it is even worse, because I have to watch 33:00 minutes now, waste 32:30 minutes to find the half-dozen commands used. Furthermore, that video is not about Debian 10 but Ubuntu 16.04 LTS. Debian 10 was not tested so much with Asterisk, yet. I recommend to go for another tutorial (or re-do that tutorial with its shown Ubuntu 16.04 LTS).

The way to go are, normally:

wget downloads.asterisk.org/pub/telephony/asterisk/asterisk-16-current.tar.gz
tar -zxf asterisk-*
cd ./asterisk-*
sudo ./contrib/scripts/install_prereq install
./configure --with-pjproject-bundled
make
sudo make install config samples
asterisk -c

I am installing asterisk 16.9 on Debian 8 64bit, I got many errors after asterisk -c code.

root@Mehmet:/home/gundur/Downloads/asterisk-16.9.0# asterisk -c

Asterisk 16.9.0, Copyright © 1999 - 2018, Digium, Inc. and others.

Created by Mark Spencer markster@digium.com

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.

=========================================================================

PBX UUID: 1d6b5b1d-2f05-42cd-b1f3-92ba7cac50ff

[Apr 11 15:18:56] NOTICE[45162]: loader.c:2377 load_modules: 328 modules will be loaded.

[ Initializing Custom Configuration Options ]

[Apr 11 15:18:57] ERROR[45162]: res_config_pgsql.c:1606 pgsql_reconnect: PostgreSQL RealTime: Failed to connect database asterisk on 127.0.0.1:

[Apr 11 15:18:57] WARNING[45162]: res_config_pgsql.c:1544 parse_config: PostgreSQL RealTime: Couldn’t establish connection. Check debug.

[Apr 11 15:18:57] NOTICE[45162]: res_config_ldap.c:1830 parse_config: No directory user found, anonymous binding as default.

[Apr 11 15:18:57] ERROR[45162]: res_config_ldap.c:1856 parse_config: No directory URL or host found.

[Apr 11 15:18:57] ERROR[45162]: res_config_ldap.c:1718 load_module: Cannot load LDAP RealTime driver.

[Apr 11 15:18:57] NOTICE[45162]: cdr.c:4522 cdr_toggle_runtime_options: CDR simple logging enabled.

[Apr 11 15:18:57] NOTICE[45162]: res_smdi.c:1424 load_module: No SMDI interfaces are available to listen on, not starting SMDI listener.

[Apr 11 15:18:57] WARNING[45162]: res_phoneprov.c:1232 get_defaults: Unable to find a valid server address or name.

[Apr 11 15:18:57] NOTICE[45162]: chan_skinny.c:8459 config_load: Configuring skinny from skinny.conf

SIP channel loading…

[Apr 11 15:18:57] ERROR[45162]: ari/config.c:312 process_config: No configured users for ARI

[Apr 11 15:18:57] NOTICE[45162]: confbridge/conf_config_parser.c:2342 verify_default_profiles: Adding default_menu menu to app_confbridge

[Apr 11 15:18:57] WARNING[45162]: cel_pgsql.c:467 process_my_load_module: CEL pgsql config file missing global section.

[Apr 11 15:18:57] NOTICE[45162]: cel_custom.c:95 load_config: No mappings found in cel_custom.conf. Not logging CEL to custom CSVs.

[Apr 11 15:18:57] NOTICE[45162]: cel_tds.c:450 tds_load_module: cel_tds has no global category, nothing to configure.

[Apr 11 15:18:57] WARNING[45162]: cel_tds.c:555 load_module: cel_tds module had config problems; declining load

[Apr 11 15:18:57] NOTICE[45162]: cdr_pgsql.c:545 config_module: cdr_pgsql configuration contains no global section, skipping module load.

[Apr 11 15:18:57] WARNING[45162]: loader.c:2381 load_modules: Some non-required modules failed to load.

[Apr 11 15:18:57] ERROR[45162]: loader.c:2396 load_modules: res_pjsip_transport_websocket declined to load.

[Apr 11 15:18:57] ERROR[45162]: loader.c:2396 load_modules: cel_tds declined to load.

[Apr 11 15:18:57] ERROR[45162]: loader.c:2396 load_modules: cel_sqlite3_custom declined to load.

[Apr 11 15:18:57] ERROR[45162]: loader.c:2396 load_modules: cdr_tds declined to load.

[Apr 11 15:18:57] ERROR[45162]: loader.c:2396 load_modules: cdr_pgsql declined to load.

[Apr 11 15:18:57] ERROR[45162]: loader.c:2396 load_modules: cdr_sqlite3_custom declined to load.

Asterisk Ready.

Remove or disable the modules you aren’t using. Fix the config files for the ones you are using.

I suspect most of these errors are not real errors, but the result of not providing configuration files for unused features. Those are harmless.

As I don’t know what you are trying to use, I don’t know which errors actually need addressing.

What fails to work after Asterisk has started?

I want to install Asterisk, if the installation is completed now, how will I open and do the trunk.

If you wish to remove the errors/warnings you see when Asterisk starts then you should ‘noload’ modules in modules.conf

Your requirement is not clear, what do you want to open?

To create a trunk (SIP/IAX), you can go through the info available on Asterisk wiki and on various other places on the Internet

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.