Merge "utils: Remove trailing whitespace"
authorJoshua Colp <jcolp@digium.com>
Mon, 11 May 2015 19:43:01 +0000 (14:43 -0500)
committerGerrit Code Review <gerrit2@gerrit.digium.api>
Mon, 11 May 2015 19:43:05 +0000 (14:43 -0500)
configs/basic-pbx/extensions.conf
include/asterisk/astmm.h
res/res_fax_spandsp.c

index d7fd2c3..e1da261 100644 (file)
@@ -145,9 +145,9 @@ exten = _25655511XX,1,Verbose(1, "External caller dialed inbound to DID ${EXTEN}
 [Main-IVR]
 exten = 2565551100,1,Verbose(1, "New caller, ${CALLERID(num)} dialed into the IVR.")
  same = n,Answer()
- same = n(start),Background(demo-congrats)
+ same = n(start),Background(basic-pbx-ivr-main)
  same = n,WaitExten(10)
- same = n,Background(demo-congrats)
+ same = n,Background(basic-pbx-ivr-main)
  same = n,Hangup()
 
 exten = 0,1,Verbose(1, "Caller ${CALLERID(num)} dialed the operator.")
index 6086509..1d778d4 100644 (file)
@@ -95,21 +95,21 @@ void __ast_mm_init_phase_2(void);
        __ast_vasprintf(a,b,c,__FILE__, __LINE__, __PRETTY_FUNCTION__)
 #else
 #define calloc(a,b) \
-       Do_not_use_calloc__use_ast_calloc(a,b)
+       Do_not_use_calloc__use_ast_calloc->fail(a,b)
 #define malloc(a) \
-       Do_not_use_malloc__use_ast_malloc(a)
+       Do_not_use_malloc__use_ast_malloc->fail(a)
 #define free(a) \
-       Do_not_use_free__use_ast_free_or_ast_std_free_for_remotely_allocated_memory(a)
+       Do_not_use_free__use_ast_free_or_ast_std_free_for_remotely_allocated_memory->fail(a)
 #define realloc(a,b) \
-       Do_not_use_realloc__use_ast_realloc(a,b)
+       Do_not_use_realloc__use_ast_realloc->fail(a,b)
 #define strdup(a) \
-       Do_not_use_strdup__use_ast_strdup(a)
+       Do_not_use_strdup__use_ast_strdup->fail(a)
 #define strndup(a,b) \
-       Do_not_use_strndup__use_ast_strndup(a,b)
+       Do_not_use_strndup__use_ast_strndup->fail(a,b)
 #define asprintf(a, b, c...) \
-       Do_not_use_asprintf__use_ast_asprintf(a,b,c)
+       Do_not_use_asprintf__use_ast_asprintf->fail(a,b,c)
 #define vasprintf(a,b,c) \
-       Do_not_use_vasprintf__use_ast_vasprintf(a,b,c)
+       Do_not_use_vasprintf__use_ast_vasprintf->fail(a,b,c)
 #endif
 
 /* Provide our own definitions */
index 288f91d..4249227 100644 (file)
        <support_level>extended</support_level>
 ***/
 
-#include "asterisk.h"
-
-ASTERISK_REGISTER_FILE()
-
+/* Include spandsp headers before asterisk.h so the inline functions can continue using
+ * malloc and free, even with MALLOC_DEBUG enabled. */
 #define SPANDSP_EXPOSE_INTERNAL_STRUCTURES
 #include <spandsp.h>
 #include <spandsp/version.h>
 
+#include "asterisk.h"
+
+ASTERISK_REGISTER_FILE()
+
 #include "asterisk/logger.h"
 #include "asterisk/module.h"
 #include "asterisk/strings.h"