Compare commits

...

8 Commits

Author SHA1 Message Date
Leif Madsen
a4db8a85e9 Update.version and ChangeLog
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.4.33@271294 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-17 20:03:01 +00:00
Leif Madsen
42b299ffb2 Create 1.4.33 from 1.4.33-rc2
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.4.33@271264 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-17 19:17:23 +00:00
Leif Madsen
d4a7c0026c Merge 269635 and update ChangeLog.
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.4.33-rc2@269746 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-10 14:23:35 +00:00
Leif Madsen
b2a5b74ebc Merge in revision 269335. Updated ChangeLog and .version files.
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.4.33-rc2@269350 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-09 17:55:11 +00:00
Leif Madsen
96f99f9732 Create 1.4.33-rc2 from 1.4.33-rc1.
Shoutouts to pabelanger and the Maniacal Maniac.

git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.4.33-rc2@269348 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-09 17:48:42 +00:00
Leif Madsen
f544f3b196 Use autotagged externals
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.4.33-rc1@266648 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-01 15:59:25 +00:00
Leif Madsen
92a6a01c9f Importing files for 1.4.33-rc1 release.
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.4.33-rc1@266647 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-01 15:59:14 +00:00
Leif Madsen
14a3f2861e Creating tag for the release of asterisk-1.4.33-rc1
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.4.33-rc1@266646 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-01 15:57:23 +00:00
7 changed files with 28923 additions and 20 deletions

1
.lastclean Normal file
View File

@@ -0,0 +1 @@
33

1
.version Normal file
View File

@@ -0,0 +1 @@
1.4.33

28888
ChangeLog Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -51,7 +51,7 @@ if ! [ -d /etc/asterisk ] ; then
exit 0
fi
# Use the LSB standar functions for services management
# Use the LSB standard functions for services management
. /lib/lsb/init-functions
case "$1" in
@@ -65,19 +65,17 @@ case "$1" in
fi
log_begin_msg "Starting $DESC: $NAME"
if [ $AST_USER ] ; then
ASTARGS="-U $AST_USER"
fi
if [ $AST_GROUP ] ; then
ASTARGS="$ASTARGS -G $AST_GROUP"
fi
# "start-stop-daemon --oknodo" returns 0 even if Asterisk was already running (as LSB expects):
if test "x$COLOR" = "xyes" ; then
export TERM=linux
start-stop-daemon --start --oknodo --background --exec $DAEMON -- $ASTARGS -c
else
start-stop-daemon --start --oknodo --exec $DAEMON -- $ASTARGS
if [ $AST_USER ] ; then
ASTARGS="-U $AST_USER"
fi
if [ $AST_GROUP ] ; then
ASTARGS="$ASTARGS -G $AST_GROUP"
fi
if test "x$COLOR" = "xno" ; then
ASTARGS="$ASTARGS -n"
fi
# "start-stop-daemon --oknodo" returns 0 even if Asterisk was already running (as LSB expects):
start-stop-daemon --start --oknodo --exec $DAEMON -- $ASTARGS
log_end_msg $?
;;
stop)

View File

@@ -767,6 +767,7 @@ static void _null_sig_handler(int signal)
static struct sigaction null_sig_handler = {
.sa_handler = _null_sig_handler,
.sa_flags = SA_RESTART,
};
AST_MUTEX_DEFINE_STATIC(safe_system_lock);
@@ -1166,6 +1167,7 @@ static void _urg_handler(int num)
static struct sigaction urg_handler = {
.sa_handler = _urg_handler,
.sa_flags = SA_RESTART,
};
static void _hup_handler(int num)
@@ -1185,6 +1187,7 @@ static void _hup_handler(int num)
static struct sigaction hup_handler = {
.sa_handler = _hup_handler,
.sa_flags = SA_RESTART,
};
static void _child_handler(int sig)
@@ -1203,6 +1206,7 @@ static void _child_handler(int sig)
static struct sigaction child_handler = {
.sa_handler = _child_handler,
.sa_flags = SA_RESTART,
};
/*! \brief Set an X-term or screen title */

View File

@@ -581,6 +581,7 @@ static void _handle_SIGXFSZ(int sig)
static struct sigaction handle_SIGXFSZ = {
.sa_handler = _handle_SIGXFSZ,
.sa_flags = SA_RESTART,
};
int init_logger(void)

View File

@@ -1,7 +1,7 @@
/*
* Asterisk -- An open source telephony toolkit.
*
* Copyright (C) 1999 - 2005, Digium, Inc.
* Copyright (C) 1999 - 2010, Digium, Inc.
*
* Mark Spencer <markster@digium.com>
*
@@ -18,9 +18,9 @@
/*! \file
*
* \brief Terminal Routines
* \brief Terminal Routines
*
* \author Mark Spencer <markster@digium.com>
* \author Mark Spencer <markster@digium.com>
*/
#include "asterisk.h"
@@ -79,12 +79,21 @@ int ast_term_init(void)
char buffer[512] = "";
int termfd = -1, parseokay = 0, i;
if (!term)
return 0;
if (!ast_opt_console || ast_opt_no_color || !ast_opt_no_fork)
if (ast_opt_no_color) {
return 0;
}
for (i=0 ;; i++) {
if (!ast_opt_console) {
/* If any remote console is not compatible, we'll strip the color codes at that point */
vt100compat = 1;
goto end;
}
if (!term) {
return 0;
}
for (i = 0;; i++) {
if (termpath[i] == NULL) {
break;
}
@@ -138,6 +147,7 @@ int ast_term_init(void)
}
}
end:
if (vt100compat) {
/* Make commands show up in nice colors */
snprintf(prepdata, sizeof(prepdata), "%c[%d;%d;%dm", ESC, ATTR_BRIGHT, COLOR_BROWN, COLOR_BLACK + 10);