Tonegen

From Yate Documentation
(Difference between revisions)
Jump to: navigation, search
(Created page with "== Tone Generator == This module is used to generate tones like dial, busy. The options are: * dial - ITU dial tone * busy - ITU busy tone * ring - ITU ring tone * specdial ...")

Revision as of 11:18, 8 October 2012

Tone Generator

This module is used to generate tones like dial, busy.

The options are:

  • dial - ITU dial tone
  • busy - ITU busy tone
  • ring - ITU ring tone
  • specdial - typically used for secondary dialtones
  • congestion - no more channels available, network busy
  • outoforder - broken line (ITU, not three tones)
  • milliwatt - the stardard tone for test, 1mW @ 1kHz
  • silence - as the name says
  • noise - low level white noise, usable as comfort noise

In a routing module to use one of these tones, you can use something like : tone/dial.

A standard line for regexroute.conf will look like:

^1$=tone/dial 

That means when someone is calling extension 1 tonegen will generate a dial tone.

The tone generator can also be used as an override data source. Extra tones are available in this mode:

dtmf/X - single tone, X must be 0..9, *, # or a..d 
dtmfstr/XXXXX - an entire sequence of DTMF tones 
AAAA - a 1 second sine tone of frequency AAAA (number) 
AAAA+BBBB - a 1 second sum of two sine tones 
AAAA*BB - 1 second tone of AAAA modulated by BB

The configuration file is tonegen.conf and may be used to set things like the language (e.g. country code) for the various types of tone. For example lang=us means a us (north american) dialtone will be used for tone/dial instead of itu.



For people interested in generating non-standard tones, you can also configure things to work like the (US version) too. Configuration is left as an exercise for the reader.

Personal tools
Namespaces

Variants
Actions
Preface
Configuration
Administrators
Developers