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
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
Asterisk-BSD mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-bsd