mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-07 10:28:32 +00:00
Version 0.1.9 from FTP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@338 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -31,8 +31,8 @@ static char *app = "Echo";
|
|||||||
static char *synopsis = "Echo audio read back to the user";
|
static char *synopsis = "Echo audio read back to the user";
|
||||||
|
|
||||||
static char *descrip =
|
static char *descrip =
|
||||||
" Echo(): Echo audio read from channel back to the channel. Returns 0\n"
|
" Echo(): Echo audio read from channel back to the channel. Returns 0\n"
|
||||||
" if the user exits with the '#' key, or -1 if the user hangs up.\n";
|
"if the user exits with the '#' key, or -1 if the user hangs up.\n";
|
||||||
|
|
||||||
STANDARD_LOCAL_USER;
|
STANDARD_LOCAL_USER;
|
||||||
|
|
||||||
@@ -57,6 +57,7 @@ static int echo_exec(struct ast_channel *chan, void *data)
|
|||||||
if (ast_write(chan, f))
|
if (ast_write(chan, f))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
ast_frfree(f);
|
||||||
}
|
}
|
||||||
LOCAL_USER_REMOVE(u);
|
LOCAL_USER_REMOVE(u);
|
||||||
return res;
|
return res;
|
||||||
|
|||||||
5
sched.c
5
sched.c
@@ -23,6 +23,7 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <asterisk/sched.h>
|
#include <asterisk/sched.h>
|
||||||
#include <asterisk/logger.h>
|
#include <asterisk/logger.h>
|
||||||
|
#include <asterisk/channel.h>
|
||||||
|
|
||||||
/* Determine if a is sooner than b */
|
/* Determine if a is sooner than b */
|
||||||
#define SOONER(a,b) (((b).tv_sec > (a).tv_sec) || \
|
#define SOONER(a,b) (((b).tv_sec > (a).tv_sec) || \
|
||||||
@@ -243,8 +244,8 @@ int ast_sched_del(struct sched_context *con, int id)
|
|||||||
s = s->next;
|
s = s->next;
|
||||||
}
|
}
|
||||||
ast_log(LOG_NOTICE, "Attempted to delete non-existant schedule entry %d!\n", id);
|
ast_log(LOG_NOTICE, "Attempted to delete non-existant schedule entry %d!\n", id);
|
||||||
#ifdef FORCE_CRASH
|
#ifdef DO_CRASH
|
||||||
crash();
|
CRASH;
|
||||||
#endif
|
#endif
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user