Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asterisk module 1.5.1 not working for asterisk 16 #27

Closed
DRoet opened this issue Nov 2, 2018 · 5 comments
Closed

asterisk module 1.5.1 not working for asterisk 16 #27

DRoet opened this issue Nov 2, 2018 · 5 comments

Comments

@DRoet
Copy link

DRoet commented Nov 2, 2018

Hi Arsen,

edit: sorry I just realised I posted this in the wrong repo (I think), so feel free to move the issue using the new github feature if possible

Any plans to support asterisk 16 anytime soon? I tried installing the asterisk module (1.5.1) with asterisk 16 and got the following error stack:

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

Asterisk version.............. : 16.0.0
UniMRCP version............... : 1.5.0
UniMRCP modules version....... : 1.5.1

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

********************************************************************
Making all in res-speech-unimrcp
make[1]: Entering directory '/tmp/asterisk-unimrcp-1.5.1/res-speech-unimrcp'
  CC       res_speech_unimrcp.lo
In file included from /usr/include/asterisk.h:23:0,
                 from ../include/ast_compat_defs.h:30,
                 from res_speech_unimrcp.c:28:
res_speech_unimrcp.c: In function 'uni_recog_speech_result_build':
res_speech_unimrcp.c:778:27: error: 'Do_not_use_strdup__use_ast_strdup' undeclared (first use in this function)
     speech_result->text = strdup(text);
                           ^
res_speech_unimrcp.c:778:27: note: each undeclared identifier is reported only once for each function it appears in
Makefile:434: recipe for target 'res_speech_unimrcp.lo' failed
make[1]: Leaving directory '/tmp/asterisk-unimrcp-1.5.1/res-speech-unimrcp'
make[1]: *** [res_speech_unimrcp.lo] Error 1
Makefile:409: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

note: I tried the same thing on asterisk 15.6.1 and everything is working correctly

thank you,

Daan

@achaloyan achaloyan transferred this issue from unispeech/unimrcp Nov 2, 2018
@achaloyan
Copy link
Contributor

Hi Daan,

This issue is addressed in 0d08443 by using ast_strdup() instead of strdup(). The former is consistently available since Asterisk 1.8 at least.

UniMRCP modules now can be compiled as usual with Asterisk 16 too. I have not tried yet to run any tests, though.

Thanks,

@achaloyan achaloyan reopened this Nov 2, 2018
@DRoet
Copy link
Author

DRoet commented Nov 5, 2018

Hi Arsen,

I've tested the patch and it works! for what it is worth I've also used it together with the google dialogflow plugin and everything still works as expected.

Can we expect a patch release (1.5.2) soonish? I would rather use the tarball instead of pulling in the source directly

@achaloyan
Copy link
Contributor

Hi Daan,

As you may have noticed, unimrcp-deps-1.6.0 was release yesterday. A new unimrcp-1.6.0 is coming up soon.

There are some changes that would need to be implemented in the Asterisk modules before publishing a new release. I cannot provide any strict timelines, but expect the release to be available sometime in December.

@DRoet
Copy link
Author

DRoet commented Nov 8, 2018

Hi Arsen,

Thank you for the update, I appreciate the effort you put into this project

@achaloyan
Copy link
Contributor

This issue has been addressed in Asterisk modules 1.5.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants