在做星号-r时无法连接到远程星号

时间:2014-08-28 11:19:57

标签: asterisk ivr

我已经安装了星号11.8并创建了一个拨号方案,并在一周前进行了测试,它工作正常我能够运行asterisk -r并且我的所有数据库事务都运行良好

但是一周之后,现在我无法通过星号切换到星号cli -r它说 无法连接到远程星号(/var/run/asterisk/asterisk.ctl存在吗?) 我知道这个问题很多时候我都试过similar stack threads,但是工作 星号-c的输出是

Privilege escalation protection disabled!
See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details.
Asterisk 11.11.0, Copyright (C) 1999 - 2013 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.
=========================================================================
[ Initializing Custom Configuration Options ]
[Aug 28 16:44:55] NOTICE[18923]: cdr.c:1622 do_reload: CDR simple logging enabled.
[Aug 28 16:44:55] NOTICE[18923]: loader.c:1208 load_modules: 211 modules will be loaded.
.[Aug 28 16:44:55] NOTICE[18923]: res_odbc.c:1899 load_module: res_odbc loaded.
....[Aug 28 16:44:55] NOTICE[18923]: res_smdi.c:1418 load_module: No SMDI interfaces are available to listen on, not starting SMDI listener.
.......[Aug 28 16:44:55] NOTICE[18923]: config.c:2504 ast_config_engine_register: Registered Config Engine sqlite3
[Aug 28 16:44:55] NOTICE[18923]: config.c:2504 ast_config_engine_register: Registered Config Engine odbc
........[Aug 28 16:44:55] WARNING[18923]: chan_dahdi.c:8039 handle_alarms: Detected alarm on channel 1: Red Alarm
[Aug 28 16:44:55] WARNING[18923]: chan_dahdi.c:8039 handle_alarms: Detected alarm on channel 2: Red Alarm
[Aug 28 16:44:55] WARNING[18923]: chan_dahdi.c:8039 handle_alarms: Detected alarm on channel 3: Red Alarm
[Aug 28 16:44:55] WARNING[18923]: chan_dahdi.c:8039 handle_alarms: Detected alarm on channel 4: Red Alarm
[Aug 28 16:44:55] WARNING[18923]: chan_dahdi.c:8039 handle_alarms: Detected alarm on channel 5: Red Alarm
[Aug 28 16:44:55] WARNING[18923]: chan_dahdi.c:8039 handle_alarms: Detected alarm on channel 6: Red Alarm
[Aug 28 16:44:55] WARNING[18923]: chan_dahdi.c:8039 handle_alarms: Detected alarm on channel 7: Red Alarm
[Aug 28 16:44:55] WARNING[18923]: chan_dahdi.c:8039 handle_alarms: Detected alarm on channel 8: Red Alarm
[Aug 28 16:44:55] WARNING[18923]: chan_dahdi.c:8039 handle_alarms: Detected alarm on channel 9: Red Alarm
[Aug 28 16:44:55] WARNING[18923]: chan_dahdi.c:8039 handle_alarms: Detected alarm on channel 10: Red Alarm
[Aug 28 16:44:55] WARNING[18923]: chan_dahdi.c:8039 handle_alarms: Detected alarm on channel 11: Red Alarm
[Aug 28 16:44:55] WARNING[18923]: chan_dahdi.c:8039 handle_alarms: Detected alarm on channel 12: Red Alarm
[Aug 28 16:44:55] WARNING[18923]: chan_dahdi.c:8039 handle_alarms: Detected alarm on channel 13: Red Alarm
[Aug 28 16:44:55] WARNING[18923]: chan_dahdi.c:8039 handle_alarms: Detected alarm on channel 14: Red Alarm
[Aug 28 16:44:55] WARNING[18923]: chan_dahdi.c:8039 handle_alarms: Detected alarm on channel 15: Red Alarm
[Aug 28 16:44:55] WARNING[18923]: chan_dahdi.c:8039 handle_alarms: Detected alarm on channel 17: Red Alarm
[Aug 28 16:44:55] WARNING[18923]: chan_dahdi.c:8039 handle_alarms: Detected alarm on channel 18: Red Alarm
[Aug 28 16:44:55] WARNING[18923]: chan_dahdi.c:8039 handle_alarms: Detected alarm on channel 19: Red Alarm
[Aug 28 16:44:55] WARNING[18923]: chan_dahdi.c:8039 handle_alarms: Detected alarm on channel 20: Red Alarm
[Aug 28 16:44:55] WARNING[18923]: chan_dahdi.c:8039 handle_alarms: Detected alarm on channel 21: Red Alarm
[Aug 28 16:44:55] WARNING[18923]: chan_dahdi.c:8039 handle_alarms: Detected alarm on channel 22: Red Alarm
[Aug 28 16:44:55] WARNING[18923]: chan_dahdi.c:8039 handle_alarms: Detected alarm on channel 23: Red Alarm
[Aug 28 16:44:55] WARNING[18923]: chan_dahdi.c:8039 handle_alarms: Detected alarm on channel 24: Red Alarm
[Aug 28 16:44:55] WARNING[18923]: chan_dahdi.c:8039 handle_alarms: Detected alarm on channel 25: Red Alarm
[Aug 28 16:44:55] WARNING[18923]: chan_dahdi.c:8039 handle_alarms: Detected alarm on channel 26: Red Alarm
[Aug 28 16:44:55] WARNING[18923]: chan_dahdi.c:8039 handle_alarms: Detected alarm on channel 27: Red Alarm
[Aug 28 16:44:55] WARNING[18923]: chan_dahdi.c:8039 handle_alarms: Detected alarm on channel 28: Red Alarm
[Aug 28 16:44:55] WARNING[18923]: chan_dahdi.c:8039 handle_alarms: Detected alarm on channel 29: Red Alarm
[Aug 28 16:44:55] WARNING[18923]: chan_dahdi.c:8039 handle_alarms: Detected alarm on channel 30: Red Alarm
[Aug 28 16:44:55] WARNING[18923]: chan_dahdi.c:8039 handle_alarms: Detected alarm on channel 31: Red Alarm
[Aug 28 16:44:55] WARNING[18923]: chan_dahdi.c:18700 process_dahdi: Ignoring any changes to 'userbase' (on reload) at line 23.
[Aug 28 16:44:55] WARNING[18923]: chan_dahdi.c:18700 process_dahdi: Ignoring any changes to 'vmsecret' (on reload) at line 31.
[Aug 28 16:44:55] WARNING[18923]: chan_dahdi.c:18700 process_dahdi: Ignoring any changes to 'hassip' (on reload) at line 35.
[Aug 28 16:44:55] WARNING[18923]: chan_dahdi.c:18700 process_dahdi: Ignoring any changes to 'hasiax' (on reload) at line 39.
[Aug 28 16:44:55] WARNING[18923]: chan_dahdi.c:18700 process_dahdi: Ignoring any changes to 'hasmanager' (on reload) at line 47.
..[Aug 28 16:44:55] NOTICE[18923]: chan_skinny.c:7736 config_load: Configuring skinny from skinny.conf
.....SIP channel loading...
[Aug 28 16:44:55] WARNING[18923]: sip/config_parser.c:812 sip_parse_nat_option: nat=yes is deprecated, use nat=force_rport,comedia instead
................................[Aug 28 16:44:55] NOTICE[18923]: cel_custom.c:95 load_config: No mappings found in cel_custom.conf. Not logging CEL to custom CSVs.
..............................................................................[Aug 28 16:44:55] NOTICE[18923]: config.c:2504 ast_config_engine_register: Registered Config Engine mysql
.........[Aug 28 16:44:55] WARNING[18923]: pbx.c:9897 add_priority: Unable to register extension '_X.' priority 2 in 'voice-mail', already in use
.................[Aug 28 16:44:55] WARNING[18923]: pbx.c:7327 ast_register_application2: Already have an application 'MYSQL'
You have new mail in /var/spool/mail/root

任何人都可以帮忙,搜索几个小时 感谢

1 个答案:

答案 0 :(得分:3)

我认为这是由于用户权限限制。你尝试将它作为su运行吗?试试

sudo asterisk -cvvvvvvvvvvvvr

这解决了我的问题。 (PS:你应该是一个sudoer)

enter image description here