Asterisk - The Open Source Telephony Project  21.4.1
Data Fields
ast_tone_zone_sound Struct Reference

Description of a tone. More...

#include <indications.h>

Data Fields

union {
   struct {
      unsigned int   killme:1
 
   } 
 
   uint32_t   __padding
 
}; 
 Flags only used internally.
 
const char * data
 Description of a tone. More...
 
struct {
   struct ast_tone_zone_sound *   next
 
entry
 Linked list fields for including in the list on an ast_tone_zone.
 
const char * name
 Name of the tone. For example, "busy".
 

Detailed Description

Description of a tone.

Definition at line 35 of file indications.h.

Field Documentation

const char* data

Description of a tone.

The format is a comma separated list of tone parts in the following format:

Format: [!][M]freq[<+|*>freq2][/duration]

  • '!' - means that the element is NOT repeated
  • 'M' - interpret the frequencies as midi notes instead of frequencies
  • freq - The first frequency
  • freq2 - The second frequency (optional)
  • '*' - modulate freq by freq2 at a fixed depth of 90%
  • '+' - combine the frequencies
  • duration - the length of the tone part (optional, forever if not specified)

Definition at line 52 of file indications.h.

Referenced by ast_app_dtget(), ast_control_tone(), ast_register_indication(), and indicate_data_internal().


The documentation for this struct was generated from the following file: