[Asterisk-bsd] Asterisk-addons mysql and uniqueid
michel
michel at seliverstoff.fr
Sat Dec 5 18:26:50 CST 2009
Hello,
I wanted to share this one because It may be usefull to someone. When a
call is recorded in the mysql cdr table it doesn't save the call
uniqueid. The asterisk add-on compilation directive
CFLAGS+=-DMYSQL_LOGUNIQUEID allows saving the uniqueid. but I wasn't
able to flip it during make so I made this little patch and wanted to
share it. It gives a WITH_LOGUNIQUEID option that I put in my make.conf.
I'd also love to improve it. For example I'd love to see the option
switch during the make config but don't really know how to do that.
Thanks
Michel
--- Makefile.orig Wed Feb 13 17:58:11 2008
+++ Makefile Thu Jan 29 20:28:46 2009
@@ -27,7 +27,11 @@
# Overwite config files on "make samples"
OVERWRITE:=y
-ASTCFLAGS+=-fPIC
+ASTCFLAGS+=-fPIC -I${PREFIX}/include
+
+ifeq (${WITH_LOGUNIQUEID},)
+ ASTCFLAGS+=-DMYSQL_LOGUNIQUEID
+endif
#NOISY_BUILD=yes
More information about the Asterisk-BSD
mailing list