static char *synopsis = "Echo audio read back to the user";
static char *descrip =
-" 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";
+" 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";
STANDARD_LOCAL_USER;
if (ast_write(chan, f))
break;
}
+ ast_frfree(f);
}
LOCAL_USER_REMOVE(u);
return res;
#include <unistd.h>
#include <asterisk/sched.h>
#include <asterisk/logger.h>
+#include <asterisk/channel.h>
/* Determine if a is sooner than b */
#define SOONER(a,b) (((b).tv_sec > (a).tv_sec) || \
s = s->next;
}
ast_log(LOG_NOTICE, "Attempted to delete non-existant schedule entry %d!\n", id);
-#ifdef FORCE_CRASH
- crash();
+#ifdef DO_CRASH
+ CRASH;
#endif
return -1;
}