unispeech / asterisk-unimrcp

UniMRCP modules for Asterisk
http://www.unimrcp.org/asterisk
GNU General Public License v2.0
48 stars 35 forks source link

Asterisk (in FreePBX environment) crashes #35

Closed agsfactory closed 4 years ago

agsfactory commented 5 years ago

ISSUE: When I install the packet asterisk-app-unimrcp my FreePBX (an Asterisk's based box) will be unstable: after a restart the asterisk process crasches continuosly I annex the printscreen of my last attempt to install UniMCRP software. I annex also the log file /var/log/asterisk/full

Please help me, thank

Regard B. Cerri

troubleshooting 2.txt full.zip

achaloyan commented 5 years ago

It looks like you installed asterisk-app-unimrcp module from UniMRCP repository, which is built against a different version of Asterisk not compatible with what comes with FreePBX.

In such a case, you definitely need to build the UniMRCP modules for Asterisk from source against the Asterisk devel package shipped with FreePBX. Download and extract the latest source package from http://unimrcp.org/project/component-view/asterisk and consider something like that.

yum install unimrcp-client-devel ./configure --with-unimrcp=/opt/unimrcp make make install

agsfactory commented 5 years ago

Good morning,

thank for your answer.

I have configured the package but now I have a problem with make.

I have already googled the issue but I haven’t solved.

Have you an idea?

Below my situation

Thank for your attention

King Regards

B. Cerri

Report of configure:

** REPORT **

Asterisk version.............. : 13.22.0

UniMRCP version............... : 1.6.0

UniMRCP modules version....... : 1.5.2

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

---- the make command doesn’t run

[root@srvlnxpbx01 asterisk-unimrcp-1.5.2]# make

Making all in res-speech-unimrcp

make[1]: Entering directory `/usr/src/asterisk-unimrcp-1.5.2/res-speech-unimrcp'

CC res_speech_unimrcp.lo

res_speech_unimrcp.c:30:1: error: expected declaration specifiers or ‘...’ before string constant

ASTERISK_REGISTER_FILE()

^

In file included from res_speech_unimrcp.c:28:0:

../include/ast_compat_defs.h:381:66: error: expected declaration specifiers or ‘...’ before string constant

define ASTERISK_REGISTER_FILE() ASTERISK_FILE_VERSION(FILE, "")

                                                              ^

res_speech_unimrcp.c:30:1: note: in expansion of macro ‘ASTERISK_REGISTER_FILE’

ASTERISK_REGISTER_FILE()

^

make[1]: *** [res_speech_unimrcp.lo] Error 1

make[1]: Leaving directory `/usr/src/asterisk-unimrcp-1.5.2/res-speech-unimrcp'

make: *** [all-recursive] Error 1

[root@srvlnxpbx01 asterisk-unimrcp-1.5.2]# make

Making all in res-speech-unimrcp

make[1]: Entering directory `/usr/src/asterisk-unimrcp-1.5.2/res-speech-unimrcp'

CC res_speech_unimrcp.lo

res_speech_unimrcp.c:30:1: error: expected declaration specifiers or ‘...’ before string constant

ASTERISK_REGISTER_FILE()

^

In file included from res_speech_unimrcp.c:28:0:

../include/ast_compat_defs.h:381:66: error: expected declaration specifiers or ‘...’ before string constant

define ASTERISK_REGISTER_FILE() ASTERISK_FILE_VERSION(FILE, "")

                                                              ^

res_speech_unimrcp.c:30:1: note: in expansion of macro ‘ASTERISK_REGISTER_FILE’

ASTERISK_REGISTER_FILE()

^

make[1]: *** [res_speech_unimrcp.lo] Error 1

make[1]: Leaving directory `/usr/src/asterisk-unimrcp-1.5.2/res-speech-unimrcp'

make: *** [all-recursive] Error 1

[root@srvlnxpbx01 asterisk-unimrcp-1.5.2]#

Da: Arsen Chaloyan [mailto:notifications@github.com] Inviato: mercoledì 10 luglio 2019 23:05 A: unispeech/unimrcp unimrcp@noreply.github.com Cc: agsvoice it-ts@ags-it.com; Author author@noreply.github.com Oggetto: Re: [unispeech/unimrcp] Asterisk (in FreePBX environment) crashes (#241)

It looks like you installed asterisk-app-unimrcp module from UniMRCP repository, which is built against a different version of Asterisk not compatible with what comes with FreePBX.

In such a case, you definitely need to build the UniMRCP modules for Asterisk from source against the Asterisk devel package shipped with FreePBX. Download and extract the latest source package from http://unimrcp.org/project/component-view/asterisk and consider something like that.

yum install unimrcp-client-devel ./configure --with-unimrcp=/opt/unimrcp make make install

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/unispeech/unimrcp/issues/241?email_source=notifications&email_token=AMSOPJRNCBLDO5BOCS3DGV3P6ZFIFA5CNFSM4H7P23JKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZUXQ4Y#issuecomment-510228595 , or mute the thread https://github.com/notifications/unsubscribe-auth/AMSOPJRQOHD2DKCVUTQ4AG3P6ZFIFANCNFSM4H7P23JA . https://github.com/notifications/beacon/AMSOPJXWZOK6SX6ZXHUQIJTP6ZFIFA5CNFSM4H7P23JKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZUXQ4Y.gif

achaloyan commented 5 years ago

The compiler complains regarding the following macro definition

../include/ast_compat_defs.h:381:66: error: expected declaration specifiers or ‘...’ before string constant #define ASTERISK_REGISTER_FILE() ASTERISK_FILE_VERSION(FILE, "")

which is generally not the case. Anyway, what if you change the macro located in the file:line specified above as follows instead?

define ASTERISK_REGISTER_FILE() ASTERISK_FILE_VERSION(FILE, NULL)