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

Module load error src_short_to_float_array #9

Open
tootai opened this issue Feb 15, 2022 · 2 comments
Open

Module load error src_short_to_float_array #9

tootai opened this issue Feb 15, 2022 · 2 comments

Comments

@tootai
Copy link

tootai commented Feb 15, 2022

With asterisk-18.10 I get following error when loading the app_espeak.so module from zaf-Asterisk-eSpeak-7431b8d

[2022-02-15 14:11:22] ERROR[1698364]: loader.c:283 module_load_error: Error loading module 'app_espeak': /usr/lib/asterisk/modules/app_espeak.so: undefined symbol: src_short_to_float_array

Daniel

@tootai tootai changed the title Module load error Module load error src_short_to_float_array Feb 15, 2022
@tootai
Copy link
Author

tootai commented Aug 18, 2022

I made a mistake as I copy the espeak.c file in asterisk/apps directory. If I compile from src directory I see in ldd that all libraries are now well linked. The problem is that asterisk refuse to load the module, I get Module 'app_espeak.so' was not compiled with the same compile-time options as this version of Asterisk.
Any chance to get a positive result ?

@tootai
Copy link
Author

tootai commented Aug 19, 2022

WIth the help of Asterisk support, I got it work.

  1. modify app_espeak.c by adding before #include "asterisk.h"
    #define AST_MODULE_SELF_SYM __internal_app_espeak_self
  2. comment #define AST_MODULE "eSpeak"
  3. In apps/Makefile add at the end
    app_espeak.o: app_espeak.c
    CFLAGS+=-fPIC
    app_espeak.so: app_espeak.o
    LIBS+= -lespeak-ng -lsamplerate
    From now it compile without problem with all libraries, tested against asterisk 18.14.0.

But now we also face the second opened bug, it works one time, next tests there is no audio and channel never hang up even with channel request hangup. Only way to destroy it is an asterisk restart

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

1 participant