LINUX.ORG.RU
ФорумAdmin

FUSIONPBX в Ubuntu. freeswitch.service: Failed

 , ,


0

1

Здравствуйте!
После установки скрипта FusionPBX из https://www.fusionpbx.com/download на Ubuntu 22.04.3 LTS,
и установки NGINX,
при попытке выполнения
systemctl start freeswitch выдается сообщение:

Job for freeswitch.service failed because the control process exited with error code.
See "systemctl status freeswitch.service" and "journalctl -xeu freeswitch.service" for details.

systemctl status freeswitch.service :

root@fpbxvm:~# systemctl status freeswitch
× freeswitch.service - freeswitch
     Loaded: loaded (/lib/systemd/system/freeswitch.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Wed 2023-09-27 18:19:01 MSK; 2min 24s ago
    Process: 452484 ExecStartPre=/bin/mkdir -p /var/run/freeswitch/ (code=exited, status=0/SUCCESS)
    Process: 452487 ExecStartPre=/bin/chown -R www-data:www-data /var/run/freeswitch/ (code=exited, status=0/SUCCESS)
    Process: 452488 ExecStart=/usr/bin/freeswitch -u www-data -g www-data -ncwait $DAEMON_OPTS (code=exited, status=203/EXEC)
        CPU: 5ms

сен 27 18:19:01 fpbxvm systemd[1]: freeswitch.service: Scheduled restart job, restart counter is at 5.
сен 27 18:19:01 fpbxvm systemd[1]: Stopped freeswitch.
сен 27 18:19:01 fpbxvm systemd[1]: freeswitch.service: Start request repeated too quickly.
сен 27 18:19:01 fpbxvm systemd[1]: freeswitch.service: Failed with result 'exit-code'.
сен 27 18:19:01 fpbxvm systemd[1]: Failed to start freeswitch.
root@fpbxvm:~# 

Как исправить?
Спасибо.


Встретилось сообщения от модератора на одном из зарубежных форумов с указанием использовать под FreeSwitch Debian[br]

В Debian’е ошибка - ругается на spandsp:[br] [code]

making all mod_spandsp make[4]: Entering directory ‘/usr/src/freeswitch-1.10.10.-release/src/mod/applications/mod_spandsp’ CC mod_spandsp_la-mod_spandsp_dsp.lo mod_spandsp_dsp.c: In function ‘get_v18_mode’: mod_spandsp_dsp.c:159:17: error: ‘V18_MODE_5BIT_4545’ undeclared (first use in this function)[br]

159 | int r = V18_MODE_5BIT_4545; | ^~~~~~~~~~~~~~~~~~ mod_spandsp_dsp.c:159:17: note: each undeclared identifier is reported only once for each function it appears in mod_spandsp_dsp.c:165:29: error: ‘V18_MODE_5BIT_50’ undeclared (first use in this function)[br]

165 | r = V18_MODE_5BIT_50; | ^~~~~~~~~~~~~~~~ mod_spandsp_dsp.c: In function ‘spandsp_tdd_send_session’: mod_spandsp_dsp.c:216:21: error: too few arguments to function ‘v18_init’

216 | tdd_state = v18_init(NULL, TRUE, get_v18_mode(session), V18_AUTOMODING_GLOBAL, put_text_msg, NULL); | ^~~~~~~~ In file included from /usr/local/include/spandsp.h:112, from mod_spandsp.h:50, from mod_spandsp_dsp.c:36: /usr/local/include/spandsp/v18.h:138:29: note: declared here

138 | SPAN_DECLARE(v18_state_t *) v18_init(v18_state_t *s, | ^~~~~~~~ mod_spandsp_dsp.c: In function ‘spandsp_tdd_encode_session’: mod_spandsp_dsp.c:263:26: error: too few arguments to function ‘v18_init’

263 | pvt->tdd_state = v18_init(NULL, TRUE, get_v18_mode(session), V18_AUTOMODING_GLOBAL, put_text_msg, NULL); | ^~~~~~~~ /usr/local/include/spandsp/v18.h:138:29: note: declared here

138 | SPAN_DECLARE(v18_state_t *) v18_init(v18_state_t *s, | ^~~~~~~~ mod_spandsp_dsp.c: In function ‘spandsp_tdd_decode_session’: mod_spandsp_dsp.c:341:26: error: too few arguments to function ‘v18_init’

341 | pvt->tdd_state = v18_init(NULL, FALSE, get_v18_mode(session), V18_AUTOMODING_GLOBAL, put_text_msg, pvt); | ^~~~~~~~ /usr/local/include/spandsp/v18.h:138:29: note: declared here

138 | SPAN_DECLARE(v18_state_t *) v18_init(v18_state_t *s, | ^~~~~~~~ make[4]: *** [Makefile:758: mod_spandsp_la-mod_spandsp_dsp.lo] Error 1 make[4]: Leaving directory ‘/usr/src/freeswitch-1.10.10.-release/src/mod/applications/mod_spandsp’ make[3]: *** [Makefile:725: mod_spandsp-all] Error 1 make[3]: Leaving directory ‘/usr/src/freeswitch-1.10.10.-release/src/mod’ make[2]: *** [Makefile:630: all-recursive] Error 1 make[2]: Leaving directory ‘/usr/src/freeswitch-1.10.10.-release/src’ make[1]: *** [Makefile:3552: all-recursive] Error 1 make[1]: Leaving directory ‘/usr/src/freeswitch-1.10.10.-release’ make: *** [Makefile:1280: all] Error 2 [/code][br]

Spandsp взят из https://github.com/freeswitch/spandsp.git

Спасибо.

Mihhas
() автор топика
Последнее исправление: Mihhas (всего исправлений: 4)