[asterisk-commits] rmudgett: branch rmudgett/ss7_27_knk r377905 - in /team/rmudgett/ss7_27_knk: ...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Dec 11 16:29:02 CST 2012
Author: rmudgett
Date: Tue Dec 11 16:28:59 2012
New Revision: 377905
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=377905
Log:
Fix automerge.
Added:
team/rmudgett/ss7_27_knk/include/asterisk/uuid.h
- copied unchanged from r377884, trunk/include/asterisk/uuid.h
team/rmudgett/ss7_27_knk/main/uuid.c
- copied unchanged from r377884, trunk/main/uuid.c
team/rmudgett/ss7_27_knk/tests/test_uuid.c
- copied unchanged from r377884, trunk/tests/test_uuid.c
Modified:
team/rmudgett/ss7_27_knk/ (props changed)
team/rmudgett/ss7_27_knk/configure
team/rmudgett/ss7_27_knk/configure.ac
team/rmudgett/ss7_27_knk/include/asterisk/autoconfig.h.in
team/rmudgett/ss7_27_knk/main/Makefile
team/rmudgett/ss7_27_knk/main/aoc.c
team/rmudgett/ss7_27_knk/main/asterisk.c
team/rmudgett/ss7_27_knk/main/cel.c
team/rmudgett/ss7_27_knk/main/channel.c
team/rmudgett/ss7_27_knk/main/data.c
team/rmudgett/ss7_27_knk/main/file.c
team/rmudgett/ss7_27_knk/main/http.c
team/rmudgett/ss7_27_knk/main/image.c
team/rmudgett/ss7_27_knk/main/stun.c
team/rmudgett/ss7_27_knk/main/timing.c
team/rmudgett/ss7_27_knk/main/udptl.c
Propchange: team/rmudgett/ss7_27_knk/
------------------------------------------------------------------------------
automerge = *
Propchange: team/rmudgett/ss7_27_knk/
------------------------------------------------------------------------------
Binary property 'branch-11-merged' - no diff available.
Propchange: team/rmudgett/ss7_27_knk/
------------------------------------------------------------------------------
--- ss7_27_knk-integrated (original)
+++ ss7_27_knk-integrated Tue Dec 11 16:28:59 2012
@@ -1,1 +1,1 @@
-/trunk:1-377834
+/trunk:1-377904
Modified: team/rmudgett/ss7_27_knk/configure.ac
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/ss7_27_knk/configure.ac?view=diff&rev=377905&r1=377904&r2=377905
==============================================================================
--- team/rmudgett/ss7_27_knk/configure.ac (original)
+++ team/rmudgett/ss7_27_knk/configure.ac Tue Dec 11 16:28:59 2012
@@ -489,11 +489,12 @@
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h libintl.h limits.h locale.h malloc.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h strings.h sys/event.h sys/file.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h syslog.h termios.h unistd.h utime.h arpa/nameser.h sys/io.h])
-# Any one of these 4 packages support a mandatory requirement, so we want to check on them as early as possible.
+# Any one of these 5 packages support a mandatory requirement, so we want to check on them as early as possible.
AST_EXT_LIB_CHECK([TERMCAP], [termcap], [tgetent], [])
AST_EXT_LIB_CHECK([TINFO], [tinfo], [tgetent], [])
AST_EXT_LIB_CHECK([CURSES], [curses], [initscr], [curses.h])
AST_EXT_LIB_CHECK([NCURSES], [ncurses], [initscr], [curses.h])
+AST_EXT_LIB_CHECK([UUID], [uuid], [uuid_generate_random], [uuid.h], [-luuid])
EDITLINE_LIB=""
if test "x$TERMCAP_LIB" != "x" ; then
Modified: team/rmudgett/ss7_27_knk/include/asterisk/autoconfig.h.in
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/ss7_27_knk/include/asterisk/autoconfig.h.in?view=diff&rev=377905&r1=377904&r2=377905
==============================================================================
--- team/rmudgett/ss7_27_knk/include/asterisk/autoconfig.h.in (original)
+++ team/rmudgett/ss7_27_knk/include/asterisk/autoconfig.h.in Tue Dec 11 16:28:59 2012
@@ -848,19 +848,19 @@
/* Define to 1 if you have the `strtoq' function. */
#undef HAVE_STRTOQ
-/* Define to 1 if `ifr_ifru.ifru_hwaddr' is member of `struct ifreq'. */
+/* Define to 1 if `ifr_ifru.ifru_hwaddr' is a member of `struct ifreq'. */
#undef HAVE_STRUCT_IFREQ_IFR_IFRU_IFRU_HWADDR
-/* Define to 1 if `uid' is member of `struct sockpeercred'. */
+/* Define to 1 if `uid' is a member of `struct sockpeercred'. */
#undef HAVE_STRUCT_SOCKPEERCRED_UID
-/* Define to 1 if `st_blksize' is member of `struct stat'. */
+/* Define to 1 if `st_blksize' is a member of `struct stat'. */
#undef HAVE_STRUCT_STAT_ST_BLKSIZE
-/* Define to 1 if `cr_uid' is member of `struct ucred'. */
+/* Define to 1 if `cr_uid' is a member of `struct ucred'. */
#undef HAVE_STRUCT_UCRED_CR_UID
-/* Define to 1 if `uid' is member of `struct ucred'. */
+/* Define to 1 if `uid' is a member of `struct ucred'. */
#undef HAVE_STRUCT_UCRED_UID
/* Define to 1 if you have the mISDN Supplemental Services library. */
@@ -1137,6 +1137,9 @@
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
+
+/* Define to the home page for this package. */
+#undef PACKAGE_URL
/* Define to the version of this package. */
#undef PACKAGE_VERSION
Modified: team/rmudgett/ss7_27_knk/main/Makefile
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/ss7_27_knk/main/Makefile?view=diff&rev=377905&r1=377904&r2=377905
==============================================================================
--- team/rmudgett/ss7_27_knk/main/Makefile (original)
+++ team/rmudgett/ss7_27_knk/main/Makefile Tue Dec 11 16:28:59 2012
@@ -43,7 +43,7 @@
ifneq (x$(CAP_LIB),x)
AST_LIBS+=$(CAP_LIB)
endif
- AST_LIBS+=-lpthread $(EDITLINE_LIB) -lm -lresolv
+ AST_LIBS+=-lpthread $(EDITLINE_LIB) -lm -lresolv -luuid
else
AST_LIBS+=$(EDITLINE_LIB) -lm
endif
Modified: team/rmudgett/ss7_27_knk/main/aoc.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/ss7_27_knk/main/aoc.c?view=diff&rev=377905&r1=377904&r2=377905
==============================================================================
--- team/rmudgett/ss7_27_knk/main/aoc.c (original)
+++ team/rmudgett/ss7_27_knk/main/aoc.c Tue Dec 11 16:28:59 2012
@@ -1605,7 +1605,12 @@
AST_CLI_DEFINE(aoc_cli_debug_enable, "enable cli debugging of AOC messages"),
};
+static void aoc_shutdown(void)
+{
+ ast_cli_unregister_multiple(aoc_cli, ARRAY_LEN(aoc_cli));
+}
int ast_aoc_cli_init(void)
{
+ ast_register_atexit(aoc_shutdown);
return ast_cli_register_multiple(aoc_cli, ARRAY_LEN(aoc_cli));
}
Modified: team/rmudgett/ss7_27_knk/main/asterisk.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/ss7_27_knk/main/asterisk.c?view=diff&rev=377905&r1=377904&r2=377905
==============================================================================
--- team/rmudgett/ss7_27_knk/main/asterisk.c (original)
+++ team/rmudgett/ss7_27_knk/main/asterisk.c Tue Dec 11 16:28:59 2012
@@ -238,6 +238,7 @@
#include "asterisk/rtp_engine.h"
#include "asterisk/format.h"
#include "asterisk/aoc.h"
+#include "asterisk/uuid.h"
#include "../defaults.h"
@@ -4112,6 +4113,7 @@
}
ast_aoc_cli_init();
+ ast_uuid_init();
ast_makesocket();
sigemptyset(&sigs);
Modified: team/rmudgett/ss7_27_knk/main/cel.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/ss7_27_knk/main/cel.c?view=diff&rev=377905&r1=377904&r2=377905
==============================================================================
--- team/rmudgett/ss7_27_knk/main/cel.c (original)
+++ team/rmudgett/ss7_27_knk/main/cel.c Tue Dec 11 16:28:59 2012
@@ -729,6 +729,7 @@
ao2_ref(linkedids, -1);
linkedids = NULL;
}
+ ast_cli_unregister(&cli_status);
}
int ast_cel_engine_init(void)
Modified: team/rmudgett/ss7_27_knk/main/channel.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/ss7_27_knk/main/channel.c?view=diff&rev=377905&r1=377904&r2=377905
==============================================================================
--- team/rmudgett/ss7_27_knk/main/channel.c (original)
+++ team/rmudgett/ss7_27_knk/main/channel.c Tue Dec 11 16:28:59 2012
@@ -8620,9 +8620,11 @@
static void channels_shutdown(void)
{
ast_data_unregister(NULL);
+ ast_cli_unregister_multiple(cli_channel, ARRAY_LEN(cli_channel));
if (channels) {
ao2_container_unregister("channels");
ao2_ref(channels, -1);
+ channels = NULL;
}
}
Modified: team/rmudgett/ss7_27_knk/main/data.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/ss7_27_knk/main/data.c?view=diff&rev=377905&r1=377904&r2=377905
==============================================================================
--- team/rmudgett/ss7_27_knk/main/data.c (original)
+++ team/rmudgett/ss7_27_knk/main/data.c Tue Dec 11 16:28:59 2012
@@ -3318,7 +3318,9 @@
static void data_shutdown(void)
{
ast_manager_unregister("DataGet");
+ ast_cli_unregister_multiple(cli_data, ARRAY_LEN(cli_data));
ao2_t_ref(root_data.container, -1, "Unref root_data.container in data_shutdown");
+ root_data.container = NULL;
ast_rwlock_destroy(&root_data.lock);
}
Modified: team/rmudgett/ss7_27_knk/main/file.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/ss7_27_knk/main/file.c?view=diff&rev=377905&r1=377904&r2=377905
==============================================================================
--- team/rmudgett/ss7_27_knk/main/file.c (original)
+++ team/rmudgett/ss7_27_knk/main/file.c Tue Dec 11 16:28:59 2012
@@ -1583,8 +1583,14 @@
AST_CLI_DEFINE(handle_cli_core_show_file_formats, "Displays file formats")
};
+static void file_shutdown(void)
+{
+ ast_cli_unregister_multiple(cli_file, ARRAY_LEN(cli_file));
+}
+
int ast_file_init(void)
{
ast_cli_register_multiple(cli_file, ARRAY_LEN(cli_file));
+ ast_register_atexit(file_shutdown);
return 0;
}
Modified: team/rmudgett/ss7_27_knk/main/http.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/ss7_27_knk/main/http.c?view=diff&rev=377905&r1=377904&r2=377905
==============================================================================
--- team/rmudgett/ss7_27_knk/main/http.c (original)
+++ team/rmudgett/ss7_27_knk/main/http.c Tue Dec 11 16:28:59 2012
@@ -1203,11 +1203,17 @@
AST_CLI_DEFINE(handle_show_http, "Display HTTP server status"),
};
+static void http_shutdown(void)
+{
+ ast_cli_unregister_multiple(cli_http, ARRAY_LEN(cli_http));
+}
+
int ast_http_init(void)
{
ast_http_uri_link(&statusuri);
ast_http_uri_link(&staticuri);
ast_cli_register_multiple(cli_http, ARRAY_LEN(cli_http));
+ ast_register_atexit(http_shutdown);
return __ast_http_load(0);
}
Modified: team/rmudgett/ss7_27_knk/main/image.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/ss7_27_knk/main/image.c?view=diff&rev=377905&r1=377904&r2=377905
==============================================================================
--- team/rmudgett/ss7_27_knk/main/image.c (original)
+++ team/rmudgett/ss7_27_knk/main/image.c Tue Dec 11 16:28:59 2012
@@ -206,8 +206,14 @@
AST_CLI_DEFINE(handle_core_show_image_formats, "Displays image formats")
};
+static void image_shutdown(void)
+{
+ ast_cli_unregister_multiple(cli_image, ARRAY_LEN(cli_image));
+}
+
int ast_image_init(void)
{
ast_cli_register_multiple(cli_image, ARRAY_LEN(cli_image));
+ ast_register_atexit(image_shutdown);
return 0;
}
Modified: team/rmudgett/ss7_27_knk/main/stun.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/ss7_27_knk/main/stun.c?view=diff&rev=377905&r1=377904&r2=377905
==============================================================================
--- team/rmudgett/ss7_27_knk/main/stun.c (original)
+++ team/rmudgett/ss7_27_knk/main/stun.c Tue Dec 11 16:28:59 2012
@@ -504,8 +504,14 @@
AST_CLI_DEFINE(handle_cli_stun_set_debug, "Enable/Disable STUN debugging"),
};
+static void stun_shutdown(void)
+{
+ ast_cli_unregister_multiple(cli_stun, sizeof(cli_stun) / sizeof(struct ast_cli_entry));
+}
+
/*! \brief Initialize the STUN system in Asterisk */
void ast_stun_init(void)
{
ast_cli_register_multiple(cli_stun, sizeof(cli_stun) / sizeof(struct ast_cli_entry));
-}
+ ast_register_atexit(stun_shutdown);
+}
Modified: team/rmudgett/ss7_27_knk/main/timing.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/ss7_27_knk/main/timing.c?view=diff&rev=377905&r1=377904&r2=377905
==============================================================================
--- team/rmudgett/ss7_27_knk/main/timing.c (original)
+++ team/rmudgett/ss7_27_knk/main/timing.c Tue Dec 11 16:28:59 2012
@@ -299,11 +299,21 @@
AST_CLI_DEFINE(timing_test, "Run a timing test"),
};
+static void timing_shutdown(void)
+{
+ ast_cli_unregister_multiple(cli_timing, ARRAY_LEN(cli_timing));
+
+ ast_heap_destroy(timing_interfaces);
+ timing_interfaces = NULL;
+}
+
int ast_timing_init(void)
{
if (!(timing_interfaces = ast_heap_create(2, timing_holder_cmp, 0))) {
return -1;
}
+ ast_register_atexit(timing_shutdown);
+
return ast_cli_register_multiple(cli_timing, ARRAY_LEN(cli_timing));
}
Modified: team/rmudgett/ss7_27_knk/main/udptl.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/ss7_27_knk/main/udptl.c?view=diff&rev=377905&r1=377904&r2=377905
==============================================================================
--- team/rmudgett/ss7_27_knk/main/udptl.c (original)
+++ team/rmudgett/ss7_27_knk/main/udptl.c Tue Dec 11 16:28:59 2012
@@ -1471,9 +1471,13 @@
return 0;
}
-/*! \internal \brief Clean up resources on Asterisk shutdown */
+/*!
+ * \internal
+ * \brief Clean up resources on Asterisk shutdown
+ */
static void udptl_shutdown(void)
{
+ ast_cli_unregister_multiple(cli_udptl, ARRAY_LEN(cli_udptl));
ao2_t_global_obj_release(globals, "Unref udptl global container in shutdown");
aco_info_destroy(&cfg_info);
}
@@ -1509,9 +1513,9 @@
aco_option_register_custom(&cfg_info, "t38faxudpec", ACO_EXACT, general_options, NULL, removed_options_handler, 0);
aco_option_register_custom(&cfg_info, "t38faxmaxdatagram", ACO_EXACT, general_options, NULL, removed_options_handler, 0);
+ __ast_udptl_reload(0);
+
ast_cli_register_multiple(cli_udptl, ARRAY_LEN(cli_udptl));
- __ast_udptl_reload(0);
-
ast_register_atexit(udptl_shutdown);
}
More information about the asterisk-commits
mailing list