signalwire / freeswitch

FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to a versatile software implementation that runs on any commodity hardware. From a Raspberry PI to a multi-core server, FreeSWITCH can unlock the telecommunications potential of any device.
https://freeswitch.com/#getting-started
Other
3.49k stars 1.4k forks source link

Mod_Unimrcp is not getting compiled and loaded in freeswitch #2405

Open ackris opened 6 months ago

ackris commented 6 months ago

Describe the bug We have followed the process mod_unimrcp provisioning/installation process. Despite this, we are not finding mod_unimrcp in /mod directory.

To Reproduce Steps to reproduce the behavior:

  1. Follow the steps as mentioned in mod_unimrcp installation manual (unimrcp server with MRCP v2)
  2. mod_unimrcpis not there in mod directory.

Expected behavior Mod_unimrcp must have been loaded successfully.

Package version or git hash

Trace logs

freeswitch@freeswitch> load mod_unimrcp
+OK Reloading XML
-ERR [module load file routine returned an error]

2024-03-11 12:48:28.813235 99.43% [INFO] switch_stun.c:911 External ip address detected using STUN: 57.151.xx.xxx
2024-03-11 12:48:29.013241 99.43% [INFO] switch_stun.c:911 External ip address detected using STUN: 57.151.xx.xxx
2024-03-11 12:48:29.053243 99.43% [INFO] mod_enum.c:884 ENUM Reloaded
2024-03-11 12:48:29.053243 99.43% [CRIT] switch_loadable_module.c:1754 Error Loading module /usr/local/freeswitch/mod/mod_unimrcp.so
**/usr/local/freeswitch/mod/mod_unimrcp.so: cannot open shared object file: No such file or directory**
2024-03-11 12:48:29.053243 99.43% [INFO] switch_time.c:1433 Timezone reloaded 597 definitions
freeswitch@freeswitch> module_exists mod_unimrcp
false

root@freeswitch:/usr/src/freeswitch# pwd
/usr/src/freeswitch
root@freeswitch:/usr/src/freeswitch# ls -al
total 397020
drwxr-xr-x 26 root root      4096 Mar 11 11:22 .
drwxr-xr-x  3 root root      4096 Mar 11 04:49 ..
-rw-r--r--  1 root root      1919 Mar 11 04:49 .clang-format
-rw-r--r--  1 root root      6683 Mar 11 04:49 .drone.yml
drwxr-xr-x  8 root root      4096 Mar 11 04:49 .git
-rw-r--r--  1 root root       724 Mar 11 04:49 .gitattributes
-rw-r--r--  1 root root       243 Mar 11 04:49 .gitconfig
drwxr-xr-x  3 root root      4096 Mar 11 04:49 .github
-rw-r--r--  1 root root      6252 Mar 11 04:49 .gitignore
drwxr-xr-x  2 root root      4096 Mar 11 11:12 .libs
-rw-r--r--  1 root root       181 Mar 11 04:49 .mailmap
-rw-r--r--  1 root root      3112 Mar 11 04:50 AUTHORS
-rw-r--r--  1 root root     30352 Mar 11 04:50 COPYING
-rw-r--r--  1 root root    291208 Mar 11 04:50 ChangeLog
-rw-r--r--  1 root root    209911 Mar 11 04:49 Freeswitch.2017.sln
-rw-r--r--  1 root root      1729 Mar 11 04:49 Freeswitch.2017.sln.bat
-rw-r--r--  1 root root      9273 Mar 11 04:49 INSTALL
-rw-r--r--  1 root root     82397 Mar 11 04:49 LICENSE
-rw-r--r--  1 root root    354111 Mar 11 04:50 Makefile
-rw-r--r--  1 root root     28643 Mar 11 04:49 Makefile.am
-rw-r--r--  1 root root    388734 Mar 11 04:50 Makefile.in
-rw-r--r--  1 root root         0 Mar 11 04:50 NEWS
-rw-r--r--  1 root root         0 Mar 11 04:50 README
-rw-r--r--  1 root root      3687 Mar 11 04:49 README.md
-rw-r--r--  1 root root       393 Mar 11 04:49 SECURITY.md
-rw-r--r--  1 root root       711 Mar 11 04:49 acinclude.m4
-rw-r--r--  1 root root    373139 Mar 11 04:50 aclocal.m4
-rwxr-xr-x  1 root root      7755 Mar 11 04:49 bootstrap.sh
drwxr-xr-x  5 root root      4096 Mar 11 04:52 build
-rwxr-xr-x  1 root root       257 Mar 11 04:49 cc.sh
drwxr-xr-x  3 root root      4096 Mar 11 04:49 clients
-rw-r--r--  1 root root      2120 Mar 11 04:49 cluecon.tmpl
-rw-r--r--  1 root root      2120 Mar 11 04:49 cluecon2.tmpl
-rw-r--r--  1 root root       545 Mar 11 04:49 cluecon2_small.tmpl
-rw-r--r--  1 root root       528 Mar 11 04:49 cluecon_small.tmpl
drwxr-xr-x  2 root root      4096 Mar 11 04:49 cmake_modules
drwxr-xr-x 10 root root      4096 Mar 11 04:49 conf
-rw-r--r--  1 root root    224261 Mar 11 04:51 config.log
-rwxr-xr-x  1 root root    119721 Mar 11 04:50 config.status
-rwxr-xr-x  1 root root   1219399 Mar 11 04:50 configure
-rw-r--r--  1 root root     89288 Mar 11 04:49 configure.ac
drwxr-xr-x  3 root root      4096 Mar 11 04:49 debian
-rwxr-xr-x  1 root root       102 Mar 11 04:49 devel-bootstrap.sh
drwxr-xr-x  6 root root      4096 Mar 11 04:49 docker
drwxr-xr-x  4 root root      4096 Mar 11 04:49 docs
drwxr-xr-x  2 root root      4096 Mar 11 04:49 dtd
drwxr-xr-x  2 root root      4096 Mar 11 04:49 fonts
-rwxr-xr-x  1 root root      6328 Mar 11 11:12 freeswitch
-rw-r--r--  1 root root      8109 Mar 11 04:49 freeswitch-config-rayo.spec
-rw-r--r--  1 root root     15047 Mar 11 04:49 freeswitch-sounds-en-ca-june.spec
-rw-r--r--  1 root root     15353 Mar 11 04:49 freeswitch-sounds-en-us-allison.spec
-rw-r--r--  1 root root  36555586 Aug  5  2022 freeswitch-sounds-en-us-callie-16000-1.0.53.tar.gz
-rw-r--r--  1 root root  71798716 Aug  5  2022 freeswitch-sounds-en-us-callie-32000-1.0.53.tar.gz
-rw-r--r--  1 root root 103523005 Aug  5  2022 freeswitch-sounds-en-us-callie-48000-1.0.53.tar.gz
-rw-r--r--  1 root root  18347808 Aug  5  2022 freeswitch-sounds-en-us-callie-8000-1.0.53.tar.gz
-rw-r--r--  1 root root     17126 Mar 11 04:49 freeswitch-sounds-en-us-callie.spec
-rw-r--r--  1 root root     15772 Mar 11 04:49 freeswitch-sounds-fr-ca-june.spec
-rw-r--r--  1 root root  27991592 Aug 19  2016 freeswitch-sounds-music-16000-1.0.52.tar.gz
-rw-r--r--  1 root root  53007947 Aug 19  2016 freeswitch-sounds-music-32000-1.0.52.tar.gz
-rw-r--r--  1 root root  75551487 Aug 19  2016 freeswitch-sounds-music-48000-1.0.52.tar.gz
-rw-r--r--  1 root root  14620675 Aug 19  2016 freeswitch-sounds-music-8000-1.0.52.tar.gz
-rw-r--r--  1 root root      4950 Mar 11 04:49 freeswitch-sounds-music.spec
-rw-r--r--  1 root root     15314 Mar 11 04:49 freeswitch-sounds-pt-BR-karina.spec
-rw-r--r--  1 root root     15716 Mar 11 04:49 freeswitch-sounds-ru-RU-elena.spec
-rw-r--r--  1 root root     14672 Mar 11 04:49 freeswitch-sounds-sv-se-jakob.spec
-rw-r--r--  1 root root    105967 Mar 11 04:49 freeswitch.spec
-rwxr-xr-x  1 root root    456584 Mar 11 04:55 fs_cli
-rwxr-xr-x  1 root root      6318 Mar 11 11:12 fs_encode
-rwxr-xr-x  1 root root    375136 Mar 11 04:55 fs_ivrd
-rwxr-xr-x  1 root root      6288 Mar 11 11:12 fs_tts
drwxr-xr-x  7 root root      4096 Mar 11 04:49 fscomm
drwxr-xr-x  3 root root      4096 Mar 11 04:49 htdocs
drwxr-xr-x  2 root root      4096 Mar 11 04:49 images
-rw-r--r--  1 root root      1132 Mar 11 11:12 libfreeswitch.la
-rw-r--r--  1 root root       923 Mar 11 04:54 libfreeswitch_libyuv.la
drwxr-xr-x 16 root root      4096 Mar 11 04:49 libs
-rwxr-xr-x  1 root root    348208 Mar 11 04:50 libtool
drwxr-xr-x  4 root root      4096 Mar 11 11:23 mod_unimrcp
-rw-r--r--  1 root root      4062 Mar 11 11:12 modules.conf
-rw-r--r--  1 root root       941 Mar 11 04:49 msbuild.cmd
drwxr-xr-x 15 root root      4096 Mar 11 04:55 scripts
drwxr-xr-x  6 root root     12288 Mar 11 04:55 src
drwxr-xr-x  3 root root      4096 Mar 11 04:49 support-d
-rw-r--r--  1 root root       103 Mar 11 04:49 swig_common.i
drwxr-xr-x  3 root root      4096 Mar 11 04:49 tests
-rwxr-xr-x  1 root root      6308 Mar 11 11:12 tone2wav
drwxr-xr-x  5 root root      4096 Mar 11 04:49 w32
drwxr-xr-x  4 root root      4096 Mar 11 04:49 web
drwxr-xr-x  2 root root      4096 Mar 11 04:49 yum
root@freeswitch:/usr/src/freeswitch# cat modules.conf
#applications/mod_abstraction
applications/mod_av
#applications/mod_avmd
#applications/mod_bert
#applications/mod_blacklist
#applications/mod_callcenter
#applications/mod_cidlookup
#applications/mod_cluechoo
applications/mod_commands
applications/mod_conference
#applications/mod_curl
#applications/mod_cv
applications/mod_db
#applications/mod_directory
#applications/mod_distributor
applications/mod_dptools
#applications/mod_easyroute
applications/mod_enum
applications/mod_esf
#applications/mod_esl
applications/mod_expr
applications/mod_fifo
#applications/mod_fsk
applications/mod_fsv
applications/mod_hash
#applications/mod_hiredis
applications/mod_httapi
#applications/mod_http_cache
#applications/mod_ladspa
#applications/mod_lcr
#applications/mod_memcache
#applications/mod_mongo
#applications/mod_mp4
#applications/mod_mp4v2
#applications/mod_nibblebill
#applications/mod_oreka
#applications/mod_osp
#applications/mod_prefix
#applications/mod_rad_auth
#applications/mod_redis
#applications/mod_rss
applications/mod_signalwire
applications/mod_sms
#applications/mod_sms_flowroute
#applications/mod_snapshot
#applications/mod_snom
#applications/mod_sonar
#applications/mod_soundtouch
applications/mod_spandsp
#applications/mod_spy
#applications/mod_stress
applications/mod_test
#applications/mod_translate
applications/mod_valet_parking
#applications/mod_video_filter
#applications/mod_vmd
applications/mod_voicemail
#applications/mod_voicemail_ivr
#asr_tts/mod_cepstral
#asr_tts/mod_flite
#asr_tts/mod_pocketsphinx
#asr_tts/mod_tts_commandline
asr_tts/mod_unimrcp|https://github.com/freeswitch/mod_unimrcp.git -b master
codecs/mod_amr
#codecs/mod_amrwb
codecs/mod_b64
#codecs/mod_bv
#codecs/mod_clearmode
#codecs/mod_codec2
#codecs/mod_com_g729
#codecs/mod_dahdi_codec
codecs/mod_g723_1
codecs/mod_g729
codecs/mod_h26x
#codecs/mod_ilbc
#codecs/mod_isac
#codecs/mod_mp4v
codecs/mod_opus
#codecs/mod_sangoma_codec
#codecs/mod_silk
#codecs/mod_siren
#codecs/mod_theora
#databases/mod_mariadb
databases/mod_pgsql
dialplans/mod_dialplan_asterisk
#dialplans/mod_dialplan_directory
dialplans/mod_dialplan_xml
#directories/mod_ldap
#endpoints/mod_alsa
#endpoints/mod_gsmopen
#endpoints/mod_h323
#endpoints/mod_khomp
endpoints/mod_loopback
#endpoints/mod_opal
#endpoints/mod_portaudio
endpoints/mod_rtc
#endpoints/mod_rtmp
endpoints/mod_skinny
endpoints/mod_sofia
endpoints/mod_verto
#event_handlers/mod_amqp
event_handlers/mod_cdr_csv
#event_handlers/mod_cdr_mongodb
#event_handlers/mod_cdr_pg_csv
event_handlers/mod_cdr_sqlite
#event_handlers/mod_erlang_event
#event_handlers/mod_event_multicast
event_handlers/mod_event_socket
#event_handlers/mod_fail2ban
#event_handlers/mod_format_cdr
#event_handlers/mod_json_cdr
#event_handlers/mod_radius_cdr
#event_handlers/mod_odbc_cdr
#event_handlers/mod_kazoo
#event_handlers/mod_rayo
#event_handlers/mod_smpp
#event_handlers/mod_snmp
#event_handlers/mod_event_zmq
#formats/mod_imagick
formats/mod_local_stream
formats/mod_native_file
formats/mod_png
#formats/mod_portaudio_stream
#formats/mod_shell_stream
#formats/mod_shout
formats/mod_sndfile
#formats/mod_ssml
formats/mod_tone_stream
#formats/mod_vlc
#formats/mod_opusfile
#languages/mod_basic
#languages/mod_java
languages/mod_lua
#languages/mod_managed
#languages/mod_perl
#languages/mod_python
#languages/mod_python3
#languages/mod_v8
#languages/mod_yaml
loggers/mod_console
#loggers/mod_graylog2
loggers/mod_logfile
loggers/mod_syslog
#loggers/mod_raven
say/mod_say_de
say/mod_say_en
say/mod_say_es
say/mod_say_es_ar
say/mod_say_fa
say/mod_say_fr
say/mod_say_he
say/mod_say_hr
say/mod_say_hu
say/mod_say_it
say/mod_say_ja
say/mod_say_nl
say/mod_say_pl
say/mod_say_pt
say/mod_say_ru
say/mod_say_sv
say/mod_say_th
say/mod_say_zh
#timers/mod_posix_timer
#timers/mod_timerfd
xml_int/mod_xml_cdr
#xml_int/mod_xml_curl
#xml_int/mod_xml_ldap
#xml_int/mod_xml_radius
xml_int/mod_xml_rpc
xml_int/mod_xml_scgi
#mod_freetdm|https://github.com/freeswitch/freetdm.git -b master

This asr_tts/mod_unimrcp|https://github.com/freeswitch/mod_unimrcp.git -b master was not there after installation of freeswitch. Hence, I had to add this entry in modules.conf. When i had executed make install/make install all, mod_unimrcp is not compiled and not installed mod directory.

Note: mrcp_profiles folder, unimrcp.conf.xml file was not there post installation of freeswitch. Had to manually create them.

This is definitely a bug or the documentation is not proper. Please guide here.

seven1240 commented 6 months ago

Try to run ./configure or event ./bootstrap.sh again.

Or can you try follow the readme in https://github.com/freeswitch/mod_unimrcp to build the module standalone?