1

I have already asterisk in my system then I have install freepbx. Now I got following when try to start asterisk using -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)

When using asterisk -vr I got following error.

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

When using asterisk -vvvvc I got following error.

 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

When I start asterisk service at that time asterisk shutdown is failed.

Can any one help me to fix this issue?

Any help/suggestion would be appreciable.

Rushika Patel
  • 105
  • 1
  • 7

3 Answers3

1

Also please check your ip tables is stop or not.

Hemdip
  • 420
  • 5
  • 29
1

Try disable selinux or change to permissed mode.

Check owner of ctl file and compare with user in /etc/asterisk/asterisk.conf

arheops
  • 14,948
  • 1
  • 17
  • 28
1

The logs / CLI you posted clearly show that it is core-dumping on trying to load the ALSA module. That's likely a problem with the sound-card driver. In the short term, you can just delete that offending module and see if Asterisk will properly load without it.

Further Reading

Please Note:
If this answer helped you solve your problem, please 'accept' it so that others with the same issue can find the solution more easily.

Community
  • 1
  • 1
MichelV69
  • 1,209
  • 6
  • 18