|
|
@ -49,6 +49,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
|
|
|
#include "asterisk/module.h"
|
|
|
|
#include "asterisk/module.h"
|
|
|
|
#include "asterisk/linkedlists.h"
|
|
|
|
#include "asterisk/linkedlists.h"
|
|
|
|
#include "asterisk/app.h"
|
|
|
|
#include "asterisk/app.h"
|
|
|
|
|
|
|
|
#include "asterisk/utils.h"
|
|
|
|
|
|
|
|
|
|
|
|
static const char *tdesc = "External IVR Interface Application";
|
|
|
|
static const char *tdesc = "External IVR Interface Application";
|
|
|
|
|
|
|
|
|
|
|
@ -113,9 +114,7 @@ static void *gen_alloc(struct ast_channel *chan, void *params)
|
|
|
|
struct localuser *u = params;
|
|
|
|
struct localuser *u = params;
|
|
|
|
struct gen_state *state;
|
|
|
|
struct gen_state *state;
|
|
|
|
|
|
|
|
|
|
|
|
state = calloc(1, sizeof(*state));
|
|
|
|
if (!(state = ast_calloc(1, sizeof(*state))))
|
|
|
|
|
|
|
|
|
|
|
|
if (!state)
|
|
|
|
|
|
|
|
return NULL;
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
|
|
|
|
state->u = u;
|
|
|
|
state->u = u;
|
|
|
@ -235,9 +234,7 @@ static struct playlist_entry *make_entry(const char *filename)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
struct playlist_entry *entry;
|
|
|
|
struct playlist_entry *entry;
|
|
|
|
|
|
|
|
|
|
|
|
entry = calloc(1, sizeof(*entry) + strlen(filename) + 10);
|
|
|
|
if (!(entry = ast_calloc(1, sizeof(*entry) + strlen(filename) + 10)))
|
|
|
|
|
|
|
|
|
|
|
|
if (!entry)
|
|
|
|
|
|
|
|
return NULL;
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
|
|
|
|
strcpy(entry->filename, filename);
|
|
|
|
strcpy(entry->filename, filename);
|
|
|
|