1

Temat: OpenWRT 21.x x86, nie działa Asterisk, help :)

Zainstalowałem na maszynie x86 Asteriska ( zresztą jak zawsze ) i nie chce wystartować

Tyle że teraz mam wersję 18. a ostatnio na innym sprzęcie miałem 16.

Przy obie startu mam:

Errors

asterisk: service not enabled in /etc/config/asterisk

root@OpenWrt:~# asterisk &
root@OpenWrt:~# service asterisk start
asterisk: service not enabled in /etc/config/asterisk
[1]+  Done                       asterisk
root@OpenWrt:~# asterisk -vvvvr
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)


Odinstalowałem, ponownie zainstalowałem i klapa, nie startuje sad

2

Odp: OpenWRT 21.x x86, nie działa Asterisk, help :)

Przeciez ci napiał dlaczego. A ty jak zwykle nie przeczytałeś (który to już raz?) - włącz go w /etc/config/asterisk

I nie uruchamiaj z palca przez asterisk & tylko zawsze przez /etc/init.d/asterisk start (czy service asterisk start - to to samo)

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3 (edytowany przez onken 2022-02-09 10:35:10)

Odp: OpenWRT 21.x x86, nie działa Asterisk, help :)

Tak robię i ciagle wywala ten błąd:

root@OpenWrt:~# /etc/init.d/asterisk start
asterisk: service not enabled in /etc/config/asterisk
root@OpenWrt:~#

Gdzie go tam mam włączyć smile ? , według konfigu jest włączony, nawet te same konfigi przegrywałem i to samo

4

Odp: OpenWRT 21.x x86, nie działa Asterisk, help :)

Pokaż wynik

uci show asterisk

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5

Odp: OpenWRT 21.x x86, nie działa Asterisk, help :)

root@OpenWrt:~# uci show asterisk
asterisk.general=asterisk
asterisk.general.enabled='0'
asterisk.general.log_stderr='1'
asterisk.general.log_stdout='1'
root@OpenWrt:~#

6

Odp: OpenWRT 21.x x86, nie działa Asterisk, help :)

I napisz mi gdzie to niby włączyłeś?

asterisk.general.enabled='0'

a ma być asterisk.general.enabled='1'

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

7

Odp: OpenWRT 21.x x86, nie działa Asterisk, help :)

Ale tam nie ma takiego pola smile

Nigdy do tej pory nie zmieniałem konfigu pod tym względem.

Albo ja ślepy jestem wink

8

Odp: OpenWRT 21.x x86, nie działa Asterisk, help :)

Jakiego pola nie ma? W /etc/config/asterisk masz zmienić enabled z 0 na 1. Jest tam.

Sam napisałeś że masz inna wersję, nie wpadłeś na to że mogli dodać konfig i skrypty startowe? To że kiedyś nie było nie oznacza że wszystko stoi w miejscu i nic się nie rozwija. Zmień to po prostu i po raz kolejny - czytaj co on wypisuje...

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

9 (edytowany przez onken 2022-02-09 11:02:26)

Odp: OpenWRT 21.x x86, nie działa Asterisk, help :)

Na początku default konfig zainstalowałem, ten sam błąd

Odrazu w oknie instalacji OpenWRT zgłasza

"Errors

asterisk: service not enabled in /etc/config/asterisk"

Zobacz oryginalny konfig , asterisk.conf

[directories](!)
astcachedir => /tmp
astetcdir => /etc/asterisk
astmoddir => /usr/lib/asterisk/modules
astvarlibdir => /var/lib/asterisk
astdbdir => /var/lib/asterisk
astkeydir => /var/lib/asterisk
astdatadir => /usr/share/asterisk
astagidir => /usr/share/asterisk/agi-bin
astspooldir => /var/spool/asterisk
astrundir => /var/run/asterisk
astlogdir => /var/log/asterisk
astsbindir => /usr/sbin

[options]
;verbose = 3
;debug = 3
;trace = 0              ; Set the trace level.
;refdebug = yes            ; Enable reference count debug logging.
;alwaysfork = yes        ; Same as -F at startup.
;nofork = yes            ; Same as -f at startup.
;quiet = yes            ; Same as -q at startup.
;timestamp = yes        ; Same as -T at startup.
;execincludes = yes        ; Support #exec in config files.
;console = yes            ; Run as console (same as -c at startup).
;highpriority = yes        ; Run realtime priority (same as -p at
                ; startup).
;initcrypto = yes        ; Initialize crypto keys (same as -i at
                ; startup).
;nocolor = yes            ; Disable console colors.
;dontwarn = yes            ; Disable some warnings.
;dumpcore = yes            ; Dump core on crash (same as -g at startup).
;languageprefix = yes        ; Use the new sound prefix path syntax.
;systemname = my_system_name    ; Prefix uniqueid with a system name for
                ; Global uniqueness issues.
;autosystemname = yes        ; Automatically set systemname to hostname,
                ; uses 'localhost' on failure, or systemname if
                ; set.
;mindtmfduration = 80        ; Set minimum DTMF duration in ms (default 80 ms)
                ; If we get shorter DTMF messages, these will be
                ; changed to the minimum duration
;maxcalls = 10            ; Maximum amount of calls allowed.
;maxload = 0.9            ; Asterisk stops accepting new calls if the
                ; load average exceed this limit.
;maxfiles = 1000        ; Maximum amount of openfiles.
;minmemfree = 1            ; In MBs, Asterisk stops accepting new calls if
                ; the amount of free memory falls below this
                ; watermark.
;cache_media_frames = yes    ; Cache media frames for performance
                ; Disable this option to help track down media frame
                ; mismanagement when using valgrind or MALLOC_DEBUG.
                ; The cache gets in the way of determining if the
                ; frame is used after being freed and who freed it.
                ; NOTE: This option has no effect when Asterisk is
                ; compiled with the LOW_MEMORY compile time option
                ; enabled because the cache code does not exist.
                ; Default yes
;cache_record_files = yes    ; Cache recorded sound files to another
                ; directory during recording.
;record_cache_dir = /tmp    ; Specify cache directory (used in conjunction
                ; with cache_record_files).
;transmit_silence = yes        ; Transmit silence while a channel is in a
                ; waiting state, a recording only state, or
                ; when DTMF is being generated.  Note that the
                ; silence internally is generated in raw signed
                ; linear format. This means that it must be
                ; transcoded into the native format of the
                ; channel before it can be sent to the device.
                ; It is for this reason that this is optional,
                ; as it may result in requiring a temporary
                ; codec translation path for a channel that may
                ; not otherwise require one.
;transcode_via_sln = yes    ; Build transcode paths via SLINEAR, instead of
                ; directly.
;runuser = asterisk        ; The user to run as.
;rungroup = asterisk        ; The group to run as.
;lightbackground = yes        ; If your terminal is set for a light-colored
                ; background.
;forceblackbackground = yes     ; Force the background of the terminal to be
                                ; black, in order for terminal colors to show
                                ; up properly.
;defaultlanguage = en           ; Default language
documentation_language = en_US    ; Set the language you want documentation
                ; displayed in. Value is in the same format as
                ; locale names.
;hideconnect = yes        ; Hide messages displayed when a remote console
                ; connects and disconnects.
;lockconfdir = no        ; Protect the directory containing the
                ; configuration files (/etc/asterisk) with a
                ; lock.
;stdexten = gosub        ; How to invoke the extensions.conf stdexten.
                ; macro - Invoke the stdexten using a macro as
                ;         done by legacy Asterisk versions.
                ; gosub - Invoke the stdexten using a gosub as
                ;         documented in extensions.conf.sample.
                ; Default gosub.
;live_dangerously = no        ; Enable the execution of 'dangerous' dialplan
                ; functions from external sources (AMI,
                ; etc.) These functions (such as SHELL) are
                ; considered dangerous because they can allow
                ; privilege escalation.
                ; Default no
;entityid=00:11:22:33:44:55    ; Entity ID.
                ; This is in the form of a MAC address.
                ; It should be universally unique.
                ; It must be unique between servers communicating
                ; with a protocol that uses this value.
                ; This is currently is used by DUNDi and
                ; Exchanging Device and Mailbox State
                ; using protocols: XMPP, Corosync and PJSIP.
;rtp_use_dynamic = yes          ; When set to "yes" RTP dynamic payload types
                                ; are assigned dynamically per RTP instance vs.
                                ; allowing Asterisk to globally initialize them
                                ; to pre-designated numbers (defaults to "yes").
;rtp_pt_dynamic = 35        ; Normally the Dynamic RTP Payload Type numbers
                ; are 96-127, which allow just 32 formats. The
                ; starting point 35 enables the range 35-63 and
                ; allows 29 additional formats. When you use
                ; more than 32 formats in the dynamic range and
                ; calls are not accepted by a remote
                ; implementation, please report this and go
                ; back to value 96.
;hide_messaging_ami_events = no;  This option, if enabled, will
                ; suppress all of the Message/ast_msg_queue channel's
                ; housekeeping AMI and ARI channel events.  This can
                ; reduce the load on the manager and ARI applications
                ; when the Digium Phone Module for Asterisk is in use.

; Changing the following lines may compromise your security.
;[files]
;astctlpermissions = 0660
;astctlowner = root
;astctlgroup = apache
;astctl = asterisk.ctl

Jeszcze takie coś znalazłem:

root@OpenWrt:~# asterisk -vvvc
Asterisk 18.5.1, Copyright (C) 1999 - 2021, Sangoma Technologies Corporation 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.
=========================================================================
Unable to open Asterisk database '/var/lib/asterisk/astdb.sqlite3': unable to open database file
ASTdb initialization failed.  ASTERISK EXITING!
root@OpenWrt:~#

10

Odp: OpenWRT 21.x x86, nie działa Asterisk, help :)

Możesz to po prostu włączyć w konfigu? Przecież jak zrobić default konfig to nie jest to włączone. I nie mieszaj do tego "oryginalny konfig , asterisk.conf" bo to nie ma nic wspólnego z konfiem uci który jest wykorzystywany przez skrypt startowy.

Jeszcze raz: nic nie rób, nie przywracaj konfigów, nie rób nic domyślnie, nie pokazuj bzdurnych rzeczy. Po prostu przestaw to zero na 1 w /etc/config/asterisk Tylko tyle zrób na początek.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

11

Odp: OpenWRT 21.x x86, nie działa Asterisk, help :)

Problem rozwiazany...

Ehhh wink

uci set asterisk.general.enabled='1' && uci commit

I reboot

12

Odp: OpenWRT 21.x x86, nie działa Asterisk, help :)

Małe OT:

Podziwiam Twoją nieskończoną cierpliwość Cezary. wink

Mam i używam: Fujitsu Futro S720, Netgear R6220, Unielec U7621-06, TP-Linki 1043 V1, V2, Linksysy EA7500v2, AeroHive AP350, Linksys EA8500, ZTE MF286d.
Mam: D-Linki DWR-921, DWR-118, DWR-116, TP-Link WDR-4900 v1, Checkpoint L-50, Linksysy 1900ACS, LB-Link BL-W1200,

13

Odp: OpenWRT 21.x x86, nie działa Asterisk, help :)

@Królik

Bo @Cezary to złoty człowiek smile

Szczerze, nie znam nikogo tak pomocnego jak on, jak to dobrze ze tacy ludzie są jeszcze na świecie, warto wtedy wierzyć w ludzi smile