Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?) #9

Open
andyevang opened this issue Sep 20, 2021 · 0 comments

Comments

@andyevang
Copy link

andyevang commented Sep 20, 2021

Olá, ao fazer todo o procedimento passo-a-passo de instalação do Asterisk no script asterisk.sh e no vídeo https://www.youtube.com/watch?v=IAAkmZMfby0&t=1015s me deparei com esse seguinte erro quando digito "asterisk -rvvvv". Já tentei usar também "asterisk -cvvvvv" (uma possível solução que vi na documentação do próprio Asterisk) e não resolveu. Procurei soluções para o problema e vi que possíveis causas poderiam devido ao usuário não ter permissão para o arquivo ou o Asterisk não tem acesso de escrita no arquivo /var/run/asterisk ou o meu usuário não tem permissão de escrita ao asterisk.ctl. Enfim, ao executar o comando "asterisk -cvvvvv", me deparei com as seguintes mensagens de avisos e erro:

[Sep 20 11:17:04] WARNING[1802]: config.c:1891 process_text_line: Unknown directive '#' at line 1 of /etc/asterisk/modules.conf
[Sep 20 11:17:04] WARNING[1802]: config.c:1891 process_text_line: Unknown directive '#' at line 2 of /etc/asterisk/modules.conf
[Sep 20 11:17:04] WARNING[1802]: config.c:1891 process_text_line: Unknown directive '#' at line 3 of /etc/asterisk/modules.conf
[Sep 20 11:17:04] WARNING[1802]: config.c:1891 process_text_line: Unknown directive '#' at line 4 of /etc/asterisk/modules.conf
[Sep 20 11:17:04] WARNING[1802]: config.c:1891 process_text_line: Unknown directive '#' at line 5 of /etc/asterisk/modules.conf
[Sep 20 11:17:04] WARNING[1802]: config.c:1891 process_text_line: Unknown directive '#' at line 6 of /etc/asterisk/modules.conf
[Sep 20 11:17:04] WARNING[1802]: config.c:1891 process_text_line: Unknown directive '#' at line 7 of /etc/asterisk/modules.conf
[Sep 20 11:17:04] WARNING[1802]: config.c:1891 process_text_line: Unknown directive '#' at line 8 of /etc/asterisk/modules.conf
[Sep 20 11:17:04] WARNING[1802]: config.c:1891 process_text_line: Unknown directive '#' at line 9 of /etc/asterisk/modules.conf
[Sep 20 11:17:04] WARNING[1802]: config.c:1891 process_text_line: Unknown directive '#' at line 10 of /etc/asterisk/modules.conf
[Sep 20 11:17:04] WARNING[1802]: config.c:1891 process_text_line: Unknown directive '#' at line 11 of /etc/asterisk/modules.conf
[Sep 20 11:17:04] WARNING[1802]: config.c:1891 process_text_line: Unknown directive '#' at line 13 of /etc/asterisk/modules.conf
[Sep 20 11:17:04] WARNING[1802]: config.c:1960 process_text_line: parse error: No category context for line 14 of /etc/asterisk/modules.conf
[Sep 20 11:17:04] WARNING[1802]: loader.c:2224 loader_config_init: 'modules.conf' invalid or missing.
[Sep 20 11:17:04] ERROR[1802]: asterisk.c:3935 check_init: Module initialization failed. ASTERISK EXITING!

== Manager unregistered action DBGet
== Manager unregistered action DBPut
== Manager unregistered action DBDel
== Manager unregistered action DBDelTree

Queria saber como proceder para resolver. Grato pela atenção!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant