I'm guessing this may be a question for dev list, but wanted to try my luck here first. I'm trying to compile app_amd (Answering Machine Detection) against 1.2.7.1 and am getting some errors. I should point out that I simply snarfed app_amd.c from http://svn.digium.com/view/asterisk/trunk/apps/app_amd.c?rev=14714 ...so if there are other includes and such that are required, that would likely be the problem, but I was hoping someone may have a workaround for compiling amd in the current release as I can not run developmental branches. Here are the errors I get: gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE -O6 -march=k8 -DZAPTEL_OPTIMIZATIONS -m64 -fomit-frame-pointer -fPIC -c -o app_amd.o app_amd.c app_amd.c: In function `amd_exec': app_amd.c:321: dereferencing pointer to incomplete type app_amd.c:321: dereferencing pointer to incomplete type app_amd.c:321: dereferencing pointer to incomplete type app_amd.c:323: dereferencing pointer to incomplete type app_amd.c:323: dereferencing pointer to incomplete type app_amd.c:323: dereferencing pointer to incomplete type app_amd.c:323: dereferencing pointer to incomplete type app_amd.c: In function `unload_module': app_amd.c:384: dereferencing pointer to incomplete type app_amd.c:384: dereferencing pointer to incomplete type make[1]: *** [app_amd.o] Error 1 make[1]: Leaving directory `/root/ast/ast-latest/asterisk-1.2.7.1/apps' make: *** [subdirs] Error 1 Thanks, Josh McAllister
Josh McAllister wrote:> http://svn.digium.com/view/asterisk/trunk/apps/app_amd.c?rev=14714Applications from the development trunk should not be expected to compile against 1.2.x, since there have been API changes (among other things).
I have been able to compile app_amd against 1.2.4 and 1.2.6.
Here are the instructions we use:
- cd ../asterisk-1.2.6
- (1.2 tree) If you want to include Answering Machine Detection ability
you will need to download app_amd.c and amd.conf and alter the
apps/Makefile to compile it properly
- cd apps
- wget http://www.freedomphones.net/files/app_amd2.c
- mv app_amd2.c app_amd.c
- vi Makefile
replace this line(line 32):
app_mixmonitor.so app_stack.so
with this line:
app_mixmonitor.so app_stack.so app_amd.so
- wget http://www.freedomphones.net/files/amd2.conf
- mkdir /etc/asterisk
- mv amd2.conf /etc/asterisk/amd.conf
- cd ../
-(1.2 tree) apply the cli delimiter patch
- wget http://www.freedomphones.net/files/cli_chan_concise_delimiter.patch
- patch -p1 < ./cli_chan_concise_delimiter.patch
- File to patch: cli.c
- make clean
- make
- make install
MATT---
On 4/13/06, Kevin P. Fleming <kpfleming@digium.com>
wrote:> Josh McAllister wrote:
>
> > http://svn.digium.com/view/asterisk/trunk/apps/app_amd.c?rev=14714
>
> Applications from the development trunk should not be expected to
> compile against 1.2.x, since there have been API changes (among other
> things).
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>