39 static const char playtones_app[] =
"PlayTones";
40 static const char stopplaytones_app[] =
"StopPlayTones";
77 static int handle_playtones(
struct ast_channel *chan,
const char *data)
81 const char *str =
data;
83 if (ast_strlen_zero(str)) {
84 ast_log(LOG_NOTICE,
"Nothing to play\n");
98 ast_log(LOG_NOTICE,
"Unable to start playtones\n");
104 static int handle_stopplaytones(
struct ast_channel *chan,
const char *data)
111 static int unload_module(
void)
121 static int load_module(
void)
Main Channel structure associated with a channel.
Asterisk main include file. File version handling, generic pbx functions.
void ast_playtones_stop(struct ast_channel *chan)
Stop playing tones on a channel.
int ast_unregister_application(const char *app)
Unregister an application.
General Asterisk PBX channel definitions.
static struct ast_tone_zone_sound * ast_tone_zone_sound_unref(struct ast_tone_zone_sound *ts)
Release a reference to an ast_tone_zone_sound.
Core PBX routines and definitions.
struct ast_tone_zone_sound * ast_get_indication_tone(const struct ast_tone_zone *zone, const char *indication)
Locate a tone zone sound.
Module has failed to load, may be in an inconsistent state.
int ast_playtones_start(struct ast_channel *chan, int vol, const char *tonelist, int interruptible)
Start playing a list of tones on a channel.
const char * data
Description of a tone.
#define ASTERISK_GPL_KEY
The text the key() function should return.
Asterisk module definitions.
#define ast_register_application_xml(app, execute)
Register an application using XML documentation.