Mon Mar 19 11:30:58 2012

Asterisk developer's documentation


ast_tone_zone Struct Reference

A set of tones for a given locale. More...

#include <indications.h>


Data Fields

union {
   struct {
      unsigned int   killme:1
   } 
   uint32_t   __padding
}; 
 Flags only used internally.
char country [16]
 Country code that this set of tones is for.
char description [40]
 Text description of the given country.
unsigned int nrringcadence
 Number of ring cadence elements in the ringcadence array.
int * ringcadence
 Array of ring cadence parts.
struct {
   ast_tone_zone_sound *   first
   ast_tone_zone_sound *   last
tones
 A list of tones for this locale.


Detailed Description

A set of tones for a given locale.

Note:
If a reference to this tone zone is held, then the country is guaranteed not to change. It is safe to read it without locking the tone zone. This is not the case for any other field.

Definition at line 73 of file indications.h.


Field Documentation

union { ... }

Flags only used internally.

uint32_t __padding

Definition at line 95 of file indications.h.

char country[16]

Country code that this set of tones is for.

Definition at line 75 of file indications.h.

Referenced by ast_get_indication_zone(), ast_register_indication_country(), ast_tone_zone_cmp(), ast_tone_zone_hash(), ast_unregister_indication_country(), ast_var_channels_table(), complete_indications(), func_channel_read(), and parse_tone_zone().

char description[40]

Text description of the given country.

This is for nothing more than friendly display to a human.

Definition at line 81 of file indications.h.

Referenced by is_valid_tone_zone(), and store_config_tone_zone().

struct ast_tone_zone_sound* first

Definition at line 92 of file indications.h.

unsigned int killme

Definition at line 97 of file indications.h.

Referenced by prune_tone_zone(), reset_tone_zone(), and tone_zone_mark().

struct ast_tone_zone_sound* last

Definition at line 92 of file indications.h.

unsigned int nrringcadence

Number of ring cadence elements in the ringcadence array.

Definition at line 83 of file indications.h.

Referenced by ast_get_indication_zone(), ast_unregister_indication_country(), parse_tone_zone(), reset_tone_zone(), and store_tone_zone_ring_cadence().

int* ringcadence

Array of ring cadence parts.

Each element is an amount of time in milliseconds. The first element is for time on, and from there it alternates between on and off.

Definition at line 90 of file indications.h.

Referenced by ast_tone_zone_destructor(), reset_tone_zone(), and store_tone_zone_ring_cadence().

struct { ... } tones

A list of tones for this locale.

Referenced by ast_get_indication_tone(), ast_register_indication(), ast_tone_zone_data_add_structure(), ast_tone_zone_destructor(), ast_unregister_indication(), is_valid_tone_zone(), prune_tone_zone(), and tone_zone_mark().


The documentation for this struct was generated from the following file:
Generated on Mon Mar 19 11:30:58 2012 for Asterisk - The Open Source Telephony Project by  doxygen 1.4.7