Freeswitch does not start

i am running Openwrt 23.05.4 in a X86 installation and i have installed Freeswitch. Unfortunately it does not start the console when issuing fs_cli .
The packages that i have installed

root@OpenWrt:~# opkg list | grep freeswitch
freeswitch - 1.10.11-1
freeswitch-lang-en - 1.10.11-1
freeswitch-mod-bcg729 - 2017-06-29-686eb06d-1
freeswitch-mod-cdr-csv - 1.10.11-1
freeswitch-mod-g729 - 1.10.11-1
freeswitch-mod-hash - 1.10.11-1
freeswitch-mod-native-file - 1.10.11-1
freeswitch-mod-say-en - 1.10.11-1
freeswitch-mod-shout - 1.10.11-1
freeswitch-mod-sndfile - 1.10.11-1
freeswitch-mod-sofia - 1.10.11-1
freeswitch-mod-spandsp - 1.10.11-1
freeswitch-mod-xml-cdr - 1.10.11-1
freeswitch-util-fs-cli - 1.10.11-1
freeswitch-util-fs-encode - 1.10.11-1
freeswitch-util-fs-ivrd - 1.10.11-1
freeswitch-util-fs-tts - 1.10.11-1
freeswitch-util-tone2wav - 1.10.11-1
root@OpenWrt:~#

when trying to connect to console:

root@OpenWrt:~# fs_cli
[ERROR] fs_cli.c:1699 main() Error Connecting []
Usage: fs_cli [-H <host>] [-P <port>] [-p <secret>] [-d <level>] [-x command] [-t <timeout_ms>] [profile]

  -?,-h --help                    Usage Information
  -H, --host=hostname             Host to connect
  -P, --port=port                 Port to connect (1 - 65535)
  -u, --user=user@domain          user@domain
  -p, --password=password         Password
  -i, --interrupt                 Allow Control-c to interrupt
  -x, --execute=command           Execute Command and Exit
  -l, --loglevel=command          Log Level
  -U, --log-uuid                  Include UUID in log output
  -S, --log-uuid-short            Include shortened UUID in log output
  -q, --quiet                     Disable logging
  -r, --retry                     Retry connection on failure
  -R, --reconnect                 Reconnect if disconnected
  -d, --debug=level               Debug Level (0 - 7)
  -b, --batchmode                 Batch mode
  -t, --timeout                   Timeout for API commands (in milliseconds)
  -T, --connect-timeout           Timeout for socket connection (in milliseconds)
  -n, --no-color                  Disable color
  -s, --set-log-uuid              Set UUID to filter log events

root@OpenWrt:~#

Please read wiki page.

i did. it stated to edit the /etc/config/freeswitch. Here is my config:

config freeswitch 'general'
        option enabled '1'
        option log_stderr '1'
        option log_stdout '1'
        option options '-nonat -np'
        #option term_timeout '10' # seconds to wait after sending TERM signal

config freeswitch 'directories'
        option cache '/tmp/freeswitch/cache'
        option db '/tmp/freeswitch/db'
        option log '/tmp/freeswitch/log'
        option recordings '/tmp/freeswitch/recordings'
        option storage '/tmp/freeswitch/storage'
        option temp '/tmp/freeswitch/temp'

config freeswitch 'hotplug'
        #option interface 'wan'
        #option mount_point '/mnt/usb'
        option ntpd '0'
        option timeout '60'

and we would know this how ?

any hints?

so wiki instructions followed, config is already there. What am i missing? Anyone that has any ideas?

A module to support fs_cli, as described in wiki page.

@brada4
Not sure i follow what you mean

OK, go follow wiki page for starters.
https://openwrt.org/docs/guide-user/services/voip/freeswitch#freeswitch_packages
image

i am afraid i did not manage to connect to the the service.

root@OpenWrt:~# /etc/init.d/freeswitch status
running
root@OpenWrt:~#

and trying to

root@OpenWrt:~# freeswitch
ERROR: Failed to set SCHED_FIFO scheduler (Function not implemented)
ERROR: Failed to set SCHED_OTHER scheduler (Function not implemented)
2024-09-17 11:12:35.284197 0.00% [INFO] switch_event.c:714 Activate Eventing Engine.
2024-09-17 11:12:35.297717 0.00% [WARNING] switch_event.c:685 Create additional event dispatch thread 0
2024-09-17 11:12:35.298215 0.00% [ERR] switch_xml.c:1439 Couldn't open /etc/freeswitch/freeswitch.xml (No such file or directory)
Cannot Initialize [Cannot Open log directory or XML Root!]
root@OpenWrt:~#

and

root@OpenWrt:~# fs_cli
[ERROR] fs_cli.c:1699 main() Error Connecting []
Usage: fs_cli [-H <host>] [-P <port>] [-p <secret>] [-d <level>] [-x command] [-t <timeout_ms>] [profile]

  -?,-h --help                    Usage Information
  -H, --host=hostname             Host to connect
  -P, --port=port                 Port to connect (1 - 65535)
  -u, --user=user@domain          user@domain
  -p, --password=password         Password
  -i, --interrupt                 Allow Control-c to interrupt
  -x, --execute=command           Execute Command and Exit
  -l, --loglevel=command          Log Level
  -U, --log-uuid                  Include UUID in log output
  -S, --log-uuid-short            Include shortened UUID in log output
  -q, --quiet                     Disable logging
  -r, --retry                     Retry connection on failure
  -R, --reconnect                 Reconnect if disconnected
  -d, --debug=level               Debug Level (0 - 7)
  -b, --batchmode                 Batch mode
  -t, --timeout                   Timeout for API commands (in milliseconds)
  -T, --connect-timeout           Timeout for socket connection (in milliseconds)
  -n, --no-color                  Disable color
  -s, --set-log-uuid              Set UUID to filter log events

root@OpenWrt:~#

no luck so far.
i would appreciate some help please.

looks kinda important, doesn't it ?

Is the control socket on port 8021 open? Is it listening on something other than 127.0.0.1 or being blocked by the firewall ?

It looks like you are missing the main configuration file, /etc/freeswitch/freeswitch.xml