Asterisk-unimrcp 1.3.0

588 views
Skip to first unread message

Jason

unread,
Jun 2, 2016, 10:38:22 AM6/2/16
to UniMRCP
I loaded the latest version of asterisk-unimrcp-1.3.0 from their website. Everything seemed to compile fine and install.

app_unimrcp.so loads in Asterisk and runs fine.
res_speech_unimrcp.so doesn't load gives this error:

pbx*CLI> module load res_speech_unimrcp.so
Unable to load module res_speech_unimrcp.so
Command 'module load res_speech_unimrcp.so' failed.
[Jun 2 03:39:03] WARNING[28936]: loader.c:595 load_dynamic_module: Error loading module 'res_speech_unimrcp.so': /usr/lib/asterisk/modules/res_speech_unimrcp.so: undefined symbol: ast_speech_change_state
[Jun 2 03:39:03] WARNING[28936]: loader.c:1079 load_resource: Module 'res_speech_unimrcp.so' could not be loaded.

I also tried the 1.3.1 branch same result.

cheers,
Jason

viewb...@gmail.com

unread,
Jun 2, 2016, 12:40:35 PM6/2/16
to UniMRCP
This is my installation procedure, did you do a similar installation

cd /usr/src
wget http://www.unimrcp.org/project/component-view/unimrcp-deps-1-3-0-tar-gz/download –O unimrcp-deps-1.3.0.tar.gz
tar -zxvf unimrcp-deps-1.3.0.tar.gz
cd unimrcp-deps-1.3.0
./build-dep-libs.sh <y><y>

cd /usr/src
wget http://www.unimrcp.org/project/component-view/unimrcp-1-3-0-tar-gz/download -O unimrcp-1.3.0.tar.gz
tar -zxvf unimrcp-1.3.0.tar.gz
cd unimrcp-1.3.0
./bootstrap
./configure --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr \
--enable-flite-plugin --with-flite=/usr/src/flite-1.4-release \
--enable-pocketsphinx-plugin --with-sphinxbase=/usr/local/include/sphinxbase --with-pocketsphinx=/usr/local/include/pocketsphinx \
--with-sofia=/usr/local/include/sofia-sip-1.12
ldd /usr/local/unimrcp/lib/libunimrcpserver.so *** no such directory and file **** but foudn this one
ldd /usr/src/unimrcp-1.3.0/platforms/libunimrcp-server/.libs/libunimrcpserver.so
ldd /usr/local/unimrcp/lib/libunimrpclient.so *** no such directory and file **** but foudn this one
ldd /usr/src/unimrcp-1.3.0/platforms/libunimrcp-Client/.libs/libunimrcpclient.so

If libapr-1.so.0 points to anything besides /usr/local/apr/lib/libapr-1.so.0 run the following:

export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/apr/lib
make
make install

ldconfig
ldd /usr/local/unimrcp/bin/unimrcpserver
/usr/local/unimrcp/bin/unimrcpserver
quit

OR if this file is not available

/usr/src/unimrcp-1.3.0/platforms/unimrcp-server/unimrcpserver

for auto start add the following script

cp /usr/src/unimrcp-1.3.0/build/init.d/unimrcpserver /etc/init.d
chmod +x /etc/init.d/unimrcpserver
cd /etc/init.d
update-rc.d unimrcpserver defaults

OR if this file is not available create an unimrcpserver init file

nano /etc/init.d/unimrcp
#! /bin/bash
# UniMRCP init script
case "$1" in
  start)
    echo "Staring UniMRCP"
    /usr/local/unimrcp/bin/unimrcpserver -r /usr/local/unimrcp -d
    ;;
  stop)
    echo "Stopping UniMRCP"
    killall -9 unimrcpserver
    ;;
  *)
    echo "Expected start or stop as argument"
esac
exit 0
<CXYE>

chmod +x /etc/init.d/unimrcpserver
cd /etc/init.d
update-rc.d unimrcp defaults

cd /usr/src
wget http://www.unimrcp.org/project/component-view/asterisk-unimrcp-1-3-0-tar-gz/download -O asterisk-unimrcp-1.3.0.tar.gz
tar -zxvf asterisk-unimrcp-1.3.0.tar.gz
cd asterisk-unimrcp-1.3.0
./bootstrap
./configure --prefix=/usr/lib/asterisk/modules
make
make install

asterisk -rv
core restart now
module show like mrcp



Op donderdag 2 juni 2016 16:38:22 UTC+2 schreef JasonR:
Message has been deleted

JasonR

unread,
Jun 2, 2016, 3:18:15 PM6/2/16
to UniMRCP

Only difference I see is that when trying to build the asterisk-unimrcp it was missing the asterisk.h and other .h files from asterisk source. So I added them to the include. I then ran the configure with path to modules and make & make install. No errors. unimrcpserver is working. I can use the client to talk to it.

Asterisk still only has the app_mrcp running. just errors on the res_speech_unimrcp.so module 'res_speech_unimrcp.so': /usr/lib/asterisk/modules/res_speech_unimrcp.so: undefined symbol: ast_speech_change_state

JasonR

unread,
Jun 2, 2016, 3:31:25 PM6/2/16
to UniMRCP
Here is what I get if I use as you have defined without putting the asterisk headers in include.

root@pbx:/usr/src/asterisk-unimrcp-1.3.0# make
Making all in res-speech-unimrcp
make[1]: Entering directory '/usr/src/asterisk-unimrcp-1.3.0/res-speech-unimrcp'
CC res_speech_unimrcp.lo
In file included from res_speech_unimrcp.c:28:0:
../include/ast_compat_defs.h:30:22: fatal error: asterisk.h: No such file or directory
#include "asterisk.h"
^
compilation terminated.
Makefile:433: recipe for target 'res_speech_unimrcp.lo' failed
make[1]: *** [res_speech_unimrcp.lo] Error 1

I even removed it all and rebuild again. No errors until I get to this part. Which I can pass by adding includes, but that must not be what is wrong. I must be missing something.

JasonR

unread,
Jun 2, 2016, 7:23:02 PM6/2/16
to UniMRCP
I cleaned ldconfig of all .so related to everything. Then I pulled all code down again pjproject, unimrcp(dep|server) and asterisk. rebuild everything including asterisk. Then tried the asterisk-unimrcp from git.

Same error. builds no issue but when I run it just gives the same error:

WARNING[11765]: loader.c:595 load_dynamic_module: Error loading module 'res_speech_unimrcp.so': /usr/lib/asterisk/modules/res_speech_unimrcp.so: undefined symbol: ast_speech_change_state
[Jun 2 18:16:03] WARNING[11765]: loader.c:1079 load_resource: Module 'res_speech_unimrcp.so' could not be loaded.

app_unimrcp.so loads and is fine.

Any other ideas?

Arsen Chaloyan

unread,
Jun 28, 2016, 10:11:03 PM6/28/16
to UniMRCP
What version of Asterisk did you use. I didn't check, but reading your description, it appears there is a change in the Asterisk speech API causing the problem. You normally should not copy any header files manually. That was already a bad sign.


--
You received this message because you are subscribed to the Google Groups "UniMRCP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unimrcp+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Arsen Chaloyan
Author of UniMRCP
http://www.unimrcp.org
Reply all
Reply to author
Forward
0 new messages