mirror of
https://github.com/asterisk/asterisk.git
synced 2025-12-13 10:32:31 +00:00
Compare commits
8 Commits
1.2.23-net
...
1.2.24-net
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fffdfc1912 | ||
|
|
c028de3c78 | ||
|
|
ebf2a11bc2 | ||
|
|
a97c27fc27 | ||
|
|
53e28cba18 | ||
|
|
09d0b6be60 | ||
|
|
220d01134a | ||
|
|
611c08e453 |
1
.lastclean
Normal file
1
.lastclean
Normal file
@@ -0,0 +1 @@
|
||||
9
|
||||
2
CREDITS
2
CREDITS
@@ -95,7 +95,7 @@ Leif Madsen, Jared Smith and Jim van Meggelen - the Asterisk book
|
||||
available under a Creative Commons License at http://www.asteriskdocs.org
|
||||
|
||||
=== HOLD MUSIC ===
|
||||
Music provided by www.freeplaymusic.com
|
||||
Music provided by www.opsound.org
|
||||
|
||||
=== OTHER SOURCE CODE IN ASTERISK ===
|
||||
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
About Hold Music
|
||||
================
|
||||
Digium has licensed the music included with
|
||||
the Asterisk distribution From FreePlayMusic
|
||||
for use and distribution with Asterisk. It
|
||||
is licensed ONLY for use as hold music within
|
||||
an Asterisk based PBX.
|
||||
|
||||
22
README.opsound
Normal file
22
README.opsound
Normal file
@@ -0,0 +1,22 @@
|
||||
About Hold Music
|
||||
================
|
||||
These files were obtained from http://opsound.org, where the authors placed them
|
||||
under the Creative Commons Attribution-Share Alike 2.5 license, a copy of which
|
||||
may be found at http://creativecommons.org.
|
||||
|
||||
Credits
|
||||
================
|
||||
macroform-cold_day - Paul Shuler (Macroform)
|
||||
paulshuler@gmail.com - http://macroform.bandcamp.com/
|
||||
|
||||
macroform-robot_dity - Paul Shuler (Macroform)
|
||||
paulshuler@gmail.com - http://macroform.bandcamp.com/
|
||||
|
||||
macroform-the_simplicity - Paul Shuler (Macroform)
|
||||
paulshuler@gmail.com - http://macroform.bandcamp.com/
|
||||
|
||||
manolo_camp-morning_coffee - Manolo Camp
|
||||
beatbastard@gmx.net - http://ccmixter.org/people/ManoloCamp
|
||||
|
||||
reno_project-system - Reno Project
|
||||
renoproject@hotmail.com - http://www.jamendo.com/en/album/23661
|
||||
@@ -482,9 +482,9 @@ static int macroif_exec(struct ast_channel *chan, void *data)
|
||||
label_b++;
|
||||
}
|
||||
if (pbx_checkcondition(expr))
|
||||
macro_exec(chan, label_a);
|
||||
res = macro_exec(chan, label_a);
|
||||
else if (label_b)
|
||||
macro_exec(chan, label_b);
|
||||
res = macro_exec(chan, label_b);
|
||||
} else
|
||||
ast_log(LOG_WARNING, "Invalid Syntax.\n");
|
||||
|
||||
|
||||
@@ -1726,20 +1726,14 @@ static int restore_gains(struct zt_pvt *p)
|
||||
|
||||
static inline int zt_set_hook(int fd, int hs)
|
||||
{
|
||||
int x, res, count = 0;
|
||||
int x, res;
|
||||
|
||||
x = hs;
|
||||
res = ioctl(fd, ZT_HOOK, &x);
|
||||
|
||||
while (res < 0 && count < 20) {
|
||||
usleep(100000); /* 1/10 sec. */
|
||||
x = hs;
|
||||
res = ioctl(fd, ZT_HOOK, &x);
|
||||
count++;
|
||||
}
|
||||
|
||||
if (res < 0) {
|
||||
if (errno == EINPROGRESS) return 0;
|
||||
if (errno == EINPROGRESS)
|
||||
return 0;
|
||||
ast_log(LOG_WARNING, "zt hook failed: %s\n", strerror(errno));
|
||||
}
|
||||
|
||||
@@ -6477,7 +6471,7 @@ static int handle_init_event(struct zt_pvt *i, int event)
|
||||
else
|
||||
res = tone_zone_play_tone(i->subs[SUB_REAL].zfd, ZT_TONE_DIALTONE);
|
||||
if (res < 0)
|
||||
ast_log(LOG_WARNING, "Unable to play dialtone on channel %d\n", i->channel);
|
||||
ast_log(LOG_WARNING, "Unable to play dialtone on channel %d, do you have defaultzone and loadzone defined?\n", i->channel);
|
||||
if (ast_pthread_create(&threadid, &attr, ss_thread, chan)) {
|
||||
ast_log(LOG_WARNING, "Unable to start simple switch thread on channel %d\n", i->channel);
|
||||
res = tone_zone_play_tone(i->subs[SUB_REAL].zfd, ZT_TONE_CONGESTION);
|
||||
|
||||
@@ -3,8 +3,19 @@
|
||||
# lame quickie script to snarf a core of a hung asterisk process.
|
||||
# bugs to ast_grab_core, blinky-lights.org (derrick daugherty)
|
||||
|
||||
# we have found that gcore doesn't yield as useful a core file
|
||||
# as that yielded by a signal-caused core dump. So we are going to change
|
||||
# the strategy to sending a SEGV signal to the asterisk process,
|
||||
# and have it 'burn to the ground', leaving behind a core file.
|
||||
# the main difference is that you cannot control where the
|
||||
# core file will end up. We will assume that safe_asterisk was
|
||||
# used to start asterisk, and the core file should therefore end
|
||||
# up in /tmp (because safe_asterisk cd's there before starting asterisk).
|
||||
# if this is not the case, set DUMPDIR to the place where the core
|
||||
# file can be found.
|
||||
|
||||
DATE=`date +%Y%m%d%H%M`
|
||||
DUMPDIR=/var/tmp
|
||||
DUMPDIR=/tmp
|
||||
HOSTNAME=`hostname`
|
||||
ADMINEMAIL="root@localhost"
|
||||
|
||||
@@ -27,20 +38,16 @@ echo \*\*\* WARNING \*\*\* If the system is not already locked this will cause
|
||||
echo \*\*\* WARNING \*\*\* process to STOP while memory is dumped to disk.
|
||||
echo
|
||||
|
||||
/usr/bin/gdb > /dev/null << EOF
|
||||
attach ${PID}
|
||||
gcore ${DUMPDIR}/asterisk_${DATE}.core.${PID}
|
||||
detach
|
||||
quit
|
||||
EOF
|
||||
/usr/bin/kill -11 ${PID}
|
||||
|
||||
echo Snarfed! ${DUMPDIR}/asterisk_${DATE}.core.${PID}
|
||||
echo Snarfed! ${DUMPDIR}/core.${PID}
|
||||
echo
|
||||
|
||||
|
||||
echo Trying for a backtrace of the captured core.
|
||||
/usr/bin/gdb /usr/sbin/asterisk ${DUMPDIR}/asterisk_${DATE}.core.${PID} > /tmp/gdb_dump.${PID} 2> /dev/null << EOF
|
||||
/usr/bin/gdb /usr/sbin/asterisk ${DUMPDIR}/core.${PID} > /tmp/gdb_dump.${PID} 2> /dev/null << EOF
|
||||
set prompt \n
|
||||
set print pretty\n
|
||||
echo --------------------------------------------------------------------------------\n
|
||||
echo INFO THREAD
|
||||
info thread
|
||||
@@ -56,7 +63,7 @@ echo Done trying for a bt.
|
||||
|
||||
|
||||
echo Notifying admins of the core.
|
||||
/usr/bin/mail -s "${HOSTNAME} core dumped at ${DUMPDIR}/asterisk_${DATE}.core.${PID}" ${ADMINEMAIL} < /tmp/gdb_dump.${PID}
|
||||
/usr/bin/mail -s "${HOSTNAME} core dumped at ${DUMPDIR}/core.${PID}" ${ADMINEMAIL} < /tmp/gdb_dump.${PID}
|
||||
/bin/rm /tmp/gdb_dump.${PID}
|
||||
echo Done.
|
||||
echo
|
||||
|
||||
@@ -185,6 +185,9 @@ int fsk_serie(fsk_data *fskd, short *buffer, int *len, int *outbyte)
|
||||
int i,j,n1,r;
|
||||
int samples=0;
|
||||
int olen;
|
||||
int beginlen=*len;
|
||||
int beginlenx;
|
||||
|
||||
switch(fskd->state) {
|
||||
/* Pick up where we left off */
|
||||
case STATE_SEARCH_STARTBIT2:
|
||||
@@ -212,12 +215,13 @@ of a transmission (what a LOSING design), we cant do it this elegantly */
|
||||
beginning of a start bit in the TDD sceanario. It just looks for sufficient
|
||||
level to maybe, perhaps, guess, maybe that its maybe the beginning of
|
||||
a start bit, perhaps. This whole thing stinks! */
|
||||
beginlenx=beginlen; /* just to avoid unused war warnings */
|
||||
if (demodulador(fskd,&fskd->x1,GET_SAMPLE)) return(-1);
|
||||
samples++;
|
||||
for(;;)
|
||||
{
|
||||
search_startbit2:
|
||||
if (!*len) {
|
||||
if (*len <= 0) {
|
||||
fskd->state = STATE_SEARCH_STARTBIT2;
|
||||
return 0;
|
||||
}
|
||||
@@ -235,7 +239,7 @@ search_startbit3:
|
||||
fskd->state = STATE_SEARCH_STARTBIT3;
|
||||
return 0;
|
||||
}
|
||||
for(;i;i--) { if (demodulador(fskd,&fskd->x1,GET_SAMPLE)) return(-1);
|
||||
for(;i>0;i--) { if (demodulador(fskd,&fskd->x1,GET_SAMPLE)) return(-1);
|
||||
#if 0
|
||||
printf("x1 = %5.5f ", fskd->x1);
|
||||
#endif
|
||||
|
||||
@@ -268,7 +268,7 @@ static inline int __ast_pthread_mutex_lock(const char *filename, int lineno, con
|
||||
}
|
||||
} else {
|
||||
__ast_mutex_logger("%s line %d (%s): Error obtaining mutex: %s\n",
|
||||
filename, lineno, func, strerror(errno));
|
||||
filename, lineno, func, strerror(res));
|
||||
#ifdef THREAD_CRASH
|
||||
DO_THREAD_CRASH;
|
||||
#endif
|
||||
|
||||
@@ -1103,7 +1103,8 @@ static int handle_exec(struct ast_channel *chan, AGI *agi, int argc, char **argv
|
||||
}
|
||||
fdprintf(agi->fd, "200 result=%d\n", res);
|
||||
|
||||
return res >= 0 ? RESULT_SUCCESS : RESULT_FAILURE;
|
||||
/* Even though this is wrong, users are depending upon this result. */
|
||||
return res;
|
||||
}
|
||||
|
||||
static int handle_setcallerid(struct ast_channel *chan, AGI *agi, int argc, char **argv)
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
Music Provided By www.freeplaymusic.com. These sound files are provided by
|
||||
Digium under license from Freeplay Music Corporation for use in conjunction
|
||||
with the Asterisk software only.
|
||||
About Hold Music
|
||||
================
|
||||
These files were obtained from http://opsound.org, where the authors placed them
|
||||
under the Creative Commons Attribution-Share Alike 2.5 license, a copy of which
|
||||
may be found at http://creativecommons.org.
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
sounds/moh/macroform-cold_day.mp3
Normal file
BIN
sounds/moh/macroform-cold_day.mp3
Normal file
Binary file not shown.
BIN
sounds/moh/macroform-robot_dity.mp3
Normal file
BIN
sounds/moh/macroform-robot_dity.mp3
Normal file
Binary file not shown.
BIN
sounds/moh/macroform-the_simplicity.mp3
Normal file
BIN
sounds/moh/macroform-the_simplicity.mp3
Normal file
Binary file not shown.
BIN
sounds/moh/manolo_camp-morning_coffee.mp3
Normal file
BIN
sounds/moh/manolo_camp-morning_coffee.mp3
Normal file
Binary file not shown.
BIN
sounds/moh/reno_project-system.mp3
Normal file
BIN
sounds/moh/reno_project-system.mp3
Normal file
Binary file not shown.
Reference in New Issue
Block a user