tmp = glist;
while(tmp) {
if (tmp->owner)
- ast_softhangup(tmp->owner);
+ ast_softhangup(tmp->owner, AST_SOFTHANGUP_APPUNLOAD);
tmpl = tmp;
tmp = tmp->next;
free(tmpl);
tmp = glist;
while(tmp) {
if (tmp->owner)
- ast_softhangup(tmp->owner);
+ ast_softhangup(tmp->owner, AST_SOFTHANGUP_APPUNLOAD);
tmpl = tmp;
tmp = tmp->next;
free(tmpl);
tmp = glist;
while(tmp) {
if (tmp->owner)
- ast_softhangup(tmp->owner);
+ ast_softhangup(tmp->owner, AST_SOFTHANGUP_APPUNLOAD);
tmpl = tmp;
tmp = tmp->next;
free(tmpl);
tmp = glist;
while(tmp) {
if (tmp->owner)
- ast_softhangup(tmp->owner);
+ ast_softhangup(tmp->owner, AST_SOFTHANGUP_APPUNLOAD);
tmpl = tmp;
tmp = tmp->next;
free(tmpl);
tmp = glist;
while(tmp) {
if (tmp->owner)
- ast_softhangup(tmp->owner);
+ ast_softhangup(tmp->owner, AST_SOFTHANGUP_APPUNLOAD);
tmpl = tmp;
tmp = tmp->next;
free(tmpl);
tmp = glist;
while(tmp) {
if (tmp->owner)
- ast_softhangup(tmp->owner);
+ ast_softhangup(tmp->owner, AST_SOFTHANGUP_APPUNLOAD);
tmpl = tmp;
tmp = tmp->next;
free(tmpl);
pthread_mutex_lock(&localuser_lock); \
u = localusers; \
while(u) { \
- ast_softhangup(u->chan); \
+ ast_softhangup(u->chan, AST_SOFTHANGUP_APPUNLOAD); \
ul = u; \
u = u->next; \
free(ul); \
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/term.h>
+#include <asterisk/manager.h>
#include <dlfcn.h>
#include <asterisk/md5.h>
#define __USE_GNU
{
struct module *m;
- /* We'll do the logger the favor of calling its reload here first */
-
+ /* We'll do the logger and manager the favor of calling its reload here first */
+ reload_manager();
ast_pthread_mutex_lock(&modlock);
m = module_list;
static void child_handler(int sig)
{
int status;
- if (wait4(-1,&status, WNOHANG, NULL)<1)
- ast_log(LOG_NOTICE, "Huh? Child handler, but nobody there?\n");
+ if (wait4(-1,&status, WNOHANG, NULL)<1)
+ if (option_debug)
+ ast_log(LOG_DEBUG, "Huh? Child handler, but nobody there?\n");
}
static int spawn_mp3(struct mohclass *class)
argv[3] = "--mono";
argv[4] = "-r";
argv[5] = "8000";
- argc = 6;
+ argv[6] = "-b";
+ argv[7] = "2048";
+ argc = 8;
if (class->quiet) {
argv[argc++] = "-f";
argv[argc++] = "8192";