26 #ifndef _ASTERISK_INDICATIONS_H 27 #define _ASTERISK_INDICATIONS_H 64 #define MAX_TONEZONE_COUNTRY 16 188 #define ast_tone_zone_lock(tz) ao2_lock(tz) 193 #define ast_tone_zone_unlock(tz) ao2_unlock(tz) 198 #define ast_tone_zone_trylock(tz) ao2_trylock(tz) Main Channel structure associated with a channel.
static struct ast_tone_zone * ast_tone_zone_unref(struct ast_tone_zone *tz)
Release a reference to an ast_tone_zone.
A description of a part of a tone.
void ast_playtones_stop(struct ast_channel *chan)
Stop playing tones on a channel.
A set of tones for a given locale.
int ast_tone_zone_count(void)
Get the number of registered tone zones.
#define ao2_ref(o, delta)
#define MAX_TONEZONE_COUNTRY
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.
AST_LIST_HEAD_NOLOCK(contactliststruct, contact)
const char * name
Name of the tone. For example, "busy".
struct ast_tone_zone * ast_get_indication_zone(const char *country)
locate ast_tone_zone
static struct ast_tone_zone_sound * ast_tone_zone_sound_ref(struct ast_tone_zone_sound *ts)
Increase the reference count on an ast_tone_zone_sound.
struct ast_tone_zone_sound * ast_get_indication_tone(const struct ast_tone_zone *zone, const char *indication)
Locate a tone zone sound.
static struct ast_tone_zone * ast_tone_zone_ref(struct ast_tone_zone *tz)
Increase the reference count on an ast_tone_zone.
#define AST_LIST_ENTRY(type)
Declare a forward link structure inside a list entry.
int * ringcadence
Array of ring cadence parts.
When we need to walk through a container, we use an ao2_iterator to keep track of the current positio...
unsigned int nrringcadence
Number of ring cadence elements in the ringcadence array.
struct ao2_iterator ast_tone_zone_iterator_init(void)
Get an iterator for the available tone zones.
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.
struct ast_tone_zone_sound::@266 entry
Linked list fields for including in the list on an ast_tone_zone.
int ast_tone_zone_part_parse(const char *s, struct ast_tone_zone_part *tone_data)
Parse a tone part.