Installing UniMRCP on XCALLY V2 Motion System

Installation script (recommended)

curl --silent --location https://provisioning.xcally.com/files/packages/motion2/patch/ast_mrcp_install | bash



Manual Procedure (for expert users)

Here you find how to install UniMRCP on XCALLY Motion Server.


If not present, install sudo

yum install sudo




Step 1: Download Components

cd /usr/local/src/

wget https://provisioning.xcally.com/files/packages/motion2/MRCP/unimrcp-deps-1.6.0.tar.gz

wget https://provisioning.xcally.com/files/packages/motion2/MRCP/unimrcp-1-7-0.tar.gz

wget https://provisioning.xcally.com/files/packages/motion2/MRCP/asterisk-unimrcp-1-7-0.tar.gz


Step2: Install APR library and Sofia-SIP

tar xvzf unimrcp-deps-1.6.0.tar.gz

cd unimrcp-deps-1.6.0


Run "UniMRCP Dependencies Builder" and follow the instructions to install APR lib and Sofia-SIP. Make note of the APR installation directory:

./build-dep-libs.sh


==================== UniMRCP Dependencies Builder ====================


Install libraries............... : yes

APR installation directory...... : /usr/local/apr

Sofia-SIP installation directory : /usr/local


Operation mode.................. : interactive


======================================================================


Do you want to build APR libraries (y/n)?

y


Step 3. Install UniMRCP

cd ..

tar xvzf unimrcp-1-7-0.tar.gz

cd unimrcp-1.7.0/

./bootstrap


Run the configure script by setting the correct APR path

./configure --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr


You should see a summary report similar to this:


****************************** REPORT ******************************


UniMRCP version............... : 1.5.0


APR version................... : 1.5.2

APR-util version.............. : 1.5.4

Sofia-SIP version............. : 1.12.11-234-gd74df2e


Compiler...................... : gcc

Compiler flags................ : -g -O2 -pthread

Preprocessor definitions...... : -DLINUX -D_REENTRANT -D_GNU_SOURCE

Linker flags.................. :


UniMRCP client lib............ : yes

Sample UniMRCP client app..... : yes

Sample UMC C++ client app..... : yes

Misc ASR client lib and app... : yes


UniMRCP server lib............ : yes

UniMRCP server app............ : yes


Demo synthesizer plugin....... : yes

Demo recognizer plugin........ : yes

Demo verifier plugin.......... : yes

Recorder plugin............... : yes


Installation layout........... : classic

Installation directory........ : /usr/local/unimrcp


********************************************************************


Now build the modules

make

make install


Step 4. Install asterisk-unimrcp modules

cd ..

tar xvzf asterisk-unimrcp-1-7-0.tar.gz

cd asterisk-unimrcp-1.7.0

./bootstrap


Run the configure script by setting the correct asterisk modules path

./configure --prefix=/usr/lib/asterisk/modules


You should see a summary report similar to this:


****************************** REPORT ******************************


Asterisk version.............. : 13.16.0

UniMRCP version............... : 1.5.0

UniMRCP modules version....... : 1.5.0


Compiler...................... : gcc

Compiler flags................ : -g -O2

Preprocessor definitions...... :

Linker flags.................. :


Modules install path...........: /usr/lib/asterisk/modules

Configuration install path.....: /etc/asterisk

XML doc install path...........: /var/lib/asterisk/documentation/thirdparty


Speech resource module.........: yes

Application module.............: yes


********************************************************************


Now build the asterisk modules


make

make install


Set the correct owner to modules and config files

chown asterisk:asterisk /usr/lib/asterisk/modules/*unimrcp*

chown asterisk:asterisk /etc/asterisk/*mrcp*



Restart Asterisk and verify that the unimrcp modules are loaded:


MotionV2*CLI> module show like mrcp

Module                         Description                              Use Count  Status      Support Level

app_unimrcp.so                 MRCP suite of applications               0          Running           unknown

res_speech_unimrcp.so          UniMRCP Speech Engine                    0          Running              core

2 modules loaded

MotionV2*CLI>