Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Build Single Asterisk Module

This is how to build a single asterisk module, so that you don't have to rebuild all of Asterisk on a FreePBX system for a single module

Please note that the the following must have been run previously on your system for this to work. 

./configure
make menuselect
make

Add this to the top of your C file:

#ifndef AST_MODULE
#define AST_MODULE "app_confbridge"
#endif

Then use this compile string

gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686 -fomit-frame-pointer -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO -fPIC -c -o app_confbridge.o app_confbridge.c

Now link the objects

gcc -shared -Xlinker -x -o app_confbridge.so app_confbridge.o

  • No labels