我的系统中已经有星号,然后我安装了freepbx。 现在,当我尝试使用-gc启动星号时,我得到了跟进。
[May 26 01:10:09] NOTICE[31812]: loader.c:1170 load_modules: 2 modules will be loaded.
..[May 26 01:10:09] NOTICE[31812]: cdr.c:1607 do_reload: CDR simple logging enabled.
[May 26 01:10:09] NOTICE[31812]: loader.c:1170 load_modules: 198 modules will be loaded.
.[May 26 01:10:09] NOTICE[31812]: res_smdi.c:1418 load_module: No SMDI interfaces are available to listen on, not starting SMDI listener.
...........[May 26 01:10:09] NOTICE[31812]: config.c:2338 ast_config_engine_register: Registered Config Engine sqlite3
.[May 26 01:10:09] NOTICE[31812]: config.c:2338 ast_config_engine_register: Registered Config Engine curl
[May 26 01:10:09] WARNING[31812]: res_config_mysql.c:1487 load_mysql_config: MySQL RealTime: No database host found, using localhost via socket.
[May 26 01:10:09] WARNING[31812]: res_config_mysql.c:1499 load_mysql_config: MySQL RealTime: No database port found, using 3306 as default.
.[May 26 01:10:09] WARNING[31812]: res_config_mysql.c:1528 load_mysql_config: MySQL realtime: no requirements setting found, using 'warn' as default.
[May 26 01:10:09] NOTICE[31812]: config.c:2338 ast_config_engine_register: Registered Config Engine mysql
asterisk: src/hostapi/alsa/pa_linux_alsa.c:863: BuildDeviceList: Assertion `devIdx < numDeviceNames' failed.
........Aborted (core dumped)
使用asterisk -vr时出现以下错误。
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
使用asterisk -vvvvc时出现以下错误。
Asterisk Dynamic Loader Starting:
[May 26 02:10:56] NOTICE[23425]: loader.c:1170 load_modules: 2 modules will be loaded.
chan_local.so => (Local Proxy Channel (Note: used internally by other modules))
pbx_config.so => (Text Extension Configuration)
[May 26 02:10:56] NOTICE[23425]: cdr.c:1607 do_reload: CDR simple logging enabled.
Asterisk PBX Core Initializing
Registering builtin applications:
[Answer]
[BackGround]
[Busy]
[Congestion]
[ExecIfTime]
[Goto]
[GotoIf]
[GotoIfTime]
[ImportVar]
[Hangup]
[Incomplete]
[NoOp]
[Proceeding]
[Progress]
[RaiseException]
[ResetCDR]
[Ringing]
[SayAlpha]
[SayDigits]
[SayNumber]
[SayPhonetic]
[Set]
[MSet]
[SetAMAFlags]
[Wait]
[WaitExten]
Asterisk Dynamic Loader Starting:
[May 26 02:10:56] NOTICE[23425]: loader.c:1170 load_modules: 198 modules will be loaded.
res_monitor.so => (Call Monitoring Resource)
[May 26 02:10:56] NOTICE[23425]: res_smdi.c:1418 load_module: No SMDI interfaces are available to listen on, not starting SMDI listener.
res_http_websocket.so => (HTTP WebSocket Support)
res_crypto.so => (Cryptographic Digital Signatures)
res_stun_monitor.so => (STUN Network Monitor)
res_agi.so => (Asterisk Gateway Interface (AGI))
res_speech.so => (Generic Speech Recognition API)
res_fax.so => (Generic FAX Applications)
res_calendar.so => (Asterisk Calendar integration)
res_ael_share.so => (share-able code for AEL)
res_curl.so => (cURL Resource Module)
func_curl.so => (Load external URL)
[May 26 02:10:56] NOTICE[23425]: config.c:2338 ast_config_engine_register: Registered Config Engine sqlite3
res_config_sqlite3.so => (SQLite 3 realtime config engine)
[May 26 02:10:56] NOTICE[23425]: config.c:2338 ast_config_engine_register: Registered Config Engine curl
res_config_curl loaded.
res_config_curl.so => (Realtime Curl configuration)
[May 26 02:10:56] WARNING[23425]: res_config_mysql.c:1487 load_mysql_config: MySQL RealTime: No database host found, using localhost via socket.
[May 26 02:10:56] WARNING[23425]: res_config_mysql.c:1499 load_mysql_config: MySQL RealTime: No database port found, using 3306 as default.
[May 26 02:10:56] WARNING[23425]: res_config_mysql.c:1528 load_mysql_config: MySQL realtime: no requirements setting found, using 'warn' as default.
[May 26 02:10:56] NOTICE[23425]: config.c:2338 ast_config_engine_register: Registered Config Engine mysql
res_config_mysql.so => (MySQL RealTime Configuration Driver)
res_timing_pthread.so => (pthread Timing Interface)
res_timing_timerfd.so => (Timerfd Timing Interface)
res_format_attr_silk.so => (SILK Format Attribute Module)
res_format_attr_celt.so => (CELT Format Attribute Module)
res_musiconhold.so => (Music On Hold Resource)
res_rtp_asterisk.so => (Asterisk RTP Stack)
res_rtp_multicast.so => (Multicast RTP Engine)
chan_bridge.so => (Bridge Interaction Channel)
asterisk: src/hostapi/alsa/pa_linux_alsa.c:863: BuildDeviceList: Assertion `devIdx < numDeviceNames' failed.
Aborted
当我启动星号服务时,星号关闭失败。
任何人都可以帮我解决这个问题吗?
任何帮助/建议都会很明显。
答案 0 :(得分:1)
另外请检查你的ip表是否停止。
答案 1 :(得分:1)
尝试禁用selinux或更改为已启用模式。
检查ctl文件的所有者并与/etc/asterisk/asterisk.conf中的用户进行比较
答案 2 :(得分:1)
您发布的日志/ CLI清楚地表明在尝试加载ALSA模块时它是核心转储。这可能是声卡驱动程序的问题。在短期内,你可以删除那个有问题的模块,看看没有它就能正确加载Asterisk。
进一步阅读
请注意:
如果这个答案有助于您解决问题,请接受&#39;它使具有相同问题的其他人可以更容易地找到解决方案。