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 17 support #40

Closed DRoet closed 4 years ago

DRoet commented 4 years ago

When I try to setup asterisk 17 with unimrcp I get the following error:

cd asterisk-unimrcp-1.5.2/
./configure
make
make install

....
configure: UniMRCP configuration
1.6.0
configure: Asterisk configuration
17.0.1
configure: error: Could not find asterisk.h, make sure Asterisk development package is installed
achaloyan commented 4 years ago

Ho did you install Asterisk 17. If you installed from source, then consider using make install-headers, which would install the missing header files.

In former versions of Asterisk, this directive is called implicitly with make install.

DRoet commented 4 years ago

ah gotcha. yeah I am installing from source so that's probably it, thanks!

hemant-saikia commented 3 years ago

configure: UniMRCP configuration 1.7.0 configure: Asterisk configuration 17.9.3 configure: error: Could not find asterisk.h, make sure Asterisk development package is installed

I am getting the same error. The file asterisk.h is present in /usr/include. But I still receive this error.

achaloyan commented 3 years ago

What is the full output of configure?

underport commented 1 year ago

configure: UniMRCP configuration 1.7.0 configure: Asterisk configuration 17.9.3 configure: error: Could not find asterisk.h, make sure Asterisk development package is installed

I am getting the same error. The file asterisk.h is present in /usr/include. But I still receive this error.

It's a common mistake when you don't set your asterisk source path correctly. You need to install "libsofia-sip-ua0" and you need to ensure the correct path in the config: Example: ENV Var: ASTERISK_VER=17.10.1 ASTERISK_CONFIGURED_PREFIX="Path prefix used in Asterisk installation"

./bootstrap
./configure --with-asterisk-version=${ASTERISK_VER} --with-asterisk=${ASTERISK_CONFIGURED_PREFIX}
make
make install

try it!