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)
#define ao2_ref(o, delta)
Reference/unreference an object and return the old refcount.
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.
#define MAX_TONEZONE_COUNTRY
int ast_playtones_start(struct ast_channel *chan, int vol, const char *tonelist, int interruptible)
Start playing a list of tones on a channel.
int ast_tone_zone_part_parse(const char *s, struct ast_tone_zone_part *tone_data)
Parse a tone part.
struct ao2_iterator ast_tone_zone_iterator_init(void)
Get an iterator for the available tone zones.
void ast_playtones_stop(struct ast_channel *chan)
Stop playing tones on a channel.
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_unref(struct ast_tone_zone *tz)
Release a reference to an ast_tone_zone.
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.
static struct ast_tone_zone * ast_tone_zone_ref(struct ast_tone_zone *tz)
Increase the reference count on an ast_tone_zone.
int ast_tone_zone_count(void)
Get the number of registered tone zones.
#define AST_LIST_HEAD_NOLOCK(name, type)
Defines a structure to be used to hold a list of specified type (with no lock).
#define AST_LIST_ENTRY(type)
Declare a forward link structure inside a list entry.
When we need to walk through a container, we use an ao2_iterator to keep track of the current positio...
Main Channel structure associated with a channel.
A description of a part of a tone.
const char * data
Description of a tone.
const char * name
Name of the tone. For example, "busy".
struct ast_tone_zone_sound::@229 entry
Linked list fields for including in the list on an ast_tone_zone.
A set of tones for a given locale.
unsigned int nrringcadence
Number of ring cadence elements in the ringcadence array.
char description[40]
Text description of the given country.
struct ast_tone_zone::@234 tones
A list of tones for this locale.
char country[MAX_TONEZONE_COUNTRY]
Country code that this set of tones is for.
int * ringcadence
Array of ring cadence parts.